models.go 463 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360
  1. // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
  2. package generated
  3. import (
  4. "fmt"
  5. "io"
  6. "strconv"
  7. )
  8. type AppPricingDetails interface {
  9. IsAppPricingDetails()
  10. }
  11. type AppPurchase interface {
  12. IsAppPurchase()
  13. GetCreatedAt() string
  14. GetName() string
  15. GetPrice() *MoneyV2
  16. GetStatus() AppPurchaseStatus
  17. GetTest() bool
  18. }
  19. type AppSubscriptionDiscountValue interface {
  20. IsAppSubscriptionDiscountValue()
  21. }
  22. type CommentEventEmbed interface {
  23. IsCommentEventEmbed()
  24. }
  25. type CommentEventSubject interface {
  26. IsCommentEventSubject()
  27. GetID() string
  28. GetHasTimelineComment() bool
  29. }
  30. type CustomerMoment interface {
  31. IsCustomerMoment()
  32. GetOccurredAt() string
  33. }
  34. type CustomerPaymentInstrument interface {
  35. IsCustomerPaymentInstrument()
  36. }
  37. type DeliveryConditionCriteria interface {
  38. IsDeliveryConditionCriteria()
  39. }
  40. type DeliveryRateProvider interface {
  41. IsDeliveryRateProvider()
  42. }
  43. type DiscountApplication interface {
  44. IsDiscountApplication()
  45. GetAllocationMethod() DiscountApplicationAllocationMethod
  46. GetIndex() int
  47. GetTargetSelection() DiscountApplicationTargetSelection
  48. GetTargetType() DiscountApplicationTargetType
  49. GetValue() PricingValue
  50. }
  51. type DisplayableError interface {
  52. IsDisplayableError()
  53. GetField() []string
  54. GetMessage() string
  55. }
  56. type Event interface {
  57. IsEvent()
  58. GetAppTitle() *string
  59. GetAttributeToApp() bool
  60. GetAttributeToUser() bool
  61. GetCreatedAt() string
  62. GetCriticalAlert() bool
  63. GetID() string
  64. GetMessage() string
  65. }
  66. type File interface {
  67. IsFile()
  68. GetAlt() *string
  69. GetCreatedAt() string
  70. GetFileErrors() []*FileError
  71. GetFileStatus() FileStatus
  72. GetPreview() *MediaPreviewImage
  73. }
  74. type HasEvents interface {
  75. IsHasEvents()
  76. GetEvents() *EventConnection
  77. }
  78. type HasLocalizationExtensions interface {
  79. IsHasLocalizationExtensions()
  80. GetLocalizationExtensions() *LocalizationExtensionConnection
  81. }
  82. type HasMetafieldDefinitions interface {
  83. IsHasMetafieldDefinitions()
  84. GetMetafieldDefinitions() *MetafieldDefinitionConnection
  85. }
  86. type HasMetafields interface {
  87. IsHasMetafields()
  88. GetMetafield() *Metafield
  89. GetMetafields() *MetafieldConnection
  90. GetPrivateMetafield() *PrivateMetafield
  91. GetPrivateMetafields() *PrivateMetafieldConnection
  92. }
  93. type HasPublishedTranslations interface {
  94. IsHasPublishedTranslations()
  95. GetTranslations() []*PublishedTranslation
  96. }
  97. type LegacyInteroperability interface {
  98. IsLegacyInteroperability()
  99. GetLegacyResourceID() string
  100. }
  101. type MarketRegion interface {
  102. IsMarketRegion()
  103. GetID() string
  104. GetName() string
  105. }
  106. type Media interface {
  107. IsMedia()
  108. GetAlt() *string
  109. GetMediaContentType() MediaContentType
  110. GetMediaErrors() []*MediaError
  111. GetMediaWarnings() []*MediaWarning
  112. GetPreview() *MediaPreviewImage
  113. GetStatus() MediaStatus
  114. }
  115. type MetafieldReference interface {
  116. IsMetafieldReference()
  117. }
  118. type Navigable interface {
  119. IsNavigable()
  120. GetDefaultCursor() string
  121. }
  122. type Node interface {
  123. IsNode()
  124. GetID() string
  125. }
  126. type OnlineStorePreviewable interface {
  127. IsOnlineStorePreviewable()
  128. GetOnlineStorePreviewURL() *string
  129. }
  130. type PaymentInstrument interface {
  131. IsPaymentInstrument()
  132. }
  133. type PricingValue interface {
  134. IsPricingValue()
  135. }
  136. type Publishable interface {
  137. IsPublishable()
  138. GetAvailablePublicationCount() int
  139. GetPublicationCount() int
  140. GetPublishedOnCurrentPublication() bool
  141. GetPublishedOnPublication() bool
  142. GetResourcePublications() *ResourcePublicationConnection
  143. GetResourcePublicationsV2() *ResourcePublicationV2Connection
  144. GetUnpublishedPublications() *PublicationConnection
  145. }
  146. type PurchasingEntity interface {
  147. IsPurchasingEntity()
  148. }
  149. type Sale interface {
  150. IsSale()
  151. GetActionType() SaleActionType
  152. GetID() string
  153. GetLineType() SaleLineType
  154. GetQuantity() *int
  155. GetTaxes() []*SaleTax
  156. GetTotalAmount() *MoneyBag
  157. GetTotalDiscountAmountAfterTaxes() *MoneyBag
  158. GetTotalDiscountAmountBeforeTaxes() *MoneyBag
  159. GetTotalTaxAmount() *MoneyBag
  160. }
  161. type SalesAgreement interface {
  162. IsSalesAgreement()
  163. GetApp() *App
  164. GetHappenedAt() string
  165. GetID() string
  166. GetReason() OrderActionType
  167. GetSales() *SaleConnection
  168. GetUser() *StaffMember
  169. }
  170. type SellingPlanBillingPolicy interface {
  171. IsSellingPlanBillingPolicy()
  172. }
  173. type SellingPlanCheckoutChargeValue interface {
  174. IsSellingPlanCheckoutChargeValue()
  175. }
  176. type SellingPlanDeliveryPolicy interface {
  177. IsSellingPlanDeliveryPolicy()
  178. }
  179. type SellingPlanPricingPolicy interface {
  180. IsSellingPlanPricingPolicy()
  181. }
  182. type SellingPlanPricingPolicyAdjustmentValue interface {
  183. IsSellingPlanPricingPolicyAdjustmentValue()
  184. }
  185. type SellingPlanPricingPolicyBase interface {
  186. IsSellingPlanPricingPolicyBase()
  187. GetAdjustmentType() SellingPlanPricingPolicyAdjustmentType
  188. GetAdjustmentValue() SellingPlanPricingPolicyAdjustmentValue
  189. }
  190. type SubscriptionContractBase interface {
  191. IsSubscriptionContractBase()
  192. GetApp() *App
  193. GetAppAdminURL() *string
  194. GetCurrencyCode() CurrencyCode
  195. GetCustomAttributes() []*Attribute
  196. GetCustomer() *Customer
  197. GetCustomerPaymentMethod() *CustomerPaymentMethod
  198. GetDeliveryMethod() SubscriptionDeliveryMethod
  199. GetDeliveryPrice() *MoneyV2
  200. GetDiscounts() *SubscriptionManualDiscountConnection
  201. GetLineCount() int
  202. GetLines() *SubscriptionLineConnection
  203. GetNote() *string
  204. GetOrders() *OrderConnection
  205. GetUpdatedAt() string
  206. }
  207. type SubscriptionDeliveryMethod interface {
  208. IsSubscriptionDeliveryMethod()
  209. }
  210. type SubscriptionDiscount interface {
  211. IsSubscriptionDiscount()
  212. }
  213. type SubscriptionDiscountValue interface {
  214. IsSubscriptionDiscountValue()
  215. }
  216. type AccessScope struct {
  217. Description string `json:"description"`
  218. Handle string `json:"handle"`
  219. }
  220. type App struct {
  221. APIKey string `json:"apiKey"`
  222. AppStoreAppURL *string `json:"appStoreAppUrl"`
  223. AppStoreDeveloperURL *string `json:"appStoreDeveloperUrl"`
  224. AvailableAccessScopes []*AccessScope `json:"availableAccessScopes"`
  225. Banner *Image `json:"banner"`
  226. Description *string `json:"description"`
  227. DeveloperName *string `json:"developerName"`
  228. DeveloperType AppDeveloperType `json:"developerType"`
  229. Embedded bool `json:"embedded"`
  230. FailedRequirements []*FailedRequirement `json:"failedRequirements"`
  231. Features []string `json:"features"`
  232. Feedback *AppFeedback `json:"feedback"`
  233. Handle *string `json:"handle"`
  234. Icon *Image `json:"icon"`
  235. ID string `json:"id"`
  236. InstallURL *string `json:"installUrl"`
  237. Installation *AppInstallation `json:"installation"`
  238. IsPostPurchaseAppInUse bool `json:"isPostPurchaseAppInUse"`
  239. PreviouslyInstalled bool `json:"previouslyInstalled"`
  240. PricingDetails *string `json:"pricingDetails"`
  241. PricingDetailsSummary string `json:"pricingDetailsSummary"`
  242. PrivacyPolicyURL *string `json:"privacyPolicyUrl"`
  243. PublicCategory AppPublicCategory `json:"publicCategory"`
  244. Published bool `json:"published"`
  245. RequestedAccessScopes []*AccessScope `json:"requestedAccessScopes"`
  246. Screenshots []*Image `json:"screenshots"`
  247. ShopifyDeveloped bool `json:"shopifyDeveloped"`
  248. Title string `json:"title"`
  249. UninstallMessage string `json:"uninstallMessage"`
  250. WebhookAPIVersion string `json:"webhookApiVersion"`
  251. }
  252. func (App) IsNode() {}
  253. func (this App) GetID() string { return this.ID }
  254. type AppConnection struct {
  255. Edges []*AppEdge `json:"edges"`
  256. Nodes []*App `json:"nodes"`
  257. PageInfo *PageInfo `json:"pageInfo"`
  258. }
  259. type AppCredit struct {
  260. Amount *MoneyV2 `json:"amount"`
  261. CreatedAt string `json:"createdAt"`
  262. Description string `json:"description"`
  263. ID string `json:"id"`
  264. Test bool `json:"test"`
  265. }
  266. func (AppCredit) IsNode() {}
  267. func (this AppCredit) GetID() string { return this.ID }
  268. type AppCreditConnection struct {
  269. Edges []*AppCreditEdge `json:"edges"`
  270. Nodes []*AppCredit `json:"nodes"`
  271. PageInfo *PageInfo `json:"pageInfo"`
  272. }
  273. type AppCreditEdge struct {
  274. Cursor string `json:"cursor"`
  275. Node *AppCredit `json:"node"`
  276. }
  277. type AppEdge struct {
  278. Cursor string `json:"cursor"`
  279. Node *App `json:"node"`
  280. }
  281. type AppFeedback struct {
  282. App *App `json:"app"`
  283. Link *Link `json:"link"`
  284. Messages []*UserError `json:"messages"`
  285. }
  286. type AppInstallation struct {
  287. AccessScopes []*AccessScope `json:"accessScopes"`
  288. ActiveSubscriptions []*AppSubscription `json:"activeSubscriptions"`
  289. AllSubscriptions *AppSubscriptionConnection `json:"allSubscriptions"`
  290. App *App `json:"app"`
  291. Credits *AppCreditConnection `json:"credits"`
  292. ID string `json:"id"`
  293. LaunchURL string `json:"launchUrl"`
  294. Metafield *Metafield `json:"metafield"`
  295. Metafields *MetafieldConnection `json:"metafields"`
  296. OneTimePurchases *AppPurchaseOneTimeConnection `json:"oneTimePurchases"`
  297. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  298. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  299. Publication *Publication `json:"publication"`
  300. RevenueAttributionRecords *AppRevenueAttributionRecordConnection `json:"revenueAttributionRecords"`
  301. UninstallURL *string `json:"uninstallUrl"`
  302. }
  303. func (AppInstallation) IsHasMetafields() {}
  304. func (this AppInstallation) GetMetafield() *Metafield { return this.Metafield }
  305. func (this AppInstallation) GetMetafields() *MetafieldConnection { return this.Metafields }
  306. func (this AppInstallation) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  307. func (this AppInstallation) GetPrivateMetafields() *PrivateMetafieldConnection {
  308. return this.PrivateMetafields
  309. }
  310. func (AppInstallation) IsNode() {}
  311. func (this AppInstallation) GetID() string { return this.ID }
  312. type AppPlanV2 struct {
  313. PricingDetails AppPricingDetails `json:"pricingDetails"`
  314. }
  315. type AppPurchaseOneTime struct {
  316. CreatedAt string `json:"createdAt"`
  317. ID string `json:"id"`
  318. Name string `json:"name"`
  319. Price *MoneyV2 `json:"price"`
  320. Status AppPurchaseStatus `json:"status"`
  321. Test bool `json:"test"`
  322. }
  323. func (AppPurchaseOneTime) IsAppPurchase() {}
  324. func (this AppPurchaseOneTime) GetCreatedAt() string { return this.CreatedAt }
  325. func (this AppPurchaseOneTime) GetName() string { return this.Name }
  326. func (this AppPurchaseOneTime) GetPrice() *MoneyV2 { return this.Price }
  327. func (this AppPurchaseOneTime) GetStatus() AppPurchaseStatus { return this.Status }
  328. func (this AppPurchaseOneTime) GetTest() bool { return this.Test }
  329. func (AppPurchaseOneTime) IsNode() {}
  330. func (this AppPurchaseOneTime) GetID() string { return this.ID }
  331. type AppPurchaseOneTimeConnection struct {
  332. Edges []*AppPurchaseOneTimeEdge `json:"edges"`
  333. Nodes []*AppPurchaseOneTime `json:"nodes"`
  334. PageInfo *PageInfo `json:"pageInfo"`
  335. }
  336. type AppPurchaseOneTimeEdge struct {
  337. Cursor string `json:"cursor"`
  338. Node *AppPurchaseOneTime `json:"node"`
  339. }
  340. type AppRecurringPricing struct {
  341. Discount *AppSubscriptionDiscount `json:"discount"`
  342. Interval AppPricingInterval `json:"interval"`
  343. Price *MoneyV2 `json:"price"`
  344. }
  345. func (AppRecurringPricing) IsAppPricingDetails() {}
  346. type AppRevenueAttributionRecord struct {
  347. Amount *MoneyV2 `json:"amount"`
  348. CapturedAt string `json:"capturedAt"`
  349. CreatedAt string `json:"createdAt"`
  350. ID string `json:"id"`
  351. IdempotencyKey string `json:"idempotencyKey"`
  352. Test bool `json:"test"`
  353. Type AppRevenueAttributionType `json:"type"`
  354. }
  355. func (AppRevenueAttributionRecord) IsNode() {}
  356. func (this AppRevenueAttributionRecord) GetID() string { return this.ID }
  357. type AppRevenueAttributionRecordConnection struct {
  358. Edges []*AppRevenueAttributionRecordEdge `json:"edges"`
  359. Nodes []*AppRevenueAttributionRecord `json:"nodes"`
  360. PageInfo *PageInfo `json:"pageInfo"`
  361. }
  362. type AppRevenueAttributionRecordEdge struct {
  363. Cursor string `json:"cursor"`
  364. Node *AppRevenueAttributionRecord `json:"node"`
  365. }
  366. type AppSubscription struct {
  367. CreatedAt string `json:"createdAt"`
  368. CurrentPeriodEnd *string `json:"currentPeriodEnd"`
  369. ID string `json:"id"`
  370. LineItems []*AppSubscriptionLineItem `json:"lineItems"`
  371. Name string `json:"name"`
  372. ReturnURL string `json:"returnUrl"`
  373. Status AppSubscriptionStatus `json:"status"`
  374. Test bool `json:"test"`
  375. TrialDays int `json:"trialDays"`
  376. }
  377. func (AppSubscription) IsNode() {}
  378. func (this AppSubscription) GetID() string { return this.ID }
  379. type AppSubscriptionConnection struct {
  380. Edges []*AppSubscriptionEdge `json:"edges"`
  381. Nodes []*AppSubscription `json:"nodes"`
  382. PageInfo *PageInfo `json:"pageInfo"`
  383. }
  384. type AppSubscriptionDiscount struct {
  385. DurationLimitInIntervals *int `json:"durationLimitInIntervals"`
  386. PriceAfterDiscount *MoneyV2 `json:"priceAfterDiscount"`
  387. RemainingDurationInIntervals *int `json:"remainingDurationInIntervals"`
  388. Value AppSubscriptionDiscountValue `json:"value"`
  389. }
  390. type AppSubscriptionDiscountAmount struct {
  391. Amount *MoneyV2 `json:"amount"`
  392. }
  393. func (AppSubscriptionDiscountAmount) IsAppSubscriptionDiscountValue() {}
  394. type AppSubscriptionDiscountPercentage struct {
  395. Percentage float64 `json:"percentage"`
  396. }
  397. func (AppSubscriptionDiscountPercentage) IsAppSubscriptionDiscountValue() {}
  398. type AppSubscriptionEdge struct {
  399. Cursor string `json:"cursor"`
  400. Node *AppSubscription `json:"node"`
  401. }
  402. type AppSubscriptionLineItem struct {
  403. ID string `json:"id"`
  404. Plan *AppPlanV2 `json:"plan"`
  405. UsageRecords *AppUsageRecordConnection `json:"usageRecords"`
  406. }
  407. type AppUsagePricing struct {
  408. BalanceUsed *MoneyV2 `json:"balanceUsed"`
  409. CappedAmount *MoneyV2 `json:"cappedAmount"`
  410. Interval AppPricingInterval `json:"interval"`
  411. Terms string `json:"terms"`
  412. }
  413. func (AppUsagePricing) IsAppPricingDetails() {}
  414. type AppUsageRecord struct {
  415. CreatedAt string `json:"createdAt"`
  416. Description string `json:"description"`
  417. ID string `json:"id"`
  418. Price *MoneyV2 `json:"price"`
  419. SubscriptionLineItem *AppSubscriptionLineItem `json:"subscriptionLineItem"`
  420. }
  421. func (AppUsageRecord) IsNode() {}
  422. func (this AppUsageRecord) GetID() string { return this.ID }
  423. type AppUsageRecordConnection struct {
  424. Edges []*AppUsageRecordEdge `json:"edges"`
  425. Nodes []*AppUsageRecord `json:"nodes"`
  426. PageInfo *PageInfo `json:"pageInfo"`
  427. }
  428. type AppUsageRecordEdge struct {
  429. Cursor string `json:"cursor"`
  430. Node *AppUsageRecord `json:"node"`
  431. }
  432. type Attribute struct {
  433. Key string `json:"key"`
  434. Value *string `json:"value"`
  435. }
  436. type AutomaticDiscountApplication struct {
  437. AllocationMethod DiscountApplicationAllocationMethod `json:"allocationMethod"`
  438. Index int `json:"index"`
  439. TargetSelection DiscountApplicationTargetSelection `json:"targetSelection"`
  440. TargetType DiscountApplicationTargetType `json:"targetType"`
  441. Title string `json:"title"`
  442. Value PricingValue `json:"value"`
  443. }
  444. func (AutomaticDiscountApplication) IsDiscountApplication() {}
  445. func (this AutomaticDiscountApplication) GetAllocationMethod() DiscountApplicationAllocationMethod {
  446. return this.AllocationMethod
  447. }
  448. func (this AutomaticDiscountApplication) GetIndex() int { return this.Index }
  449. func (this AutomaticDiscountApplication) GetTargetSelection() DiscountApplicationTargetSelection {
  450. return this.TargetSelection
  451. }
  452. func (this AutomaticDiscountApplication) GetTargetType() DiscountApplicationTargetType {
  453. return this.TargetType
  454. }
  455. func (this AutomaticDiscountApplication) GetValue() PricingValue { return this.Value }
  456. type AvailableChannelDefinitionsByChannel struct {
  457. ChannelDefinitions []*ChannelDefinition `json:"channelDefinitions"`
  458. ChannelName string `json:"channelName"`
  459. }
  460. type BasicEvent struct {
  461. AppTitle *string `json:"appTitle"`
  462. AttributeToApp bool `json:"attributeToApp"`
  463. AttributeToUser bool `json:"attributeToUser"`
  464. CreatedAt string `json:"createdAt"`
  465. CriticalAlert bool `json:"criticalAlert"`
  466. ID string `json:"id"`
  467. Message string `json:"message"`
  468. }
  469. func (BasicEvent) IsEvent() {}
  470. func (this BasicEvent) GetAppTitle() *string { return this.AppTitle }
  471. func (this BasicEvent) GetAttributeToApp() bool { return this.AttributeToApp }
  472. func (this BasicEvent) GetAttributeToUser() bool { return this.AttributeToUser }
  473. func (this BasicEvent) GetCreatedAt() string { return this.CreatedAt }
  474. func (this BasicEvent) GetCriticalAlert() bool { return this.CriticalAlert }
  475. func (this BasicEvent) GetID() string { return this.ID }
  476. func (this BasicEvent) GetMessage() string { return this.Message }
  477. func (BasicEvent) IsNode() {}
  478. type BuyerExperienceConfiguration struct {
  479. CheckoutToDraft bool `json:"checkoutToDraft"`
  480. PayNowOnly bool `json:"payNowOnly"`
  481. PaymentTermsTemplate *PaymentTermsTemplate `json:"paymentTermsTemplate"`
  482. }
  483. type ChannelDefinition struct {
  484. ChannelName string `json:"channelName"`
  485. Handle string `json:"handle"`
  486. ID string `json:"id"`
  487. SubChannelName string `json:"subChannelName"`
  488. SVGIcon *string `json:"svgIcon"`
  489. }
  490. func (ChannelDefinition) IsNode() {}
  491. func (this ChannelDefinition) GetID() string { return this.ID }
  492. type ChannelInformation struct {
  493. App *App `json:"app"`
  494. ChannelDefinition *ChannelDefinition `json:"channelDefinition"`
  495. ChannelID string `json:"channelId"`
  496. ID string `json:"id"`
  497. }
  498. func (ChannelInformation) IsNode() {}
  499. func (this ChannelInformation) GetID() string { return this.ID }
  500. type Collection struct {
  501. AvailablePublicationCount int `json:"availablePublicationCount"`
  502. Description string `json:"description"`
  503. DescriptionHTML string `json:"descriptionHtml"`
  504. Feedback *ResourceFeedback `json:"feedback"`
  505. Handle string `json:"handle"`
  506. HasProduct bool `json:"hasProduct"`
  507. ID string `json:"id"`
  508. Image *Image `json:"image"`
  509. LegacyResourceID string `json:"legacyResourceId"`
  510. Metafield *Metafield `json:"metafield"`
  511. MetafieldDefinitions *MetafieldDefinitionConnection `json:"metafieldDefinitions"`
  512. Metafields *MetafieldConnection `json:"metafields"`
  513. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  514. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  515. Products *ProductConnection `json:"products"`
  516. ProductsCount int `json:"productsCount"`
  517. PublicationCount int `json:"publicationCount"`
  518. PublishedOnCurrentPublication bool `json:"publishedOnCurrentPublication"`
  519. PublishedOnPublication bool `json:"publishedOnPublication"`
  520. ResourcePublications *ResourcePublicationConnection `json:"resourcePublications"`
  521. ResourcePublicationsV2 *ResourcePublicationV2Connection `json:"resourcePublicationsV2"`
  522. RuleSet *CollectionRuleSet `json:"ruleSet"`
  523. Seo *Seo `json:"seo"`
  524. SortOrder CollectionSortOrder `json:"sortOrder"`
  525. TemplateSuffix *string `json:"templateSuffix"`
  526. Title string `json:"title"`
  527. Translations []*PublishedTranslation `json:"translations"`
  528. UnpublishedPublications *PublicationConnection `json:"unpublishedPublications"`
  529. UpdatedAt string `json:"updatedAt"`
  530. }
  531. func (Collection) IsHasMetafieldDefinitions() {}
  532. func (this Collection) GetMetafieldDefinitions() *MetafieldDefinitionConnection {
  533. return this.MetafieldDefinitions
  534. }
  535. func (Collection) IsHasMetafields() {}
  536. func (this Collection) GetMetafield() *Metafield { return this.Metafield }
  537. func (this Collection) GetMetafields() *MetafieldConnection { return this.Metafields }
  538. func (this Collection) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  539. func (this Collection) GetPrivateMetafields() *PrivateMetafieldConnection {
  540. return this.PrivateMetafields
  541. }
  542. func (Collection) IsHasPublishedTranslations() {}
  543. func (this Collection) GetTranslations() []*PublishedTranslation {
  544. if this.Translations == nil {
  545. return nil
  546. }
  547. interfaceSlice := make([]*PublishedTranslation, 0, len(this.Translations))
  548. for _, concrete := range this.Translations {
  549. interfaceSlice = append(interfaceSlice, concrete)
  550. }
  551. return interfaceSlice
  552. }
  553. func (Collection) IsNode() {}
  554. func (this Collection) GetID() string { return this.ID }
  555. func (Collection) IsPublishable() {}
  556. func (this Collection) GetAvailablePublicationCount() int { return this.AvailablePublicationCount }
  557. func (this Collection) GetPublicationCount() int { return this.PublicationCount }
  558. func (this Collection) GetPublishedOnCurrentPublication() bool {
  559. return this.PublishedOnCurrentPublication
  560. }
  561. func (this Collection) GetPublishedOnPublication() bool { return this.PublishedOnPublication }
  562. func (this Collection) GetResourcePublications() *ResourcePublicationConnection {
  563. return this.ResourcePublications
  564. }
  565. func (this Collection) GetResourcePublicationsV2() *ResourcePublicationV2Connection {
  566. return this.ResourcePublicationsV2
  567. }
  568. func (this Collection) GetUnpublishedPublications() *PublicationConnection {
  569. return this.UnpublishedPublications
  570. }
  571. func (Collection) IsMetafieldReference() {}
  572. type CollectionConnection struct {
  573. Edges []*CollectionEdge `json:"edges"`
  574. Nodes []*Collection `json:"nodes"`
  575. PageInfo *PageInfo `json:"pageInfo"`
  576. }
  577. type CollectionEdge struct {
  578. Cursor string `json:"cursor"`
  579. Node *Collection `json:"node"`
  580. }
  581. type CollectionRule struct {
  582. AppliedDisjunctively bool `json:"appliedDisjunctively"`
  583. Rules []*CollectionRule `json:"rules"`
  584. }
  585. type CollectionRuleSet struct {
  586. AppliedDisjunctively bool `json:"appliedDisjunctively"`
  587. Rules []*CollectionRule `json:"rules"`
  588. }
  589. type CommentEvent struct {
  590. AppTitle *string `json:"appTitle"`
  591. Attachments []*CommentEventAttachment `json:"attachments"`
  592. AttributeToApp bool `json:"attributeToApp"`
  593. AttributeToUser bool `json:"attributeToUser"`
  594. Author *StaffMember `json:"author"`
  595. CanDelete bool `json:"canDelete"`
  596. CanEdit bool `json:"canEdit"`
  597. CreatedAt string `json:"createdAt"`
  598. CriticalAlert bool `json:"criticalAlert"`
  599. Edited bool `json:"edited"`
  600. Embed CommentEventEmbed `json:"embed"`
  601. ID string `json:"id"`
  602. Message string `json:"message"`
  603. RawMessage string `json:"rawMessage"`
  604. Subject CommentEventSubject `json:"subject"`
  605. }
  606. func (CommentEvent) IsEvent() {}
  607. func (this CommentEvent) GetAppTitle() *string { return this.AppTitle }
  608. func (this CommentEvent) GetAttributeToApp() bool { return this.AttributeToApp }
  609. func (this CommentEvent) GetAttributeToUser() bool { return this.AttributeToUser }
  610. func (this CommentEvent) GetCreatedAt() string { return this.CreatedAt }
  611. func (this CommentEvent) GetCriticalAlert() bool { return this.CriticalAlert }
  612. func (this CommentEvent) GetID() string { return this.ID }
  613. func (this CommentEvent) GetMessage() string { return this.Message }
  614. func (CommentEvent) IsNode() {}
  615. type CommentEventAttachment struct {
  616. FileExtension *string `json:"fileExtension"`
  617. ID string `json:"id"`
  618. Image *Image `json:"image"`
  619. Name string `json:"name"`
  620. Size int `json:"size"`
  621. URL string `json:"url"`
  622. }
  623. type Company struct {
  624. ContactCount int `json:"contactCount"`
  625. ContactRoles *CompanyContactRoleConnection `json:"contactRoles"`
  626. Contacts *CompanyContactConnection `json:"contacts"`
  627. CreatedAt string `json:"createdAt"`
  628. CustomerSince string `json:"customerSince"`
  629. DefaultCursor string `json:"defaultCursor"`
  630. DefaultRole *CompanyContactRole `json:"defaultRole"`
  631. DraftOrders *DraftOrderConnection `json:"draftOrders"`
  632. Events *EventConnection `json:"events"`
  633. ExternalID *string `json:"externalId"`
  634. HasTimelineComment bool `json:"hasTimelineComment"`
  635. ID string `json:"id"`
  636. LifetimeDuration string `json:"lifetimeDuration"`
  637. LocationCount int `json:"locationCount"`
  638. Locations *CompanyLocationConnection `json:"locations"`
  639. MainContact *CompanyContact `json:"mainContact"`
  640. Name string `json:"name"`
  641. Note *string `json:"note"`
  642. OrderCount int `json:"orderCount"`
  643. Orders *OrderConnection `json:"orders"`
  644. TotalSpent *MoneyV2 `json:"totalSpent"`
  645. UpdatedAt string `json:"updatedAt"`
  646. }
  647. func (Company) IsCommentEventSubject() {}
  648. func (this Company) GetID() string { return this.ID }
  649. func (this Company) GetHasTimelineComment() bool { return this.HasTimelineComment }
  650. func (Company) IsHasEvents() {}
  651. func (this Company) GetEvents() *EventConnection { return this.Events }
  652. func (Company) IsNavigable() {}
  653. func (this Company) GetDefaultCursor() string { return this.DefaultCursor }
  654. func (Company) IsNode() {}
  655. type CompanyAddress struct {
  656. Address1 string `json:"address1"`
  657. Address2 *string `json:"address2"`
  658. City *string `json:"city"`
  659. CompanyName string `json:"companyName"`
  660. Country *string `json:"country"`
  661. CountryCode CountryCode `json:"countryCode"`
  662. CreatedAt string `json:"createdAt"`
  663. FormattedArea *string `json:"formattedArea"`
  664. ID string `json:"id"`
  665. Phone *string `json:"phone"`
  666. Province *string `json:"province"`
  667. Recipient *string `json:"recipient"`
  668. UpdatedAt string `json:"updatedAt"`
  669. Zip *string `json:"zip"`
  670. ZoneCode *string `json:"zoneCode"`
  671. }
  672. func (CompanyAddress) IsNode() {}
  673. func (this CompanyAddress) GetID() string { return this.ID }
  674. type CompanyContact struct {
  675. Company *Company `json:"company"`
  676. CreatedAt string `json:"createdAt"`
  677. Customer *Customer `json:"customer"`
  678. DraftOrders *DraftOrderConnection `json:"draftOrders"`
  679. ID string `json:"id"`
  680. IsMainContact bool `json:"isMainContact"`
  681. LifetimeDuration string `json:"lifetimeDuration"`
  682. Locale *string `json:"locale"`
  683. Orders *OrderConnection `json:"orders"`
  684. RoleAssignments *CompanyContactRoleAssignmentConnection `json:"roleAssignments"`
  685. Title *string `json:"title"`
  686. UpdatedAt string `json:"updatedAt"`
  687. }
  688. func (CompanyContact) IsNode() {}
  689. func (this CompanyContact) GetID() string { return this.ID }
  690. type CompanyContactConnection struct {
  691. Edges []*CompanyContactEdge `json:"edges"`
  692. Nodes []*CompanyContact `json:"nodes"`
  693. PageInfo *PageInfo `json:"pageInfo"`
  694. }
  695. type CompanyContactEdge struct {
  696. Cursor string `json:"cursor"`
  697. Node *CompanyContact `json:"node"`
  698. }
  699. type CompanyContactRole struct {
  700. ID string `json:"id"`
  701. Name string `json:"name"`
  702. Note *string `json:"note"`
  703. }
  704. func (CompanyContactRole) IsNode() {}
  705. func (this CompanyContactRole) GetID() string { return this.ID }
  706. type CompanyContactRoleAssignment struct {
  707. Company *Company `json:"company"`
  708. CompanyContact *CompanyContact `json:"companyContact"`
  709. CompanyLocation *CompanyLocation `json:"companyLocation"`
  710. CreatedAt string `json:"createdAt"`
  711. ID string `json:"id"`
  712. Role *CompanyContactRole `json:"role"`
  713. UpdatedAt string `json:"updatedAt"`
  714. }
  715. func (CompanyContactRoleAssignment) IsNode() {}
  716. func (this CompanyContactRoleAssignment) GetID() string { return this.ID }
  717. type CompanyContactRoleAssignmentConnection struct {
  718. Edges []*CompanyContactRoleAssignmentEdge `json:"edges"`
  719. Nodes []*CompanyContactRoleAssignment `json:"nodes"`
  720. PageInfo *PageInfo `json:"pageInfo"`
  721. }
  722. type CompanyContactRoleAssignmentEdge struct {
  723. Cursor string `json:"cursor"`
  724. Node *CompanyContactRoleAssignment `json:"node"`
  725. }
  726. type CompanyContactRoleConnection struct {
  727. Edges []*CompanyContactRoleEdge `json:"edges"`
  728. Nodes []*CompanyContactRole `json:"nodes"`
  729. PageInfo *PageInfo `json:"pageInfo"`
  730. }
  731. type CompanyContactRoleEdge struct {
  732. Cursor string `json:"cursor"`
  733. Node *CompanyContactRole `json:"node"`
  734. }
  735. type CompanyLocation struct {
  736. BillingAddress *CompanyAddress `json:"billingAddress"`
  737. BuyerExperienceConfiguration *BuyerExperienceConfiguration `json:"buyerExperienceConfiguration"`
  738. Company *Company `json:"company"`
  739. CreatedAt string `json:"createdAt"`
  740. Currency CurrencyCode `json:"currency"`
  741. DefaultCursor string `json:"defaultCursor"`
  742. DraftOrders *DraftOrderConnection `json:"draftOrders"`
  743. Events *EventConnection `json:"events"`
  744. ExternalID *string `json:"externalId"`
  745. HasTimelineComment bool `json:"hasTimelineComment"`
  746. ID string `json:"id"`
  747. Locale *string `json:"locale"`
  748. Market *Market `json:"market"`
  749. Name string `json:"name"`
  750. Note *string `json:"note"`
  751. OrderCount int `json:"orderCount"`
  752. Orders *OrderConnection `json:"orders"`
  753. Phone *string `json:"phone"`
  754. RoleAssignments *CompanyContactRoleAssignmentConnection `json:"roleAssignments"`
  755. ShippingAddress *CompanyAddress `json:"shippingAddress"`
  756. TaxExemptions []TaxExemption `json:"taxExemptions"`
  757. TaxRegistrationID *string `json:"taxRegistrationId"`
  758. TotalSpent *MoneyV2 `json:"totalSpent"`
  759. UpdatedAt string `json:"updatedAt"`
  760. }
  761. func (CompanyLocation) IsCommentEventSubject() {}
  762. func (this CompanyLocation) GetID() string { return this.ID }
  763. func (this CompanyLocation) GetHasTimelineComment() bool { return this.HasTimelineComment }
  764. func (CompanyLocation) IsHasEvents() {}
  765. func (this CompanyLocation) GetEvents() *EventConnection { return this.Events }
  766. func (CompanyLocation) IsNavigable() {}
  767. func (this CompanyLocation) GetDefaultCursor() string { return this.DefaultCursor }
  768. func (CompanyLocation) IsNode() {}
  769. type CompanyLocationConnection struct {
  770. Edges []*CompanyLocationEdge `json:"edges"`
  771. Nodes []*CompanyLocation `json:"nodes"`
  772. PageInfo *PageInfo `json:"pageInfo"`
  773. }
  774. type CompanyLocationEdge struct {
  775. Cursor string `json:"cursor"`
  776. Node *CompanyLocation `json:"node"`
  777. }
  778. type ContextualPricingContext struct {
  779. Country *CountryCode `json:"country"`
  780. CompanyLocationID *string `json:"companyLocationId"`
  781. }
  782. type CountriesInShippingZones struct {
  783. CountryCodes []CountryCode `json:"countryCodes"`
  784. IncludeRestOfWorld bool `json:"includeRestOfWorld"`
  785. }
  786. type CountryHarmonizedSystemCode struct {
  787. CountryCode CountryCode `json:"countryCode"`
  788. HarmonizedSystemCode string `json:"harmonizedSystemCode"`
  789. }
  790. type CountryHarmonizedSystemCodeConnection struct {
  791. Edges []*CountryHarmonizedSystemCodeEdge `json:"edges"`
  792. Nodes []*CountryHarmonizedSystemCode `json:"nodes"`
  793. PageInfo *PageInfo `json:"pageInfo"`
  794. }
  795. type CountryHarmonizedSystemCodeEdge struct {
  796. Cursor string `json:"cursor"`
  797. Node *CountryHarmonizedSystemCode `json:"node"`
  798. }
  799. type CurrencyFormats struct {
  800. MoneyFormat string `json:"moneyFormat"`
  801. MoneyInEmailsFormat string `json:"moneyInEmailsFormat"`
  802. MoneyWithCurrencyFormat string `json:"moneyWithCurrencyFormat"`
  803. MoneyWithCurrencyInEmailsFormat string `json:"moneyWithCurrencyInEmailsFormat"`
  804. }
  805. type CurrencySetting struct {
  806. CurrencyCode CurrencyCode `json:"currencyCode"`
  807. CurrencyName string `json:"currencyName"`
  808. Enabled bool `json:"enabled"`
  809. RateUpdatedAt *string `json:"rateUpdatedAt"`
  810. }
  811. type CurrencySettingConnection struct {
  812. Edges []*CurrencySettingEdge `json:"edges"`
  813. Nodes []*CurrencySetting `json:"nodes"`
  814. PageInfo *PageInfo `json:"pageInfo"`
  815. }
  816. type CurrencySettingEdge struct {
  817. Cursor string `json:"cursor"`
  818. Node *CurrencySetting `json:"node"`
  819. }
  820. type Customer struct {
  821. Addresses []*MailingAddress `json:"addresses"`
  822. AmountSpent *MoneyV2 `json:"amountSpent"`
  823. AverageOrderAmountV2 *MoneyV2 `json:"averageOrderAmountV2"`
  824. CanDelete bool `json:"canDelete"`
  825. CompanyContactProfiles []*CompanyContact `json:"companyContactProfiles"`
  826. CreatedAt string `json:"createdAt"`
  827. DefaultAddress *MailingAddress `json:"defaultAddress"`
  828. DisplayName string `json:"displayName"`
  829. Email *string `json:"email"`
  830. EmailMarketingConsent *CustomerEmailMarketingConsentState `json:"emailMarketingConsent"`
  831. Events *EventConnection `json:"events"`
  832. FirstName *string `json:"firstName"`
  833. HasTimelineComment bool `json:"hasTimelineComment"`
  834. ID string `json:"id"`
  835. Image *Image `json:"image"`
  836. LastName *string `json:"lastName"`
  837. LastOrder *Order `json:"lastOrder"`
  838. LegacyResourceID string `json:"legacyResourceId"`
  839. LifetimeDuration string `json:"lifetimeDuration"`
  840. Locale string `json:"locale"`
  841. Market *Market `json:"market"`
  842. Metafield *Metafield `json:"metafield"`
  843. MetafieldDefinitions *MetafieldDefinitionConnection `json:"metafieldDefinitions"`
  844. Metafields *MetafieldConnection `json:"metafields"`
  845. MultipassIdentifier *string `json:"multipassIdentifier"`
  846. Note *string `json:"note"`
  847. NumberOfOrders string `json:"numberOfOrders"`
  848. Orders *OrderConnection `json:"orders"`
  849. PaymentMethods *CustomerPaymentMethodConnection `json:"paymentMethods"`
  850. Phone *string `json:"phone"`
  851. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  852. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  853. ProductSubscriberStatus CustomerProductSubscriberStatus `json:"productSubscriberStatus"`
  854. SmsMarketingConsent *CustomerSmsMarketingConsentState `json:"smsMarketingConsent"`
  855. State CustomerState `json:"state"`
  856. Statistics *CustomerStatistics `json:"statistics"`
  857. SubscriptionContracts *SubscriptionContractConnection `json:"subscriptionContracts"`
  858. Tags []string `json:"tags"`
  859. TaxExempt bool `json:"taxExempt"`
  860. TaxExemptions []TaxExemption `json:"taxExemptions"`
  861. UnsubscribeURL string `json:"unsubscribeUrl"`
  862. UpdatedAt string `json:"updatedAt"`
  863. ValidEmailAddress bool `json:"validEmailAddress"`
  864. VerifiedEmail bool `json:"verifiedEmail"`
  865. }
  866. func (Customer) IsCommentEventSubject() {}
  867. func (this Customer) GetID() string { return this.ID }
  868. func (this Customer) GetHasTimelineComment() bool { return this.HasTimelineComment }
  869. func (Customer) IsHasEvents() {}
  870. func (this Customer) GetEvents() *EventConnection { return this.Events }
  871. func (Customer) IsHasMetafieldDefinitions() {}
  872. func (this Customer) GetMetafieldDefinitions() *MetafieldDefinitionConnection {
  873. return this.MetafieldDefinitions
  874. }
  875. func (Customer) IsHasMetafields() {}
  876. func (this Customer) GetMetafield() *Metafield { return this.Metafield }
  877. func (this Customer) GetMetafields() *MetafieldConnection { return this.Metafields }
  878. func (this Customer) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  879. func (this Customer) GetPrivateMetafields() *PrivateMetafieldConnection {
  880. return this.PrivateMetafields
  881. }
  882. func (Customer) IsLegacyInteroperability() {}
  883. func (this Customer) GetLegacyResourceID() string { return this.LegacyResourceID }
  884. func (Customer) IsNode() {}
  885. func (Customer) IsCommentEventEmbed() {}
  886. func (Customer) IsPurchasingEntity() {}
  887. type CustomerCreatePayload struct {
  888. Customer *Customer `json:"customer"`
  889. UserErrors []*UserError `json:"userErrors"`
  890. }
  891. type CustomerCreditCard struct {
  892. BillingAddress *CustomerCreditCardBillingAddress `json:"billingAddress"`
  893. Brand string `json:"brand"`
  894. ExpiresSoon bool `json:"expiresSoon"`
  895. ExpiryMonth int `json:"expiryMonth"`
  896. ExpiryYear int `json:"expiryYear"`
  897. FirstDigits *string `json:"firstDigits"`
  898. IsRevocable bool `json:"isRevocable"`
  899. LastDigits string `json:"lastDigits"`
  900. MaskedNumber string `json:"maskedNumber"`
  901. Name string `json:"name"`
  902. Source *string `json:"source"`
  903. VirtualLastDigits *string `json:"virtualLastDigits"`
  904. }
  905. func (CustomerCreditCard) IsCustomerPaymentInstrument() {}
  906. type CustomerCreditCardBillingAddress struct {
  907. Address1 *string `json:"address1"`
  908. City *string `json:"city"`
  909. Country *string `json:"country"`
  910. CountryCode *CountryCode `json:"countryCode"`
  911. Province *string `json:"province"`
  912. ProvinceCode *string `json:"provinceCode"`
  913. Zip *string `json:"zip"`
  914. }
  915. type CustomerEmailMarketingConsentState struct {
  916. ConsentUpdatedAt *string `json:"consentUpdatedAt"`
  917. MarketingOptInLevel *CustomerMarketingOptInLevel `json:"marketingOptInLevel"`
  918. MarketingState CustomerEmailMarketingState `json:"marketingState"`
  919. }
  920. type CustomerInput struct {
  921. Addresses []*MailingAddressInput `json:"addresses"`
  922. Email *string `json:"email"`
  923. FirstName *string `json:"firstName"`
  924. ID *string `json:"id"`
  925. LastName *string `json:"lastName"`
  926. Locale *string `json:"locale"`
  927. Metafields []*MetafieldInput `json:"metafields"`
  928. Note *string `json:"note"`
  929. Phone *string `json:"phone"`
  930. PrivateMetafields []*PrivateMetafieldInput `json:"privateMetafields"`
  931. Tags []string `json:"tags"`
  932. }
  933. type CustomerJourneySummary struct {
  934. CustomerOrderIndex *int `json:"customerOrderIndex"`
  935. DaysToConversion *int `json:"daysToConversion"`
  936. FirstVisit *CustomerVisit `json:"firstVisit"`
  937. LastVisit *CustomerVisit `json:"lastVisit"`
  938. Moments *CustomerMomentConnection `json:"moments"`
  939. MomentsCount *int `json:"momentsCount"`
  940. Ready bool `json:"ready"`
  941. }
  942. type CustomerMomentConnection struct {
  943. Edges []*CustomerMomentEdge `json:"edges"`
  944. Nodes []CustomerMoment `json:"nodes"`
  945. PageInfo *PageInfo `json:"pageInfo"`
  946. }
  947. type CustomerMomentEdge struct {
  948. Cursor string `json:"cursor"`
  949. Node CustomerMoment `json:"node"`
  950. }
  951. type CustomerPaymentInstrumentBillingAddress struct {
  952. Address1 *string `json:"address1"`
  953. City *string `json:"city"`
  954. Country *string `json:"country"`
  955. CountryCode *CountryCode `json:"countryCode"`
  956. Name *string `json:"name"`
  957. Province *string `json:"province"`
  958. ProvinceCode *string `json:"provinceCode"`
  959. Zip *string `json:"zip"`
  960. }
  961. type CustomerPaymentMethod struct {
  962. Customer *Customer `json:"customer"`
  963. ID string `json:"id"`
  964. Instrument CustomerPaymentInstrument `json:"instrument"`
  965. RevokedAt *string `json:"revokedAt"`
  966. RevokedReason *CustomerPaymentMethodRevocationReason `json:"revokedReason"`
  967. SubscriptionContracts *SubscriptionContractConnection `json:"subscriptionContracts"`
  968. }
  969. func (CustomerPaymentMethod) IsNode() {}
  970. func (this CustomerPaymentMethod) GetID() string { return this.ID }
  971. type CustomerPaymentMethodConnection struct {
  972. Edges []*CustomerPaymentMethodEdge `json:"edges"`
  973. Nodes []*CustomerPaymentMethod `json:"nodes"`
  974. PageInfo *PageInfo `json:"pageInfo"`
  975. }
  976. type CustomerPaymentMethodEdge struct {
  977. Cursor string `json:"cursor"`
  978. Node *CustomerPaymentMethod `json:"node"`
  979. }
  980. type CustomerPaypalBillingAgreement struct {
  981. BillingAddress *CustomerPaymentInstrumentBillingAddress `json:"billingAddress"`
  982. Inactive bool `json:"inactive"`
  983. IsRevocable bool `json:"isRevocable"`
  984. PaypalAccountEmail *string `json:"paypalAccountEmail"`
  985. }
  986. func (CustomerPaypalBillingAgreement) IsCustomerPaymentInstrument() {}
  987. type CustomerShopPayAgreement struct {
  988. ExpiresSoon bool `json:"expiresSoon"`
  989. ExpiryMonth int `json:"expiryMonth"`
  990. ExpiryYear int `json:"expiryYear"`
  991. Inactive bool `json:"inactive"`
  992. IsRevocable bool `json:"isRevocable"`
  993. LastDigits string `json:"lastDigits"`
  994. MaskedNumber string `json:"maskedNumber"`
  995. Name string `json:"name"`
  996. }
  997. func (CustomerShopPayAgreement) IsCustomerPaymentInstrument() {}
  998. type CustomerSmsMarketingConsentState struct {
  999. ConsentCollectedFrom *CustomerConsentCollectedFrom `json:"consentCollectedFrom"`
  1000. ConsentUpdatedAt *string `json:"consentUpdatedAt"`
  1001. MarketingOptInLevel CustomerMarketingOptInLevel `json:"marketingOptInLevel"`
  1002. MarketingState CustomerSmsMarketingState `json:"marketingState"`
  1003. }
  1004. type CustomerStatistics struct {
  1005. PredictedSpendTier *CustomerPredictedSpendTier `json:"predictedSpendTier"`
  1006. }
  1007. type CustomerVisit struct {
  1008. ID string `json:"id"`
  1009. LandingPage *string `json:"landingPage"`
  1010. LandingPageHTML *string `json:"landingPageHtml"`
  1011. MarketingEvent *MarketingEvent `json:"marketingEvent"`
  1012. OccurredAt string `json:"occurredAt"`
  1013. ReferralCode *string `json:"referralCode"`
  1014. ReferralInfoHTML string `json:"referralInfoHtml"`
  1015. ReferrerURL *string `json:"referrerUrl"`
  1016. Source string `json:"source"`
  1017. SourceDescription *string `json:"sourceDescription"`
  1018. SourceType *MarketingTactic `json:"sourceType"`
  1019. UtmParameters *UTMParameters `json:"utmParameters"`
  1020. }
  1021. func (CustomerVisit) IsCustomerMoment() {}
  1022. func (this CustomerVisit) GetOccurredAt() string { return this.OccurredAt }
  1023. func (CustomerVisit) IsNode() {}
  1024. func (this CustomerVisit) GetID() string { return this.ID }
  1025. type DeliveryAvailableService struct {
  1026. Countries *DeliveryCountryCodesOrRestOfWorld `json:"countries"`
  1027. Name string `json:"name"`
  1028. }
  1029. type DeliveryCarrierService struct {
  1030. AvailableServicesForCountries []*DeliveryAvailableService `json:"availableServicesForCountries"`
  1031. FormattedName *string `json:"formattedName"`
  1032. Icon *Image `json:"icon"`
  1033. ID string `json:"id"`
  1034. Name *string `json:"name"`
  1035. }
  1036. func (DeliveryCarrierService) IsNode() {}
  1037. func (this DeliveryCarrierService) GetID() string { return this.ID }
  1038. type DeliveryCondition struct {
  1039. ConditionCriteria DeliveryConditionCriteria `json:"conditionCriteria"`
  1040. Field DeliveryConditionField `json:"field"`
  1041. ID string `json:"id"`
  1042. Operator DeliveryConditionOperator `json:"operator"`
  1043. }
  1044. func (DeliveryCondition) IsNode() {}
  1045. func (this DeliveryCondition) GetID() string { return this.ID }
  1046. type DeliveryCountry struct {
  1047. Code *DeliveryCountryCodeOrRestOfWorld `json:"code"`
  1048. ID string `json:"id"`
  1049. Name string `json:"name"`
  1050. Provinces []*DeliveryProvince `json:"provinces"`
  1051. TranslatedName string `json:"translatedName"`
  1052. }
  1053. func (DeliveryCountry) IsNode() {}
  1054. func (this DeliveryCountry) GetID() string { return this.ID }
  1055. type DeliveryCountryAndZone struct {
  1056. Country *DeliveryCountry `json:"country"`
  1057. Zone string `json:"zone"`
  1058. }
  1059. type DeliveryCountryCodeOrRestOfWorld struct {
  1060. CountryCode *CountryCode `json:"countryCode"`
  1061. RestOfWorld bool `json:"restOfWorld"`
  1062. }
  1063. type DeliveryCountryCodesOrRestOfWorld struct {
  1064. CountryCodes []CountryCode `json:"countryCodes"`
  1065. RestOfWorld bool `json:"restOfWorld"`
  1066. }
  1067. type DeliveryLocationGroup struct {
  1068. ID string `json:"id"`
  1069. Locations *LocationConnection `json:"locations"`
  1070. }
  1071. func (DeliveryLocationGroup) IsNode() {}
  1072. func (this DeliveryLocationGroup) GetID() string { return this.ID }
  1073. type DeliveryLocationGroupZone struct {
  1074. MethodDefinitionCounts *DeliveryMethodDefinitionCounts `json:"methodDefinitionCounts"`
  1075. MethodDefinitions *DeliveryMethodDefinitionConnection `json:"methodDefinitions"`
  1076. Zone *DeliveryZone `json:"zone"`
  1077. }
  1078. type DeliveryLocationGroupZoneConnection struct {
  1079. Edges []*DeliveryLocationGroupZoneEdge `json:"edges"`
  1080. Nodes []*DeliveryLocationGroupZone `json:"nodes"`
  1081. PageInfo *PageInfo `json:"pageInfo"`
  1082. }
  1083. type DeliveryLocationGroupZoneEdge struct {
  1084. Cursor string `json:"cursor"`
  1085. Node *DeliveryLocationGroupZone `json:"node"`
  1086. }
  1087. type DeliveryMethod struct {
  1088. ID string `json:"id"`
  1089. MaxDeliveryDateTime *string `json:"maxDeliveryDateTime"`
  1090. MethodType DeliveryMethodType `json:"methodType"`
  1091. MinDeliveryDateTime *string `json:"minDeliveryDateTime"`
  1092. }
  1093. func (DeliveryMethod) IsNode() {}
  1094. func (this DeliveryMethod) GetID() string { return this.ID }
  1095. type DeliveryMethodDefinition struct {
  1096. Active bool `json:"active"`
  1097. Description *string `json:"description"`
  1098. ID string `json:"id"`
  1099. MethodConditions []*DeliveryCondition `json:"methodConditions"`
  1100. Name string `json:"name"`
  1101. RateProvider DeliveryRateProvider `json:"rateProvider"`
  1102. }
  1103. func (DeliveryMethodDefinition) IsNode() {}
  1104. func (this DeliveryMethodDefinition) GetID() string { return this.ID }
  1105. type DeliveryMethodDefinitionConnection struct {
  1106. Edges []*DeliveryMethodDefinitionEdge `json:"edges"`
  1107. Nodes []*DeliveryMethodDefinition `json:"nodes"`
  1108. PageInfo *PageInfo `json:"pageInfo"`
  1109. }
  1110. type DeliveryMethodDefinitionCounts struct {
  1111. ParticipantDefinitionsCount int `json:"participantDefinitionsCount"`
  1112. RateDefinitionsCount int `json:"rateDefinitionsCount"`
  1113. }
  1114. type DeliveryMethodDefinitionEdge struct {
  1115. Cursor string `json:"cursor"`
  1116. Node *DeliveryMethodDefinition `json:"node"`
  1117. }
  1118. type DeliveryParticipant struct {
  1119. AdaptToNewServicesFlag bool `json:"adaptToNewServicesFlag"`
  1120. CarrierService *DeliveryCarrierService `json:"carrierService"`
  1121. FixedFee *MoneyV2 `json:"fixedFee"`
  1122. ID string `json:"id"`
  1123. ParticipantServices []*DeliveryParticipantService `json:"participantServices"`
  1124. PercentageOfRateFee float64 `json:"percentageOfRateFee"`
  1125. }
  1126. func (DeliveryParticipant) IsNode() {}
  1127. func (this DeliveryParticipant) GetID() string { return this.ID }
  1128. func (DeliveryParticipant) IsDeliveryRateProvider() {}
  1129. type DeliveryParticipantService struct {
  1130. Active bool `json:"active"`
  1131. Name string `json:"name"`
  1132. }
  1133. type DeliveryProductVariantsCount struct {
  1134. Capped bool `json:"capped"`
  1135. Count int `json:"count"`
  1136. }
  1137. type DeliveryProfile struct {
  1138. ActiveMethodDefinitionsCount int `json:"activeMethodDefinitionsCount"`
  1139. Default bool `json:"default"`
  1140. ID string `json:"id"`
  1141. LegacyMode bool `json:"legacyMode"`
  1142. LocationsWithoutRatesCount int `json:"locationsWithoutRatesCount"`
  1143. Name string `json:"name"`
  1144. OriginLocationCount int `json:"originLocationCount"`
  1145. ProductVariantsCountV2 *DeliveryProductVariantsCount `json:"productVariantsCountV2"`
  1146. ProfileItems *DeliveryProfileItemConnection `json:"profileItems"`
  1147. ProfileLocationGroups []*DeliveryProfileLocationGroup `json:"profileLocationGroups"`
  1148. SellingPlanGroups *SellingPlanGroupConnection `json:"sellingPlanGroups"`
  1149. UnassignedLocations []*Location `json:"unassignedLocations"`
  1150. ZoneCountryCount int `json:"zoneCountryCount"`
  1151. }
  1152. func (DeliveryProfile) IsNode() {}
  1153. func (this DeliveryProfile) GetID() string { return this.ID }
  1154. type DeliveryProfileItem struct {
  1155. ID string `json:"id"`
  1156. Product *Product `json:"product"`
  1157. Variants *ProductVariantConnection `json:"variants"`
  1158. }
  1159. func (DeliveryProfileItem) IsNode() {}
  1160. func (this DeliveryProfileItem) GetID() string { return this.ID }
  1161. type DeliveryProfileItemConnection struct {
  1162. Edges []*DeliveryProfileItemEdge `json:"edges"`
  1163. Nodes []*DeliveryProfileItem `json:"nodes"`
  1164. PageInfo *PageInfo `json:"pageInfo"`
  1165. }
  1166. type DeliveryProfileItemEdge struct {
  1167. Cursor string `json:"cursor"`
  1168. Node *DeliveryProfileItem `json:"node"`
  1169. }
  1170. type DeliveryProfileLocationGroup struct {
  1171. CountriesInAnyZone []*DeliveryCountryAndZone `json:"countriesInAnyZone"`
  1172. LocationGroup *DeliveryLocationGroup `json:"locationGroup"`
  1173. LocationGroupZones *DeliveryLocationGroupZoneConnection `json:"locationGroupZones"`
  1174. }
  1175. type DeliveryProvince struct {
  1176. Code string `json:"code"`
  1177. ID string `json:"id"`
  1178. Name string `json:"name"`
  1179. TranslatedName string `json:"translatedName"`
  1180. }
  1181. func (DeliveryProvince) IsNode() {}
  1182. func (this DeliveryProvince) GetID() string { return this.ID }
  1183. type DeliveryRateDefinition struct {
  1184. ID string `json:"id"`
  1185. Price *MoneyV2 `json:"price"`
  1186. }
  1187. func (DeliveryRateDefinition) IsNode() {}
  1188. func (this DeliveryRateDefinition) GetID() string { return this.ID }
  1189. func (DeliveryRateDefinition) IsDeliveryRateProvider() {}
  1190. type DeliveryZone struct {
  1191. Countries []*DeliveryCountry `json:"countries"`
  1192. ID string `json:"id"`
  1193. Name string `json:"name"`
  1194. }
  1195. func (DeliveryZone) IsNode() {}
  1196. func (this DeliveryZone) GetID() string { return this.ID }
  1197. type DiscountAllocation struct {
  1198. AllocatedAmountSet *MoneyBag `json:"allocatedAmountSet"`
  1199. DiscountApplication DiscountApplication `json:"discountApplication"`
  1200. }
  1201. type DiscountApplicationConnection struct {
  1202. Edges []*DiscountApplicationEdge `json:"edges"`
  1203. Nodes []DiscountApplication `json:"nodes"`
  1204. PageInfo *PageInfo `json:"pageInfo"`
  1205. }
  1206. type DiscountApplicationEdge struct {
  1207. Cursor string `json:"cursor"`
  1208. Node DiscountApplication `json:"node"`
  1209. }
  1210. type DiscountCodeApplication struct {
  1211. AllocationMethod DiscountApplicationAllocationMethod `json:"allocationMethod"`
  1212. Code string `json:"code"`
  1213. Index int `json:"index"`
  1214. TargetSelection DiscountApplicationTargetSelection `json:"targetSelection"`
  1215. TargetType DiscountApplicationTargetType `json:"targetType"`
  1216. Value PricingValue `json:"value"`
  1217. }
  1218. func (DiscountCodeApplication) IsDiscountApplication() {}
  1219. func (this DiscountCodeApplication) GetAllocationMethod() DiscountApplicationAllocationMethod {
  1220. return this.AllocationMethod
  1221. }
  1222. func (this DiscountCodeApplication) GetIndex() int { return this.Index }
  1223. func (this DiscountCodeApplication) GetTargetSelection() DiscountApplicationTargetSelection {
  1224. return this.TargetSelection
  1225. }
  1226. func (this DiscountCodeApplication) GetTargetType() DiscountApplicationTargetType {
  1227. return this.TargetType
  1228. }
  1229. func (this DiscountCodeApplication) GetValue() PricingValue { return this.Value }
  1230. type Domain struct {
  1231. Host string `json:"host"`
  1232. ID string `json:"id"`
  1233. Localization *DomainLocalization `json:"localization"`
  1234. MarketWebPresence *MarketWebPresence `json:"marketWebPresence"`
  1235. SslEnabled bool `json:"sslEnabled"`
  1236. URL string `json:"url"`
  1237. }
  1238. func (Domain) IsNode() {}
  1239. func (this Domain) GetID() string { return this.ID }
  1240. type DomainLocalization struct {
  1241. AlternateLocales []string `json:"alternateLocales"`
  1242. Country *string `json:"country"`
  1243. DefaultLocale string `json:"defaultLocale"`
  1244. }
  1245. type DraftOrder struct {
  1246. AppliedDiscount *DraftOrderAppliedDiscount `json:"appliedDiscount"`
  1247. BillingAddress *MailingAddress `json:"billingAddress"`
  1248. BillingAddressMatchesShippingAddress bool `json:"billingAddressMatchesShippingAddress"`
  1249. CompletedAt *string `json:"completedAt"`
  1250. CreatedAt string `json:"createdAt"`
  1251. CurrencyCode CurrencyCode `json:"currencyCode"`
  1252. CustomAttributes []*Attribute `json:"customAttributes"`
  1253. Customer *Customer `json:"customer"`
  1254. DefaultCursor string `json:"defaultCursor"`
  1255. Email *string `json:"email"`
  1256. Events *EventConnection `json:"events"`
  1257. HasTimelineComment bool `json:"hasTimelineComment"`
  1258. ID string `json:"id"`
  1259. InvoiceEmailTemplateSubject string `json:"invoiceEmailTemplateSubject"`
  1260. InvoiceSentAt *string `json:"invoiceSentAt"`
  1261. InvoiceURL *string `json:"invoiceUrl"`
  1262. LegacyResourceID string `json:"legacyResourceId"`
  1263. LineItems *DraftOrderLineItemConnection `json:"lineItems"`
  1264. LineItemsSubtotalPrice *MoneyBag `json:"lineItemsSubtotalPrice"`
  1265. LocalizationExtensions *LocalizationExtensionConnection `json:"localizationExtensions"`
  1266. MarketName string `json:"marketName"`
  1267. MarketRegionCountryCode CountryCode `json:"marketRegionCountryCode"`
  1268. Metafield *Metafield `json:"metafield"`
  1269. Metafields *MetafieldConnection `json:"metafields"`
  1270. Name string `json:"name"`
  1271. Note2 *string `json:"note2"`
  1272. Order *Order `json:"order"`
  1273. PaymentTerms *PaymentTerms `json:"paymentTerms"`
  1274. Phone *string `json:"phone"`
  1275. PresentmentCurrencyCode CurrencyCode `json:"presentmentCurrencyCode"`
  1276. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  1277. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  1278. PurchasingEntity PurchasingEntity `json:"purchasingEntity"`
  1279. Ready bool `json:"ready"`
  1280. ReserveInventoryUntil *string `json:"reserveInventoryUntil"`
  1281. ShippingAddress *MailingAddress `json:"shippingAddress"`
  1282. ShippingLine *ShippingLine `json:"shippingLine"`
  1283. Status DraftOrderStatus `json:"status"`
  1284. SubtotalPrice string `json:"subtotalPrice"`
  1285. SubtotalPriceSet *MoneyBag `json:"subtotalPriceSet"`
  1286. Tags []string `json:"tags"`
  1287. TaxExempt bool `json:"taxExempt"`
  1288. TaxLines []*TaxLine `json:"taxLines"`
  1289. TaxesIncluded bool `json:"taxesIncluded"`
  1290. TotalDiscountsSet *MoneyBag `json:"totalDiscountsSet"`
  1291. TotalLineItemsPriceSet *MoneyBag `json:"totalLineItemsPriceSet"`
  1292. TotalPrice string `json:"totalPrice"`
  1293. TotalPriceSet *MoneyBag `json:"totalPriceSet"`
  1294. TotalShippingPrice string `json:"totalShippingPrice"`
  1295. TotalShippingPriceSet *MoneyBag `json:"totalShippingPriceSet"`
  1296. TotalTax string `json:"totalTax"`
  1297. TotalTaxSet *MoneyBag `json:"totalTaxSet"`
  1298. TotalWeight string `json:"totalWeight"`
  1299. UpdatedAt string `json:"updatedAt"`
  1300. VisibleToCustomer bool `json:"visibleToCustomer"`
  1301. }
  1302. func (DraftOrder) IsCommentEventSubject() {}
  1303. func (this DraftOrder) GetID() string { return this.ID }
  1304. func (this DraftOrder) GetHasTimelineComment() bool { return this.HasTimelineComment }
  1305. func (DraftOrder) IsHasEvents() {}
  1306. func (this DraftOrder) GetEvents() *EventConnection { return this.Events }
  1307. func (DraftOrder) IsHasLocalizationExtensions() {}
  1308. func (this DraftOrder) GetLocalizationExtensions() *LocalizationExtensionConnection {
  1309. return this.LocalizationExtensions
  1310. }
  1311. func (DraftOrder) IsHasMetafields() {}
  1312. func (this DraftOrder) GetMetafield() *Metafield { return this.Metafield }
  1313. func (this DraftOrder) GetMetafields() *MetafieldConnection { return this.Metafields }
  1314. func (this DraftOrder) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  1315. func (this DraftOrder) GetPrivateMetafields() *PrivateMetafieldConnection {
  1316. return this.PrivateMetafields
  1317. }
  1318. func (DraftOrder) IsLegacyInteroperability() {}
  1319. func (this DraftOrder) GetLegacyResourceID() string { return this.LegacyResourceID }
  1320. func (DraftOrder) IsNavigable() {}
  1321. func (this DraftOrder) GetDefaultCursor() string { return this.DefaultCursor }
  1322. func (DraftOrder) IsNode() {}
  1323. func (DraftOrder) IsCommentEventEmbed() {}
  1324. type DraftOrderAppliedDiscount struct {
  1325. AmountSet *MoneyBag `json:"amountSet"`
  1326. AmountV2 *MoneyV2 `json:"amountV2"`
  1327. Description string `json:"description"`
  1328. Title *string `json:"title"`
  1329. Value float64 `json:"value"`
  1330. ValueType DraftOrderAppliedDiscountType `json:"valueType"`
  1331. }
  1332. type DraftOrderConnection struct {
  1333. Edges []*DraftOrderEdge `json:"edges"`
  1334. Nodes []*DraftOrder `json:"nodes"`
  1335. PageInfo *PageInfo `json:"pageInfo"`
  1336. }
  1337. type DraftOrderEdge struct {
  1338. Cursor string `json:"cursor"`
  1339. Node *DraftOrder `json:"node"`
  1340. }
  1341. type DraftOrderLineItem struct {
  1342. AppliedDiscount *DraftOrderAppliedDiscount `json:"appliedDiscount"`
  1343. Custom bool `json:"custom"`
  1344. CustomAttributes []*Attribute `json:"customAttributes"`
  1345. CustomAttributesV2 []*TypedAttribute `json:"customAttributesV2"`
  1346. DiscountedTotal string `json:"discountedTotal"`
  1347. DiscountedTotalSet *MoneyBag `json:"discountedTotalSet"`
  1348. DiscountedUnitPrice string `json:"discountedUnitPrice"`
  1349. DiscountedUnitPriceSet *MoneyBag `json:"discountedUnitPriceSet"`
  1350. FulfillmentService *FulfillmentService `json:"fulfillmentService"`
  1351. ID string `json:"id"`
  1352. Image *Image `json:"image"`
  1353. IsGiftCard bool `json:"isGiftCard"`
  1354. Name string `json:"name"`
  1355. OriginalTotal string `json:"originalTotal"`
  1356. OriginalTotalSet *MoneyBag `json:"originalTotalSet"`
  1357. OriginalUnitPrice string `json:"originalUnitPrice"`
  1358. OriginalUnitPriceSet *MoneyBag `json:"originalUnitPriceSet"`
  1359. Product *Product `json:"product"`
  1360. Quantity int `json:"quantity"`
  1361. RequiresShipping bool `json:"requiresShipping"`
  1362. Sku *string `json:"sku"`
  1363. TaxLines []*TaxLine `json:"taxLines"`
  1364. Taxable bool `json:"taxable"`
  1365. Title string `json:"title"`
  1366. TotalDiscount string `json:"totalDiscount"`
  1367. TotalDiscountSet *MoneyBag `json:"totalDiscountSet"`
  1368. Variant *ProductVariant `json:"variant"`
  1369. VariantTitle *string `json:"variantTitle"`
  1370. Vendor *string `json:"vendor"`
  1371. Weight *Weight `json:"weight"`
  1372. }
  1373. func (DraftOrderLineItem) IsNode() {}
  1374. func (this DraftOrderLineItem) GetID() string { return this.ID }
  1375. type DraftOrderLineItemConnection struct {
  1376. Edges []*DraftOrderLineItemEdge `json:"edges"`
  1377. Nodes []*DraftOrderLineItem `json:"nodes"`
  1378. PageInfo *PageInfo `json:"pageInfo"`
  1379. }
  1380. type DraftOrderLineItemEdge struct {
  1381. Cursor string `json:"cursor"`
  1382. Node *DraftOrderLineItem `json:"node"`
  1383. }
  1384. type Duty struct {
  1385. CountryCodeOfOrigin *CountryCode `json:"countryCodeOfOrigin"`
  1386. HarmonizedSystemCode *string `json:"harmonizedSystemCode"`
  1387. ID string `json:"id"`
  1388. Price *MoneyBag `json:"price"`
  1389. TaxLines []*TaxLine `json:"taxLines"`
  1390. }
  1391. func (Duty) IsNode() {}
  1392. func (this Duty) GetID() string { return this.ID }
  1393. type EditableProperty struct {
  1394. Locked bool `json:"locked"`
  1395. Reason *string `json:"reason"`
  1396. }
  1397. type EventConnection struct {
  1398. Edges []*EventEdge `json:"edges"`
  1399. Nodes []Event `json:"nodes"`
  1400. PageInfo *PageInfo `json:"pageInfo"`
  1401. }
  1402. type EventEdge struct {
  1403. Cursor string `json:"cursor"`
  1404. Node Event `json:"node"`
  1405. }
  1406. type FailedRequirement struct {
  1407. Action *NavigationItem `json:"action"`
  1408. Message string `json:"message"`
  1409. }
  1410. type FileError struct {
  1411. Code FileErrorCode `json:"code"`
  1412. Details *string `json:"details"`
  1413. Message string `json:"message"`
  1414. }
  1415. type FilterOption struct {
  1416. Label string `json:"label"`
  1417. Value string `json:"value"`
  1418. }
  1419. type Fulfillment struct {
  1420. CreatedAt string `json:"createdAt"`
  1421. DeliveredAt *string `json:"deliveredAt"`
  1422. DisplayStatus *FulfillmentDisplayStatus `json:"displayStatus"`
  1423. EstimatedDeliveryAt *string `json:"estimatedDeliveryAt"`
  1424. Events *FulfillmentEventConnection `json:"events"`
  1425. FulfillmentLineItems *FulfillmentLineItemConnection `json:"fulfillmentLineItems"`
  1426. FulfillmentOrders *FulfillmentOrderConnection `json:"fulfillmentOrders"`
  1427. ID string `json:"id"`
  1428. InTransitAt *string `json:"inTransitAt"`
  1429. LegacyResourceID string `json:"legacyResourceId"`
  1430. Location *Location `json:"location"`
  1431. Name string `json:"name"`
  1432. Order *Order `json:"order"`
  1433. OriginAddress *FulfillmentOriginAddress `json:"originAddress"`
  1434. RequiresShipping bool `json:"requiresShipping"`
  1435. Service *FulfillmentService `json:"service"`
  1436. Status FulfillmentStatus `json:"status"`
  1437. TotalQuantity int `json:"totalQuantity"`
  1438. TrackingInfo []*FulfillmentTrackingInfo `json:"trackingInfo"`
  1439. UpdatedAt string `json:"updatedAt"`
  1440. }
  1441. func (Fulfillment) IsLegacyInteroperability() {}
  1442. func (this Fulfillment) GetLegacyResourceID() string { return this.LegacyResourceID }
  1443. func (Fulfillment) IsNode() {}
  1444. func (this Fulfillment) GetID() string { return this.ID }
  1445. type FulfillmentConnection struct {
  1446. Edges []*FulfillmentEdge `json:"edges"`
  1447. Nodes []*Fulfillment `json:"nodes"`
  1448. PageInfo *PageInfo `json:"pageInfo"`
  1449. }
  1450. type FulfillmentEdge struct {
  1451. Cursor string `json:"cursor"`
  1452. Node *Fulfillment `json:"node"`
  1453. }
  1454. type FulfillmentEvent struct {
  1455. HappenedAt string `json:"happenedAt"`
  1456. ID string `json:"id"`
  1457. Status FulfillmentEventStatus `json:"status"`
  1458. }
  1459. func (FulfillmentEvent) IsNode() {}
  1460. func (this FulfillmentEvent) GetID() string { return this.ID }
  1461. type FulfillmentEventConnection struct {
  1462. Edges []*FulfillmentEventEdge `json:"edges"`
  1463. Nodes []*FulfillmentEvent `json:"nodes"`
  1464. PageInfo *PageInfo `json:"pageInfo"`
  1465. }
  1466. type FulfillmentEventEdge struct {
  1467. Cursor string `json:"cursor"`
  1468. Node *FulfillmentEvent `json:"node"`
  1469. }
  1470. type FulfillmentHold struct {
  1471. Reason FulfillmentHoldReason `json:"reason"`
  1472. ReasonNotes *string `json:"reasonNotes"`
  1473. }
  1474. type FulfillmentLineItem struct {
  1475. DiscountedTotalSet *MoneyBag `json:"discountedTotalSet"`
  1476. ID string `json:"id"`
  1477. LineItem *LineItem `json:"lineItem"`
  1478. OriginalTotalSet *MoneyBag `json:"originalTotalSet"`
  1479. Quantity *int `json:"quantity"`
  1480. }
  1481. func (FulfillmentLineItem) IsNode() {}
  1482. func (this FulfillmentLineItem) GetID() string { return this.ID }
  1483. type FulfillmentLineItemConnection struct {
  1484. Edges []*FulfillmentLineItemEdge `json:"edges"`
  1485. Nodes []*FulfillmentLineItem `json:"nodes"`
  1486. PageInfo *PageInfo `json:"pageInfo"`
  1487. }
  1488. type FulfillmentLineItemEdge struct {
  1489. Cursor string `json:"cursor"`
  1490. Node *FulfillmentLineItem `json:"node"`
  1491. }
  1492. type FulfillmentOrder struct {
  1493. AssignedLocation *FulfillmentOrderAssignedLocation `json:"assignedLocation"`
  1494. DeliveryMethod *DeliveryMethod `json:"deliveryMethod"`
  1495. Destination *FulfillmentOrderDestination `json:"destination"`
  1496. FulfillAt *string `json:"fulfillAt"`
  1497. FulfillBy *string `json:"fulfillBy"`
  1498. FulfillmentHolds []*FulfillmentHold `json:"fulfillmentHolds"`
  1499. Fulfillments *FulfillmentConnection `json:"fulfillments"`
  1500. ID string `json:"id"`
  1501. InternationalDuties *FulfillmentOrderInternationalDuties `json:"internationalDuties"`
  1502. LineItems *FulfillmentOrderLineItemConnection `json:"lineItems"`
  1503. LocationsForMove *FulfillmentOrderLocationForMoveConnection `json:"locationsForMove"`
  1504. MerchantRequests *FulfillmentOrderMerchantRequestConnection `json:"merchantRequests"`
  1505. Order *Order `json:"order"`
  1506. RequestStatus FulfillmentOrderRequestStatus `json:"requestStatus"`
  1507. Status FulfillmentOrderStatus `json:"status"`
  1508. SupportedActions []*FulfillmentOrderSupportedAction `json:"supportedActions"`
  1509. }
  1510. func (FulfillmentOrder) IsNode() {}
  1511. func (this FulfillmentOrder) GetID() string { return this.ID }
  1512. type FulfillmentOrderAssignedLocation struct {
  1513. Address1 *string `json:"address1"`
  1514. Address2 *string `json:"address2"`
  1515. City *string `json:"city"`
  1516. CountryCode CountryCode `json:"countryCode"`
  1517. Location *Location `json:"location"`
  1518. Name string `json:"name"`
  1519. Phone *string `json:"phone"`
  1520. Province *string `json:"province"`
  1521. Zip *string `json:"zip"`
  1522. }
  1523. type FulfillmentOrderConnection struct {
  1524. Edges []*FulfillmentOrderEdge `json:"edges"`
  1525. Nodes []*FulfillmentOrder `json:"nodes"`
  1526. PageInfo *PageInfo `json:"pageInfo"`
  1527. }
  1528. type FulfillmentOrderDestination struct {
  1529. Address1 *string `json:"address1"`
  1530. Address2 *string `json:"address2"`
  1531. City *string `json:"city"`
  1532. Company *string `json:"company"`
  1533. CountryCode *CountryCode `json:"countryCode"`
  1534. Email *string `json:"email"`
  1535. FirstName *string `json:"firstName"`
  1536. ID string `json:"id"`
  1537. LastName *string `json:"lastName"`
  1538. Phone *string `json:"phone"`
  1539. Province *string `json:"province"`
  1540. Zip *string `json:"zip"`
  1541. }
  1542. func (FulfillmentOrderDestination) IsNode() {}
  1543. func (this FulfillmentOrderDestination) GetID() string { return this.ID }
  1544. type FulfillmentOrderEdge struct {
  1545. Cursor string `json:"cursor"`
  1546. Node *FulfillmentOrder `json:"node"`
  1547. }
  1548. type FulfillmentOrderInternationalDuties struct {
  1549. Incoterm string `json:"incoterm"`
  1550. }
  1551. type FulfillmentOrderLineItem struct {
  1552. ID string `json:"id"`
  1553. LineItem *LineItem `json:"lineItem"`
  1554. RemainingQuantity int `json:"remainingQuantity"`
  1555. TotalQuantity int `json:"totalQuantity"`
  1556. Warnings []*FulfillmentOrderLineItemWarning `json:"warnings"`
  1557. }
  1558. func (FulfillmentOrderLineItem) IsNode() {}
  1559. func (this FulfillmentOrderLineItem) GetID() string { return this.ID }
  1560. type FulfillmentOrderLineItemConnection struct {
  1561. Edges []*FulfillmentOrderLineItemEdge `json:"edges"`
  1562. Nodes []*FulfillmentOrderLineItem `json:"nodes"`
  1563. PageInfo *PageInfo `json:"pageInfo"`
  1564. }
  1565. type FulfillmentOrderLineItemEdge struct {
  1566. Cursor string `json:"cursor"`
  1567. Node *FulfillmentOrderLineItem `json:"node"`
  1568. }
  1569. type FulfillmentOrderLineItemWarning struct {
  1570. Description *string `json:"description"`
  1571. Title *string `json:"title"`
  1572. }
  1573. type FulfillmentOrderLocationForMove struct {
  1574. Location *Location `json:"location"`
  1575. Message *string `json:"message"`
  1576. Movable bool `json:"movable"`
  1577. }
  1578. type FulfillmentOrderLocationForMoveConnection struct {
  1579. Edges []*FulfillmentOrderLocationForMoveEdge `json:"edges"`
  1580. Nodes []*FulfillmentOrderLocationForMove `json:"nodes"`
  1581. PageInfo *PageInfo `json:"pageInfo"`
  1582. }
  1583. type FulfillmentOrderLocationForMoveEdge struct {
  1584. Cursor string `json:"cursor"`
  1585. Node *FulfillmentOrderLocationForMove `json:"node"`
  1586. }
  1587. type FulfillmentOrderMerchantRequest struct {
  1588. ID string `json:"id"`
  1589. Kind FulfillmentOrderMerchantRequestKind `json:"kind"`
  1590. Message *string `json:"message"`
  1591. RequestOptions *string `json:"requestOptions"`
  1592. ResponseData *string `json:"responseData"`
  1593. SentAt string `json:"sentAt"`
  1594. }
  1595. func (FulfillmentOrderMerchantRequest) IsNode() {}
  1596. func (this FulfillmentOrderMerchantRequest) GetID() string { return this.ID }
  1597. type FulfillmentOrderMerchantRequestConnection struct {
  1598. Edges []*FulfillmentOrderMerchantRequestEdge `json:"edges"`
  1599. Nodes []*FulfillmentOrderMerchantRequest `json:"nodes"`
  1600. PageInfo *PageInfo `json:"pageInfo"`
  1601. }
  1602. type FulfillmentOrderMerchantRequestEdge struct {
  1603. Cursor string `json:"cursor"`
  1604. Node *FulfillmentOrderMerchantRequest `json:"node"`
  1605. }
  1606. type FulfillmentOrderSupportedAction struct {
  1607. Action FulfillmentOrderAction `json:"action"`
  1608. ExternalURL *string `json:"externalUrl"`
  1609. }
  1610. type FulfillmentOriginAddress struct {
  1611. Address1 *string `json:"address1"`
  1612. Address2 *string `json:"address2"`
  1613. City *string `json:"city"`
  1614. CountryCode string `json:"countryCode"`
  1615. ProvinceCode *string `json:"provinceCode"`
  1616. Zip *string `json:"zip"`
  1617. }
  1618. type FulfillmentService struct {
  1619. CallbackURL *string `json:"callbackUrl"`
  1620. FulfillmentOrdersOptIn bool `json:"fulfillmentOrdersOptIn"`
  1621. Handle string `json:"handle"`
  1622. ID string `json:"id"`
  1623. InventoryManagement bool `json:"inventoryManagement"`
  1624. Location *Location `json:"location"`
  1625. PermitsSkuSharing bool `json:"permitsSkuSharing"`
  1626. ProductBased bool `json:"productBased"`
  1627. ServiceName string `json:"serviceName"`
  1628. Type FulfillmentServiceType `json:"type"`
  1629. }
  1630. type FulfillmentTrackingInfo struct {
  1631. Company *string `json:"company"`
  1632. Number *string `json:"number"`
  1633. URL *string `json:"url"`
  1634. }
  1635. type GenericFile struct {
  1636. Alt *string `json:"alt"`
  1637. CreatedAt string `json:"createdAt"`
  1638. FileErrors []*FileError `json:"fileErrors"`
  1639. FileStatus FileStatus `json:"fileStatus"`
  1640. ID string `json:"id"`
  1641. MimeType *string `json:"mimeType"`
  1642. OriginalFileSize *int `json:"originalFileSize"`
  1643. Preview *MediaPreviewImage `json:"preview"`
  1644. URL *string `json:"url"`
  1645. }
  1646. func (GenericFile) IsFile() {}
  1647. func (this GenericFile) GetAlt() *string { return this.Alt }
  1648. func (this GenericFile) GetCreatedAt() string { return this.CreatedAt }
  1649. func (this GenericFile) GetFileErrors() []*FileError {
  1650. if this.FileErrors == nil {
  1651. return nil
  1652. }
  1653. interfaceSlice := make([]*FileError, 0, len(this.FileErrors))
  1654. for _, concrete := range this.FileErrors {
  1655. interfaceSlice = append(interfaceSlice, concrete)
  1656. }
  1657. return interfaceSlice
  1658. }
  1659. func (this GenericFile) GetFileStatus() FileStatus { return this.FileStatus }
  1660. func (this GenericFile) GetPreview() *MediaPreviewImage { return this.Preview }
  1661. func (GenericFile) IsNode() {}
  1662. func (this GenericFile) GetID() string { return this.ID }
  1663. func (GenericFile) IsMetafieldReference() {}
  1664. type Image struct {
  1665. AltText *string `json:"altText"`
  1666. Height *int `json:"height"`
  1667. ID *string `json:"id"`
  1668. Metafield *Metafield `json:"metafield"`
  1669. Metafields *MetafieldConnection `json:"metafields"`
  1670. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  1671. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  1672. URL string `json:"url"`
  1673. Width *int `json:"width"`
  1674. }
  1675. func (Image) IsHasMetafields() {}
  1676. func (this Image) GetMetafield() *Metafield { return this.Metafield }
  1677. func (this Image) GetMetafields() *MetafieldConnection { return this.Metafields }
  1678. func (this Image) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  1679. func (this Image) GetPrivateMetafields() *PrivateMetafieldConnection { return this.PrivateMetafields }
  1680. type ImageConnection struct {
  1681. Edges []*ImageEdge `json:"edges"`
  1682. Nodes []*Image `json:"nodes"`
  1683. PageInfo *PageInfo `json:"pageInfo"`
  1684. }
  1685. type ImageEdge struct {
  1686. Cursor string `json:"cursor"`
  1687. Node *Image `json:"node"`
  1688. }
  1689. type ImageTransformInput struct {
  1690. Crop *CropRegion `json:"crop"`
  1691. MaxWidth *int `json:"maxWidth"`
  1692. MaxHeight *int `json:"maxHeight"`
  1693. Scale *int `json:"scale"`
  1694. PreferredContentType *ImageContentType `json:"preferredContentType"`
  1695. }
  1696. type InventoryItem struct {
  1697. CountryCodeOfOrigin *CountryCode `json:"countryCodeOfOrigin"`
  1698. CountryHarmonizedSystemCodes *CountryHarmonizedSystemCodeConnection `json:"countryHarmonizedSystemCodes"`
  1699. CreatedAt string `json:"createdAt"`
  1700. DuplicateSkuCount int `json:"duplicateSkuCount"`
  1701. HarmonizedSystemCode *string `json:"harmonizedSystemCode"`
  1702. ID string `json:"id"`
  1703. InventoryHistoryURL *string `json:"inventoryHistoryUrl"`
  1704. InventoryLevel *InventoryLevel `json:"inventoryLevel"`
  1705. InventoryLevels *InventoryLevelConnection `json:"inventoryLevels"`
  1706. LegacyResourceID string `json:"legacyResourceId"`
  1707. LocationsCount int `json:"locationsCount"`
  1708. ProvinceCodeOfOrigin *string `json:"provinceCodeOfOrigin"`
  1709. RequiresShipping bool `json:"requiresShipping"`
  1710. Sku *string `json:"sku"`
  1711. Tracked bool `json:"tracked"`
  1712. TrackedEditable *EditableProperty `json:"trackedEditable"`
  1713. UnitCost *MoneyV2 `json:"unitCost"`
  1714. UpdatedAt string `json:"updatedAt"`
  1715. Variant *ProductVariant `json:"variant"`
  1716. }
  1717. func (InventoryItem) IsLegacyInteroperability() {}
  1718. func (this InventoryItem) GetLegacyResourceID() string { return this.LegacyResourceID }
  1719. func (InventoryItem) IsNode() {}
  1720. func (this InventoryItem) GetID() string { return this.ID }
  1721. type InventoryLevel struct {
  1722. Available int `json:"available"`
  1723. CanDeactivate bool `json:"canDeactivate"`
  1724. CreatedAt string `json:"createdAt"`
  1725. DeactivationAlert *string `json:"deactivationAlert"`
  1726. DeactivationAlertHTML *string `json:"deactivationAlertHtml"`
  1727. ID string `json:"id"`
  1728. Incoming int `json:"incoming"`
  1729. Item *InventoryItem `json:"item"`
  1730. Location *Location `json:"location"`
  1731. UpdatedAt string `json:"updatedAt"`
  1732. }
  1733. func (InventoryLevel) IsNode() {}
  1734. func (this InventoryLevel) GetID() string { return this.ID }
  1735. type InventoryLevelConnection struct {
  1736. Edges []*InventoryLevelEdge `json:"edges"`
  1737. Nodes []*InventoryLevel `json:"nodes"`
  1738. PageInfo *PageInfo `json:"pageInfo"`
  1739. }
  1740. type InventoryLevelEdge struct {
  1741. Cursor string `json:"cursor"`
  1742. Node *InventoryLevel `json:"node"`
  1743. }
  1744. type Job struct {
  1745. Done bool `json:"done"`
  1746. ID string `json:"id"`
  1747. }
  1748. type LimitedPendingOrderCount struct {
  1749. AtMax bool `json:"atMax"`
  1750. Count int `json:"count"`
  1751. }
  1752. type LineItem struct {
  1753. Contract *SubscriptionContract `json:"contract"`
  1754. CurrentQuantity int `json:"currentQuantity"`
  1755. CustomAttributes []*Attribute `json:"customAttributes"`
  1756. DiscountAllocations []*DiscountAllocation `json:"discountAllocations"`
  1757. DiscountedTotalSet *MoneyBag `json:"discountedTotalSet"`
  1758. DiscountedUnitPriceSet *MoneyBag `json:"discountedUnitPriceSet"`
  1759. Duties []*Duty `json:"duties"`
  1760. ID string `json:"id"`
  1761. Image *Image `json:"image"`
  1762. MerchantEditable bool `json:"merchantEditable"`
  1763. Name string `json:"name"`
  1764. NonFulfillableQuantity int `json:"nonFulfillableQuantity"`
  1765. OriginalTotalSet *MoneyBag `json:"originalTotalSet"`
  1766. OriginalUnitPriceSet *MoneyBag `json:"originalUnitPriceSet"`
  1767. Product *Product `json:"product"`
  1768. Quantity int `json:"quantity"`
  1769. RefundableQuantity int `json:"refundableQuantity"`
  1770. RequiresShipping bool `json:"requiresShipping"`
  1771. Restockable bool `json:"restockable"`
  1772. SellingPlan *LineItemSellingPlan `json:"sellingPlan"`
  1773. Sku *string `json:"sku"`
  1774. StaffMember *StaffMember `json:"staffMember"`
  1775. TaxLines []*TaxLine `json:"taxLines"`
  1776. Taxable bool `json:"taxable"`
  1777. Title string `json:"title"`
  1778. TotalDiscountSet *MoneyBag `json:"totalDiscountSet"`
  1779. UnfulfilledDiscountedTotalSet *MoneyBag `json:"unfulfilledDiscountedTotalSet"`
  1780. UnfulfilledOriginalTotalSet *MoneyBag `json:"unfulfilledOriginalTotalSet"`
  1781. UnfulfilledQuantity int `json:"unfulfilledQuantity"`
  1782. Variant *ProductVariant `json:"variant"`
  1783. VariantTitle *string `json:"variantTitle"`
  1784. Vendor *string `json:"vendor"`
  1785. }
  1786. func (LineItem) IsNode() {}
  1787. func (this LineItem) GetID() string { return this.ID }
  1788. type LineItemConnection struct {
  1789. Edges []*LineItemEdge `json:"edges"`
  1790. Nodes []*LineItem `json:"nodes"`
  1791. PageInfo *PageInfo `json:"pageInfo"`
  1792. }
  1793. type LineItemEdge struct {
  1794. Cursor string `json:"cursor"`
  1795. Node *LineItem `json:"node"`
  1796. }
  1797. type LineItemSellingPlan struct {
  1798. Name string `json:"name"`
  1799. SellingPlanID *string `json:"sellingPlanId"`
  1800. }
  1801. type Link struct {
  1802. Label string `json:"label"`
  1803. Translations []*PublishedTranslation `json:"translations"`
  1804. URL string `json:"url"`
  1805. }
  1806. func (Link) IsHasPublishedTranslations() {}
  1807. func (this Link) GetTranslations() []*PublishedTranslation {
  1808. if this.Translations == nil {
  1809. return nil
  1810. }
  1811. interfaceSlice := make([]*PublishedTranslation, 0, len(this.Translations))
  1812. for _, concrete := range this.Translations {
  1813. interfaceSlice = append(interfaceSlice, concrete)
  1814. }
  1815. return interfaceSlice
  1816. }
  1817. type LocalizationExtension struct {
  1818. CountryCode CountryCode `json:"countryCode"`
  1819. Key LocalizationExtensionKey `json:"key"`
  1820. Purpose LocalizationExtensionPurpose `json:"purpose"`
  1821. Title string `json:"title"`
  1822. Value string `json:"value"`
  1823. }
  1824. type LocalizationExtensionConnection struct {
  1825. Edges []*LocalizationExtensionEdge `json:"edges"`
  1826. Nodes []*LocalizationExtension `json:"nodes"`
  1827. PageInfo *PageInfo `json:"pageInfo"`
  1828. }
  1829. type LocalizationExtensionEdge struct {
  1830. Cursor string `json:"cursor"`
  1831. Node *LocalizationExtension `json:"node"`
  1832. }
  1833. type Location struct {
  1834. Activatable bool `json:"activatable"`
  1835. Address *LocationAddress `json:"address"`
  1836. AddressVerified bool `json:"addressVerified"`
  1837. Deactivatable bool `json:"deactivatable"`
  1838. DeactivatedAt *string `json:"deactivatedAt"`
  1839. Deletable bool `json:"deletable"`
  1840. FulfillmentService *FulfillmentService `json:"fulfillmentService"`
  1841. FulfillsOnlineOrders bool `json:"fulfillsOnlineOrders"`
  1842. HasActiveInventory bool `json:"hasActiveInventory"`
  1843. HasUnfulfilledOrders bool `json:"hasUnfulfilledOrders"`
  1844. ID string `json:"id"`
  1845. InventoryLevel *InventoryLevel `json:"inventoryLevel"`
  1846. InventoryLevels *InventoryLevelConnection `json:"inventoryLevels"`
  1847. IsActive bool `json:"isActive"`
  1848. LegacyResourceID string `json:"legacyResourceId"`
  1849. Metafield *Metafield `json:"metafield"`
  1850. MetafieldDefinitions *MetafieldDefinitionConnection `json:"metafieldDefinitions"`
  1851. Metafields *MetafieldConnection `json:"metafields"`
  1852. Name string `json:"name"`
  1853. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  1854. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  1855. ShipsInventory bool `json:"shipsInventory"`
  1856. SuggestedAddresses []*LocationSuggestedAddress `json:"suggestedAddresses"`
  1857. }
  1858. func (Location) IsHasMetafieldDefinitions() {}
  1859. func (this Location) GetMetafieldDefinitions() *MetafieldDefinitionConnection {
  1860. return this.MetafieldDefinitions
  1861. }
  1862. func (Location) IsHasMetafields() {}
  1863. func (this Location) GetMetafield() *Metafield { return this.Metafield }
  1864. func (this Location) GetMetafields() *MetafieldConnection { return this.Metafields }
  1865. func (this Location) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  1866. func (this Location) GetPrivateMetafields() *PrivateMetafieldConnection {
  1867. return this.PrivateMetafields
  1868. }
  1869. func (Location) IsLegacyInteroperability() {}
  1870. func (this Location) GetLegacyResourceID() string { return this.LegacyResourceID }
  1871. func (Location) IsNode() {}
  1872. func (this Location) GetID() string { return this.ID }
  1873. type LocationAddress struct {
  1874. Address1 *string `json:"address1"`
  1875. Address2 *string `json:"address2"`
  1876. City *string `json:"city"`
  1877. Country *string `json:"country"`
  1878. CountryCode *string `json:"countryCode"`
  1879. Formatted []string `json:"formatted"`
  1880. Latitude *float64 `json:"latitude"`
  1881. Longitude *float64 `json:"longitude"`
  1882. Phone *string `json:"phone"`
  1883. Province *string `json:"province"`
  1884. ProvinceCode *string `json:"provinceCode"`
  1885. Zip *string `json:"zip"`
  1886. }
  1887. type LocationConnection struct {
  1888. Edges []*LocationEdge `json:"edges"`
  1889. Nodes []*Location `json:"nodes"`
  1890. PageInfo *PageInfo `json:"pageInfo"`
  1891. }
  1892. type LocationEdge struct {
  1893. Cursor string `json:"cursor"`
  1894. Node *Location `json:"node"`
  1895. }
  1896. type LocationSuggestedAddress struct {
  1897. Address1 *string `json:"address1"`
  1898. Address2 *string `json:"address2"`
  1899. City *string `json:"city"`
  1900. Country *string `json:"country"`
  1901. CountryCode *CountryCode `json:"countryCode"`
  1902. Formatted []string `json:"formatted"`
  1903. Province *string `json:"province"`
  1904. ProvinceCode *string `json:"provinceCode"`
  1905. Zip *string `json:"zip"`
  1906. }
  1907. type MailingAddress struct {
  1908. Address1 *string `json:"address1"`
  1909. Address2 *string `json:"address2"`
  1910. City *string `json:"city"`
  1911. Company *string `json:"company"`
  1912. CoordinatesValidated bool `json:"coordinatesValidated"`
  1913. Country *string `json:"country"`
  1914. CountryCodeV2 *CountryCode `json:"countryCodeV2"`
  1915. FirstName *string `json:"firstName"`
  1916. FormattedArea *string `json:"formattedArea"`
  1917. ID string `json:"id"`
  1918. LastName *string `json:"lastName"`
  1919. Latitude *float64 `json:"latitude"`
  1920. Longitude *float64 `json:"longitude"`
  1921. Name *string `json:"name"`
  1922. Phone *string `json:"phone"`
  1923. Province *string `json:"province"`
  1924. ProvinceCode *string `json:"provinceCode"`
  1925. Zip *string `json:"zip"`
  1926. }
  1927. func (MailingAddress) IsNode() {}
  1928. func (this MailingAddress) GetID() string { return this.ID }
  1929. type MailingAddressInput struct {
  1930. Address1 *string `json:"address1"`
  1931. Address2 *string `json:"address2"`
  1932. City *string `json:"city"`
  1933. Company *string `json:"company"`
  1934. CountryCode *CountryCode `json:"countryCode"`
  1935. FirstName *string `json:"firstName"`
  1936. LastName *string `json:"lastName"`
  1937. Phone *string `json:"phone"`
  1938. ProvinceCode *string `json:"provinceCode"`
  1939. Zip *string `json:"zip"`
  1940. }
  1941. type ManualDiscountApplication struct {
  1942. AllocationMethod DiscountApplicationAllocationMethod `json:"allocationMethod"`
  1943. Description *string `json:"description"`
  1944. Index int `json:"index"`
  1945. TargetSelection DiscountApplicationTargetSelection `json:"targetSelection"`
  1946. TargetType DiscountApplicationTargetType `json:"targetType"`
  1947. Title string `json:"title"`
  1948. Value PricingValue `json:"value"`
  1949. }
  1950. func (ManualDiscountApplication) IsDiscountApplication() {}
  1951. func (this ManualDiscountApplication) GetAllocationMethod() DiscountApplicationAllocationMethod {
  1952. return this.AllocationMethod
  1953. }
  1954. func (this ManualDiscountApplication) GetIndex() int { return this.Index }
  1955. func (this ManualDiscountApplication) GetTargetSelection() DiscountApplicationTargetSelection {
  1956. return this.TargetSelection
  1957. }
  1958. func (this ManualDiscountApplication) GetTargetType() DiscountApplicationTargetType {
  1959. return this.TargetType
  1960. }
  1961. func (this ManualDiscountApplication) GetValue() PricingValue { return this.Value }
  1962. type Market struct {
  1963. CurrencySettings *MarketCurrencySettings `json:"currencySettings"`
  1964. Enabled bool `json:"enabled"`
  1965. ID string `json:"id"`
  1966. Name string `json:"name"`
  1967. PriceList *PriceList `json:"priceList"`
  1968. Primary bool `json:"primary"`
  1969. Regions *MarketRegionConnection `json:"regions"`
  1970. WebPresence *MarketWebPresence `json:"webPresence"`
  1971. }
  1972. func (Market) IsNode() {}
  1973. func (this Market) GetID() string { return this.ID }
  1974. type MarketCurrencySettings struct {
  1975. BaseCurrency *CurrencySetting `json:"baseCurrency"`
  1976. LocalCurrencies bool `json:"localCurrencies"`
  1977. }
  1978. type MarketRegionConnection struct {
  1979. Edges []*MarketRegionEdge `json:"edges"`
  1980. Nodes []MarketRegion `json:"nodes"`
  1981. PageInfo *PageInfo `json:"pageInfo"`
  1982. }
  1983. type MarketRegionEdge struct {
  1984. Cursor string `json:"cursor"`
  1985. Node MarketRegion `json:"node"`
  1986. }
  1987. type MarketWebPresence struct {
  1988. AlternateLocales []string `json:"alternateLocales"`
  1989. DefaultLocale string `json:"defaultLocale"`
  1990. Domain *Domain `json:"domain"`
  1991. ID string `json:"id"`
  1992. Market *Market `json:"market"`
  1993. RootUrls []*MarketWebPresenceRootURL `json:"rootUrls"`
  1994. SubfolderSuffix *string `json:"subfolderSuffix"`
  1995. }
  1996. func (MarketWebPresence) IsNode() {}
  1997. func (this MarketWebPresence) GetID() string { return this.ID }
  1998. type MarketWebPresenceRootURL struct {
  1999. Locale string `json:"locale"`
  2000. URL string `json:"url"`
  2001. }
  2002. type MarketingEvent struct {
  2003. App *App `json:"app"`
  2004. Channel *MarketingChannel `json:"channel"`
  2005. Description *string `json:"description"`
  2006. EndedAt *string `json:"endedAt"`
  2007. ID string `json:"id"`
  2008. LegacyResourceID string `json:"legacyResourceId"`
  2009. ManageURL *string `json:"manageUrl"`
  2010. PreviewURL *string `json:"previewUrl"`
  2011. RemoteID *string `json:"remoteId"`
  2012. ScheduledToEndAt *string `json:"scheduledToEndAt"`
  2013. SourceAndMedium string `json:"sourceAndMedium"`
  2014. StartedAt string `json:"startedAt"`
  2015. Type MarketingTactic `json:"type"`
  2016. UtmCampaign *string `json:"utmCampaign"`
  2017. UtmMedium *string `json:"utmMedium"`
  2018. UtmSource *string `json:"utmSource"`
  2019. }
  2020. func (MarketingEvent) IsLegacyInteroperability() {}
  2021. func (this MarketingEvent) GetLegacyResourceID() string { return this.LegacyResourceID }
  2022. func (MarketingEvent) IsNode() {}
  2023. func (this MarketingEvent) GetID() string { return this.ID }
  2024. type MediaConnection struct {
  2025. Edges []*MediaEdge `json:"edges"`
  2026. Nodes []Media `json:"nodes"`
  2027. PageInfo *PageInfo `json:"pageInfo"`
  2028. }
  2029. type MediaEdge struct {
  2030. Cursor string `json:"cursor"`
  2031. Node Media `json:"node"`
  2032. }
  2033. type MediaError struct {
  2034. Code MediaErrorCode `json:"code"`
  2035. Details *string `json:"details"`
  2036. Message string `json:"message"`
  2037. }
  2038. type MediaImage struct {
  2039. Alt *string `json:"alt"`
  2040. CreatedAt string `json:"createdAt"`
  2041. FileErrors []*FileError `json:"fileErrors"`
  2042. FileStatus FileStatus `json:"fileStatus"`
  2043. ID string `json:"id"`
  2044. Image *Image `json:"image"`
  2045. MediaContentType MediaContentType `json:"mediaContentType"`
  2046. MediaErrors []*MediaError `json:"mediaErrors"`
  2047. MediaWarnings []*MediaWarning `json:"mediaWarnings"`
  2048. MimeType *string `json:"mimeType"`
  2049. OriginalSource *MediaImageOriginalSource `json:"originalSource"`
  2050. Preview *MediaPreviewImage `json:"preview"`
  2051. Status MediaStatus `json:"status"`
  2052. }
  2053. func (MediaImage) IsFile() {}
  2054. func (this MediaImage) GetAlt() *string { return this.Alt }
  2055. func (this MediaImage) GetCreatedAt() string { return this.CreatedAt }
  2056. func (this MediaImage) GetFileErrors() []*FileError {
  2057. if this.FileErrors == nil {
  2058. return nil
  2059. }
  2060. interfaceSlice := make([]*FileError, 0, len(this.FileErrors))
  2061. for _, concrete := range this.FileErrors {
  2062. interfaceSlice = append(interfaceSlice, concrete)
  2063. }
  2064. return interfaceSlice
  2065. }
  2066. func (this MediaImage) GetFileStatus() FileStatus { return this.FileStatus }
  2067. func (this MediaImage) GetPreview() *MediaPreviewImage { return this.Preview }
  2068. func (MediaImage) IsMedia() {}
  2069. func (this MediaImage) GetMediaContentType() MediaContentType { return this.MediaContentType }
  2070. func (this MediaImage) GetMediaErrors() []*MediaError {
  2071. if this.MediaErrors == nil {
  2072. return nil
  2073. }
  2074. interfaceSlice := make([]*MediaError, 0, len(this.MediaErrors))
  2075. for _, concrete := range this.MediaErrors {
  2076. interfaceSlice = append(interfaceSlice, concrete)
  2077. }
  2078. return interfaceSlice
  2079. }
  2080. func (this MediaImage) GetMediaWarnings() []*MediaWarning {
  2081. if this.MediaWarnings == nil {
  2082. return nil
  2083. }
  2084. interfaceSlice := make([]*MediaWarning, 0, len(this.MediaWarnings))
  2085. for _, concrete := range this.MediaWarnings {
  2086. interfaceSlice = append(interfaceSlice, concrete)
  2087. }
  2088. return interfaceSlice
  2089. }
  2090. func (this MediaImage) GetStatus() MediaStatus { return this.Status }
  2091. func (MediaImage) IsNode() {}
  2092. func (this MediaImage) GetID() string { return this.ID }
  2093. func (MediaImage) IsMetafieldReference() {}
  2094. type MediaImageOriginalSource struct {
  2095. FileSize *int `json:"fileSize"`
  2096. }
  2097. type MediaPreviewImage struct {
  2098. Image *Image `json:"image"`
  2099. Status MediaPreviewImageStatus `json:"status"`
  2100. }
  2101. type MediaUserError struct {
  2102. Code *MediaUserErrorCode `json:"code"`
  2103. Field []string `json:"field"`
  2104. Message string `json:"message"`
  2105. }
  2106. func (MediaUserError) IsDisplayableError() {}
  2107. func (this MediaUserError) GetField() []string {
  2108. if this.Field == nil {
  2109. return nil
  2110. }
  2111. interfaceSlice := make([]string, 0, len(this.Field))
  2112. for _, concrete := range this.Field {
  2113. interfaceSlice = append(interfaceSlice, concrete)
  2114. }
  2115. return interfaceSlice
  2116. }
  2117. func (this MediaUserError) GetMessage() string { return this.Message }
  2118. type MediaWarning struct {
  2119. Code MediaWarningCode `json:"code"`
  2120. Message *string `json:"message"`
  2121. }
  2122. type MerchantApprovalSignals struct {
  2123. IdentityVerified bool `json:"identityVerified"`
  2124. VerifiedByShopify bool `json:"verifiedByShopify"`
  2125. }
  2126. type Metafield struct {
  2127. CreatedAt string `json:"createdAt"`
  2128. Definition *MetafieldDefinition `json:"definition"`
  2129. Description *string `json:"description"`
  2130. ID string `json:"id"`
  2131. Key string `json:"key"`
  2132. LegacyResourceID string `json:"legacyResourceId"`
  2133. Namespace string `json:"namespace"`
  2134. Owner HasMetafields `json:"owner"`
  2135. OwnerType MetafieldOwnerType `json:"ownerType"`
  2136. Reference MetafieldReference `json:"reference"`
  2137. References *MetafieldReferenceConnection `json:"references"`
  2138. Type string `json:"type"`
  2139. UpdatedAt string `json:"updatedAt"`
  2140. Value string `json:"value"`
  2141. }
  2142. func (Metafield) IsLegacyInteroperability() {}
  2143. func (this Metafield) GetLegacyResourceID() string { return this.LegacyResourceID }
  2144. func (Metafield) IsNode() {}
  2145. func (this Metafield) GetID() string { return this.ID }
  2146. type MetafieldConnection struct {
  2147. Edges []*MetafieldEdge `json:"edges"`
  2148. Nodes []*Metafield `json:"nodes"`
  2149. PageInfo *PageInfo `json:"pageInfo"`
  2150. }
  2151. type MetafieldDefinition struct {
  2152. Description *string `json:"description"`
  2153. ID string `json:"id"`
  2154. Key string `json:"key"`
  2155. Metafields *MetafieldConnection `json:"metafields"`
  2156. MetafieldsCount int `json:"metafieldsCount"`
  2157. Name string `json:"name"`
  2158. Namespace string `json:"namespace"`
  2159. OwnerType MetafieldOwnerType `json:"ownerType"`
  2160. PinnedPosition *int `json:"pinnedPosition"`
  2161. StandardTemplate *StandardMetafieldDefinitionTemplate `json:"standardTemplate"`
  2162. Type *MetafieldDefinitionType `json:"type"`
  2163. ValidationStatus MetafieldDefinitionValidationStatus `json:"validationStatus"`
  2164. Validations []*MetafieldDefinitionValidation `json:"validations"`
  2165. VisibleToStorefrontAPI bool `json:"visibleToStorefrontApi"`
  2166. }
  2167. func (MetafieldDefinition) IsNode() {}
  2168. func (this MetafieldDefinition) GetID() string { return this.ID }
  2169. type MetafieldDefinitionConnection struct {
  2170. Edges []*MetafieldDefinitionEdge `json:"edges"`
  2171. Nodes []*MetafieldDefinition `json:"nodes"`
  2172. PageInfo *PageInfo `json:"pageInfo"`
  2173. }
  2174. type MetafieldDefinitionEdge struct {
  2175. Cursor string `json:"cursor"`
  2176. Node *MetafieldDefinition `json:"node"`
  2177. }
  2178. type MetafieldDefinitionSupportedValidation struct {
  2179. Name string `json:"name"`
  2180. Type string `json:"type"`
  2181. }
  2182. type MetafieldDefinitionType struct {
  2183. Category string `json:"category"`
  2184. Name string `json:"name"`
  2185. SupportedValidations []*MetafieldDefinitionSupportedValidation `json:"supportedValidations"`
  2186. SupportsDefinitionMigrations bool `json:"supportsDefinitionMigrations"`
  2187. }
  2188. type MetafieldDefinitionValidation struct {
  2189. Name string `json:"name"`
  2190. Type string `json:"type"`
  2191. Value *string `json:"value"`
  2192. }
  2193. type MetafieldEdge struct {
  2194. Cursor string `json:"cursor"`
  2195. Node *Metafield `json:"node"`
  2196. }
  2197. type MetafieldInput struct {
  2198. Description *string `json:"description"`
  2199. ID *string `json:"id"`
  2200. Namespace *string `json:"namespace"`
  2201. Key *string `json:"key"`
  2202. Value *string `json:"value"`
  2203. Type *string `json:"type"`
  2204. }
  2205. type MetafieldReferenceConnection struct {
  2206. Edges []*MetafieldReferenceEdge `json:"edges"`
  2207. Nodes []MetafieldReference `json:"nodes"`
  2208. PageInfo *PageInfo `json:"pageInfo"`
  2209. }
  2210. type MetafieldReferenceEdge struct {
  2211. Cursor string `json:"cursor"`
  2212. Node MetafieldReference `json:"node"`
  2213. }
  2214. type MoneyBag struct {
  2215. PresentmentMoney *MoneyV2 `json:"presentmentMoney"`
  2216. ShopMoney *MoneyV2 `json:"shopMoney"`
  2217. }
  2218. type MoneyV2 struct {
  2219. Amount string `json:"amount"`
  2220. CurrencyCode CurrencyCode `json:"currencyCode"`
  2221. }
  2222. func (MoneyV2) IsPricingValue() {}
  2223. func (MoneyV2) IsDeliveryConditionCriteria() {}
  2224. func (MoneyV2) IsSellingPlanCheckoutChargeValue() {}
  2225. func (MoneyV2) IsSellingPlanPricingPolicyAdjustmentValue() {}
  2226. type NavigationItem struct {
  2227. ID string `json:"id"`
  2228. Title string `json:"title"`
  2229. URL string `json:"url"`
  2230. }
  2231. type OnlineStorePage struct {
  2232. DefaultCursor string `json:"defaultCursor"`
  2233. ID string `json:"id"`
  2234. Translations []*PublishedTranslation `json:"translations"`
  2235. }
  2236. func (OnlineStorePage) IsHasPublishedTranslations() {}
  2237. func (this OnlineStorePage) GetTranslations() []*PublishedTranslation {
  2238. if this.Translations == nil {
  2239. return nil
  2240. }
  2241. interfaceSlice := make([]*PublishedTranslation, 0, len(this.Translations))
  2242. for _, concrete := range this.Translations {
  2243. interfaceSlice = append(interfaceSlice, concrete)
  2244. }
  2245. return interfaceSlice
  2246. }
  2247. func (OnlineStorePage) IsNavigable() {}
  2248. func (this OnlineStorePage) GetDefaultCursor() string { return this.DefaultCursor }
  2249. func (OnlineStorePage) IsNode() {}
  2250. func (this OnlineStorePage) GetID() string { return this.ID }
  2251. func (OnlineStorePage) IsMetafieldReference() {}
  2252. type Order struct {
  2253. Agreements *SalesAgreementConnection `json:"agreements"`
  2254. Alerts []*ResourceAlert `json:"alerts"`
  2255. App *OrderApp `json:"app"`
  2256. BillingAddress *MailingAddress `json:"billingAddress"`
  2257. BillingAddressMatchesShippingAddress bool `json:"billingAddressMatchesShippingAddress"`
  2258. CanMarkAsPaid bool `json:"canMarkAsPaid"`
  2259. CanNotifyCustomer bool `json:"canNotifyCustomer"`
  2260. CancelReason *OrderCancelReason `json:"cancelReason"`
  2261. CancelledAt *string `json:"cancelledAt"`
  2262. Capturable bool `json:"capturable"`
  2263. CartDiscountAmountSet *MoneyBag `json:"cartDiscountAmountSet"`
  2264. ChannelInformation *ChannelInformation `json:"channelInformation"`
  2265. ClientIP *string `json:"clientIp"`
  2266. Closed bool `json:"closed"`
  2267. ClosedAt *string `json:"closedAt"`
  2268. Confirmed bool `json:"confirmed"`
  2269. CreatedAt string `json:"createdAt"`
  2270. CurrencyCode CurrencyCode `json:"currencyCode"`
  2271. CurrentCartDiscountAmountSet *MoneyBag `json:"currentCartDiscountAmountSet"`
  2272. CurrentSubtotalLineItemsQuantity int `json:"currentSubtotalLineItemsQuantity"`
  2273. CurrentSubtotalPriceSet *MoneyBag `json:"currentSubtotalPriceSet"`
  2274. CurrentTaxLines []*TaxLine `json:"currentTaxLines"`
  2275. CurrentTotalDiscountsSet *MoneyBag `json:"currentTotalDiscountsSet"`
  2276. CurrentTotalDutiesSet *MoneyBag `json:"currentTotalDutiesSet"`
  2277. CurrentTotalPriceSet *MoneyBag `json:"currentTotalPriceSet"`
  2278. CurrentTotalTaxSet *MoneyBag `json:"currentTotalTaxSet"`
  2279. CurrentTotalWeight string `json:"currentTotalWeight"`
  2280. CustomAttributes []*Attribute `json:"customAttributes"`
  2281. Customer *Customer `json:"customer"`
  2282. CustomerAcceptsMarketing bool `json:"customerAcceptsMarketing"`
  2283. CustomerJourneySummary *CustomerJourneySummary `json:"customerJourneySummary"`
  2284. CustomerLocale *string `json:"customerLocale"`
  2285. DiscountApplications *DiscountApplicationConnection `json:"discountApplications"`
  2286. DiscountCode *string `json:"discountCode"`
  2287. DiscountCodes []string `json:"discountCodes"`
  2288. DisplayAddress *MailingAddress `json:"displayAddress"`
  2289. DisplayFinancialStatus *OrderDisplayFinancialStatus `json:"displayFinancialStatus"`
  2290. DisplayFulfillmentStatus OrderDisplayFulfillmentStatus `json:"displayFulfillmentStatus"`
  2291. Disputes []*OrderDisputeSummary `json:"disputes"`
  2292. Edited bool `json:"edited"`
  2293. Email *string `json:"email"`
  2294. EstimatedTaxes bool `json:"estimatedTaxes"`
  2295. Events *EventConnection `json:"events"`
  2296. Fulfillable bool `json:"fulfillable"`
  2297. FulfillmentOrders *FulfillmentOrderConnection `json:"fulfillmentOrders"`
  2298. Fulfillments []*Fulfillment `json:"fulfillments"`
  2299. FullyPaid bool `json:"fullyPaid"`
  2300. HasTimelineComment bool `json:"hasTimelineComment"`
  2301. ID string `json:"id"`
  2302. LegacyResourceID string `json:"legacyResourceId"`
  2303. LineItems *LineItemConnection `json:"lineItems"`
  2304. LocalizationExtensions *LocalizationExtensionConnection `json:"localizationExtensions"`
  2305. MerchantEditable bool `json:"merchantEditable"`
  2306. MerchantEditableErrors []string `json:"merchantEditableErrors"`
  2307. MerchantOfRecordApp *OrderApp `json:"merchantOfRecordApp"`
  2308. Metafield *Metafield `json:"metafield"`
  2309. MetafieldDefinitions *MetafieldDefinitionConnection `json:"metafieldDefinitions"`
  2310. Metafields *MetafieldConnection `json:"metafields"`
  2311. Name string `json:"name"`
  2312. NetPaymentSet *MoneyBag `json:"netPaymentSet"`
  2313. NonFulfillableLineItems *LineItemConnection `json:"nonFulfillableLineItems"`
  2314. Note *string `json:"note"`
  2315. OriginalTotalDutiesSet *MoneyBag `json:"originalTotalDutiesSet"`
  2316. OriginalTotalPriceSet *MoneyBag `json:"originalTotalPriceSet"`
  2317. PaymentCollectionDetails *OrderPaymentCollectionDetails `json:"paymentCollectionDetails"`
  2318. PaymentGatewayNames []string `json:"paymentGatewayNames"`
  2319. PaymentTerms *PaymentTerms `json:"paymentTerms"`
  2320. Phone *string `json:"phone"`
  2321. PhysicalLocation *Location `json:"physicalLocation"`
  2322. PresentmentCurrencyCode CurrencyCode `json:"presentmentCurrencyCode"`
  2323. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  2324. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  2325. ProcessedAt string `json:"processedAt"`
  2326. Publication *Publication `json:"publication"`
  2327. PurchasingEntity PurchasingEntity `json:"purchasingEntity"`
  2328. RefundDiscrepancySet *MoneyBag `json:"refundDiscrepancySet"`
  2329. Refundable bool `json:"refundable"`
  2330. Refunds []*Refund `json:"refunds"`
  2331. RegisteredSourceURL *string `json:"registeredSourceUrl"`
  2332. RequiresShipping bool `json:"requiresShipping"`
  2333. Restockable bool `json:"restockable"`
  2334. RiskLevel OrderRiskLevel `json:"riskLevel"`
  2335. Risks []*OrderRisk `json:"risks"`
  2336. ShippingAddress *MailingAddress `json:"shippingAddress"`
  2337. ShippingLine *ShippingLine `json:"shippingLine"`
  2338. ShippingLines *ShippingLineConnection `json:"shippingLines"`
  2339. SourceIdentifier *string `json:"sourceIdentifier"`
  2340. SubtotalLineItemsQuantity int `json:"subtotalLineItemsQuantity"`
  2341. SubtotalPriceSet *MoneyBag `json:"subtotalPriceSet"`
  2342. SuggestedRefund *SuggestedRefund `json:"suggestedRefund"`
  2343. Tags []string `json:"tags"`
  2344. TaxLines []*TaxLine `json:"taxLines"`
  2345. TaxesIncluded bool `json:"taxesIncluded"`
  2346. Test bool `json:"test"`
  2347. TotalCapturableSet *MoneyBag `json:"totalCapturableSet"`
  2348. TotalDiscountsSet *MoneyBag `json:"totalDiscountsSet"`
  2349. TotalOutstandingSet *MoneyBag `json:"totalOutstandingSet"`
  2350. TotalPriceSet *MoneyBag `json:"totalPriceSet"`
  2351. TotalReceivedSet *MoneyBag `json:"totalReceivedSet"`
  2352. TotalRefundedSet *MoneyBag `json:"totalRefundedSet"`
  2353. TotalRefundedShippingSet *MoneyBag `json:"totalRefundedShippingSet"`
  2354. TotalShippingPriceSet *MoneyBag `json:"totalShippingPriceSet"`
  2355. TotalTaxSet *MoneyBag `json:"totalTaxSet"`
  2356. TotalTipReceivedSet *MoneyBag `json:"totalTipReceivedSet"`
  2357. TotalWeight *string `json:"totalWeight"`
  2358. Transactions []*OrderTransaction `json:"transactions"`
  2359. Unpaid bool `json:"unpaid"`
  2360. UpdatedAt string `json:"updatedAt"`
  2361. }
  2362. func (Order) IsCommentEventSubject() {}
  2363. func (this Order) GetID() string { return this.ID }
  2364. func (this Order) GetHasTimelineComment() bool { return this.HasTimelineComment }
  2365. func (Order) IsHasEvents() {}
  2366. func (this Order) GetEvents() *EventConnection { return this.Events }
  2367. func (Order) IsHasLocalizationExtensions() {}
  2368. func (this Order) GetLocalizationExtensions() *LocalizationExtensionConnection {
  2369. return this.LocalizationExtensions
  2370. }
  2371. func (Order) IsHasMetafieldDefinitions() {}
  2372. func (this Order) GetMetafieldDefinitions() *MetafieldDefinitionConnection {
  2373. return this.MetafieldDefinitions
  2374. }
  2375. func (Order) IsHasMetafields() {}
  2376. func (this Order) GetMetafield() *Metafield { return this.Metafield }
  2377. func (this Order) GetMetafields() *MetafieldConnection { return this.Metafields }
  2378. func (this Order) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  2379. func (this Order) GetPrivateMetafields() *PrivateMetafieldConnection { return this.PrivateMetafields }
  2380. func (Order) IsLegacyInteroperability() {}
  2381. func (this Order) GetLegacyResourceID() string { return this.LegacyResourceID }
  2382. func (Order) IsNode() {}
  2383. func (Order) IsCommentEventEmbed() {}
  2384. type OrderApp struct {
  2385. Icon *Image `json:"icon"`
  2386. ID string `json:"id"`
  2387. Name string `json:"name"`
  2388. }
  2389. type OrderConnection struct {
  2390. Edges []*OrderEdge `json:"edges"`
  2391. Nodes []*Order `json:"nodes"`
  2392. PageInfo *PageInfo `json:"pageInfo"`
  2393. }
  2394. type OrderDisputeSummary struct {
  2395. ID string `json:"id"`
  2396. InitiatedAs DisputeType `json:"initiatedAs"`
  2397. Status DisputeStatus `json:"status"`
  2398. }
  2399. func (OrderDisputeSummary) IsNode() {}
  2400. func (this OrderDisputeSummary) GetID() string { return this.ID }
  2401. type OrderEdge struct {
  2402. Cursor string `json:"cursor"`
  2403. Node *Order `json:"node"`
  2404. }
  2405. type OrderPaymentCollectionDetails struct {
  2406. AdditionalPaymentCollectionURL *string `json:"additionalPaymentCollectionUrl"`
  2407. VaultedPaymentMethods []*PaymentMandate `json:"vaultedPaymentMethods"`
  2408. }
  2409. type OrderRisk struct {
  2410. Display bool `json:"display"`
  2411. Level *OrderRiskLevel `json:"level"`
  2412. Message *string `json:"message"`
  2413. }
  2414. type OrderTransaction struct {
  2415. AccountNumber *string `json:"accountNumber"`
  2416. AmountSet *MoneyBag `json:"amountSet"`
  2417. AuthorizationCode *string `json:"authorizationCode"`
  2418. AuthorizationExpiresAt *string `json:"authorizationExpiresAt"`
  2419. CreatedAt string `json:"createdAt"`
  2420. ErrorCode *OrderTransactionErrorCode `json:"errorCode"`
  2421. Fees []*TransactionFee `json:"fees"`
  2422. FormattedGateway *string `json:"formattedGateway"`
  2423. Gateway *string `json:"gateway"`
  2424. ID string `json:"id"`
  2425. Kind OrderTransactionKind `json:"kind"`
  2426. ManuallyCapturable bool `json:"manuallyCapturable"`
  2427. MaximumRefundableV2 *MoneyV2 `json:"maximumRefundableV2"`
  2428. Order *Order `json:"order"`
  2429. ParentTransaction *OrderTransaction `json:"parentTransaction"`
  2430. PaymentIcon *Image `json:"paymentIcon"`
  2431. ProcessedAt *string `json:"processedAt"`
  2432. ReceiptJSON *string `json:"receiptJson"`
  2433. SettlementCurrency *CurrencyCode `json:"settlementCurrency"`
  2434. SettlementCurrencyRate *string `json:"settlementCurrencyRate"`
  2435. ShopifyPaymentsSet *ShopifyPaymentsTransactionSet `json:"shopifyPaymentsSet"`
  2436. Status OrderTransactionStatus `json:"status"`
  2437. Test bool `json:"test"`
  2438. TotalUnsettledSet *MoneyBag `json:"totalUnsettledSet"`
  2439. User *StaffMember `json:"user"`
  2440. }
  2441. func (OrderTransaction) IsNode() {}
  2442. func (this OrderTransaction) GetID() string { return this.ID }
  2443. type OrderTransactionConnection struct {
  2444. Edges []*OrderTransactionEdge `json:"edges"`
  2445. Nodes []*OrderTransaction `json:"nodes"`
  2446. PageInfo *PageInfo `json:"pageInfo"`
  2447. }
  2448. type OrderTransactionEdge struct {
  2449. Cursor string `json:"cursor"`
  2450. Node *OrderTransaction `json:"node"`
  2451. }
  2452. type PageInfo struct {
  2453. EndCursor *string `json:"endCursor"`
  2454. HasNextPage bool `json:"hasNextPage"`
  2455. HasPreviousPage bool `json:"hasPreviousPage"`
  2456. StartCursor *string `json:"startCursor"`
  2457. }
  2458. type PaymentMandate struct {
  2459. ID string `json:"id"`
  2460. PaymentInstrument PaymentInstrument `json:"paymentInstrument"`
  2461. }
  2462. func (PaymentMandate) IsNode() {}
  2463. func (this PaymentMandate) GetID() string { return this.ID }
  2464. type PaymentSchedule struct {
  2465. Amount *MoneyV2 `json:"amount"`
  2466. CompletedAt *string `json:"completedAt"`
  2467. DueAt *string `json:"dueAt"`
  2468. ID string `json:"id"`
  2469. IssuedAt *string `json:"issuedAt"`
  2470. }
  2471. func (PaymentSchedule) IsNode() {}
  2472. func (this PaymentSchedule) GetID() string { return this.ID }
  2473. type PaymentScheduleConnection struct {
  2474. Edges []*PaymentScheduleEdge `json:"edges"`
  2475. Nodes []*PaymentSchedule `json:"nodes"`
  2476. PageInfo *PageInfo `json:"pageInfo"`
  2477. }
  2478. type PaymentScheduleEdge struct {
  2479. Cursor string `json:"cursor"`
  2480. Node *PaymentSchedule `json:"node"`
  2481. }
  2482. type PaymentSettings struct {
  2483. SupportedDigitalWallets []DigitalWallet `json:"supportedDigitalWallets"`
  2484. }
  2485. type PaymentTerms struct {
  2486. DueInDays *int `json:"dueInDays"`
  2487. ID string `json:"id"`
  2488. Overdue bool `json:"overdue"`
  2489. PaymentSchedules *PaymentScheduleConnection `json:"paymentSchedules"`
  2490. PaymentTermsName string `json:"paymentTermsName"`
  2491. PaymentTermsType PaymentTermsType `json:"paymentTermsType"`
  2492. TranslatedName string `json:"translatedName"`
  2493. }
  2494. func (PaymentTerms) IsNode() {}
  2495. func (this PaymentTerms) GetID() string { return this.ID }
  2496. type PaymentTermsTemplate struct {
  2497. Description string `json:"description"`
  2498. DueInDays *int `json:"dueInDays"`
  2499. ID string `json:"id"`
  2500. Name string `json:"name"`
  2501. PaymentTermsType PaymentTermsType `json:"paymentTermsType"`
  2502. TranslatedName string `json:"translatedName"`
  2503. }
  2504. func (PaymentTermsTemplate) IsNode() {}
  2505. func (this PaymentTermsTemplate) GetID() string { return this.ID }
  2506. type PriceList struct {
  2507. ContextRule *PriceListContextRule `json:"contextRule"`
  2508. Currency CurrencyCode `json:"currency"`
  2509. ID string `json:"id"`
  2510. Name string `json:"name"`
  2511. Parent *PriceListParent `json:"parent"`
  2512. Prices *PriceListPriceConnection `json:"prices"`
  2513. }
  2514. func (PriceList) IsNode() {}
  2515. func (this PriceList) GetID() string { return this.ID }
  2516. type PriceListAdjustment struct {
  2517. Type PriceListAdjustmentType `json:"type"`
  2518. Value float64 `json:"value"`
  2519. }
  2520. type PriceListContextRule struct {
  2521. Countries []CountryCode `json:"countries"`
  2522. Market *Market `json:"market"`
  2523. }
  2524. type PriceListParent struct {
  2525. Adjustment *PriceListAdjustment `json:"adjustment"`
  2526. }
  2527. type PriceListPrice struct {
  2528. CompareAtPrice *MoneyV2 `json:"compareAtPrice"`
  2529. OriginType PriceListPriceOriginType `json:"originType"`
  2530. Price *MoneyV2 `json:"price"`
  2531. Variant *ProductVariant `json:"variant"`
  2532. }
  2533. type PriceListPriceConnection struct {
  2534. Edges []*PriceListPriceEdge `json:"edges"`
  2535. Nodes []*PriceListPrice `json:"nodes"`
  2536. PageInfo *PageInfo `json:"pageInfo"`
  2537. }
  2538. type PriceListPriceEdge struct {
  2539. Cursor string `json:"cursor"`
  2540. Node *PriceListPrice `json:"node"`
  2541. }
  2542. type PricingPercentageValue struct {
  2543. Percentage float64 `json:"percentage"`
  2544. }
  2545. func (PricingPercentageValue) IsPricingValue() {}
  2546. type PrivateMetafield struct {
  2547. CreatedAt string `json:"createdAt"`
  2548. ID string `json:"id"`
  2549. Key string `json:"key"`
  2550. Namespace string `json:"namespace"`
  2551. UpdatedAt string `json:"updatedAt"`
  2552. Value string `json:"value"`
  2553. ValueType PrivateMetafieldValueType `json:"valueType"`
  2554. }
  2555. func (PrivateMetafield) IsNode() {}
  2556. func (this PrivateMetafield) GetID() string { return this.ID }
  2557. type PrivateMetafieldConnection struct {
  2558. Edges []*PrivateMetafieldEdge `json:"edges"`
  2559. Nodes []*PrivateMetafield `json:"nodes"`
  2560. PageInfo *PageInfo `json:"pageInfo"`
  2561. }
  2562. type PrivateMetafieldEdge struct {
  2563. Cursor string `json:"cursor"`
  2564. Node *PrivateMetafield `json:"node"`
  2565. }
  2566. type PrivateMetafieldInput struct {
  2567. Owner *string `json:"owner"`
  2568. Namespace string `json:"namespace"`
  2569. Key string `json:"key"`
  2570. ValueInput *PrivateMetafieldValueInput `json:"valueInput"`
  2571. }
  2572. type PrivateMetafieldValueInput struct {
  2573. Value string `json:"value"`
  2574. ValueType PrivateMetafieldValueType `json:"valueType"`
  2575. }
  2576. type Product struct {
  2577. AvailablePublicationCount int `json:"availablePublicationCount"`
  2578. Collections *CollectionConnection `json:"collections"`
  2579. ContextualPricing *ProductContextualPricing `json:"contextualPricing"`
  2580. CreatedAt string `json:"createdAt"`
  2581. DefaultCursor string `json:"defaultCursor"`
  2582. Description string `json:"description"`
  2583. DescriptionHTML string `json:"descriptionHtml"`
  2584. FeaturedImage *Image `json:"featuredImage"`
  2585. FeaturedMedia Media `json:"featuredMedia"`
  2586. Feedback *ResourceFeedback `json:"feedback"`
  2587. GiftCardTemplateSuffix *string `json:"giftCardTemplateSuffix"`
  2588. Handle string `json:"handle"`
  2589. HasOnlyDefaultVariant bool `json:"hasOnlyDefaultVariant"`
  2590. HasOutOfStockVariants bool `json:"hasOutOfStockVariants"`
  2591. ID string `json:"id"`
  2592. Images *ImageConnection `json:"images"`
  2593. InCollection bool `json:"inCollection"`
  2594. IsGiftCard bool `json:"isGiftCard"`
  2595. LegacyResourceID string `json:"legacyResourceId"`
  2596. Media *MediaConnection `json:"media"`
  2597. MediaCount int `json:"mediaCount"`
  2598. Metafield *Metafield `json:"metafield"`
  2599. MetafieldDefinitions *MetafieldDefinitionConnection `json:"metafieldDefinitions"`
  2600. Metafields *MetafieldConnection `json:"metafields"`
  2601. OnlineStorePreviewURL *string `json:"onlineStorePreviewUrl"`
  2602. OnlineStoreURL *string `json:"onlineStoreUrl"`
  2603. Options []*ProductOption `json:"options"`
  2604. PriceRangeV2 *ProductPriceRangeV2 `json:"priceRangeV2"`
  2605. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  2606. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  2607. ProductCategory *ProductCategory `json:"productCategory"`
  2608. ProductType string `json:"productType"`
  2609. PublicationCount int `json:"publicationCount"`
  2610. PublishedAt *string `json:"publishedAt"`
  2611. PublishedOnCurrentPublication bool `json:"publishedOnCurrentPublication"`
  2612. PublishedOnPublication bool `json:"publishedOnPublication"`
  2613. RequiresSellingPlan bool `json:"requiresSellingPlan"`
  2614. ResourcePublicationOnCurrentPublication *ResourcePublicationV2 `json:"resourcePublicationOnCurrentPublication"`
  2615. ResourcePublications *ResourcePublicationConnection `json:"resourcePublications"`
  2616. ResourcePublicationsV2 *ResourcePublicationV2Connection `json:"resourcePublicationsV2"`
  2617. SellingPlanGroupCount int `json:"sellingPlanGroupCount"`
  2618. SellingPlanGroups *SellingPlanGroupConnection `json:"sellingPlanGroups"`
  2619. Seo *Seo `json:"seo"`
  2620. Status ProductStatus `json:"status"`
  2621. Tags []string `json:"tags"`
  2622. TemplateSuffix *string `json:"templateSuffix"`
  2623. Title string `json:"title"`
  2624. TotalInventory int `json:"totalInventory"`
  2625. TotalVariants int `json:"totalVariants"`
  2626. TracksInventory bool `json:"tracksInventory"`
  2627. Translations []*PublishedTranslation `json:"translations"`
  2628. UnpublishedPublications *PublicationConnection `json:"unpublishedPublications"`
  2629. UpdatedAt string `json:"updatedAt"`
  2630. Variants *ProductVariantConnection `json:"variants"`
  2631. Vendor string `json:"vendor"`
  2632. }
  2633. func (Product) IsHasMetafieldDefinitions() {}
  2634. func (this Product) GetMetafieldDefinitions() *MetafieldDefinitionConnection {
  2635. return this.MetafieldDefinitions
  2636. }
  2637. func (Product) IsHasMetafields() {}
  2638. func (this Product) GetMetafield() *Metafield { return this.Metafield }
  2639. func (this Product) GetMetafields() *MetafieldConnection { return this.Metafields }
  2640. func (this Product) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  2641. func (this Product) GetPrivateMetafields() *PrivateMetafieldConnection { return this.PrivateMetafields }
  2642. func (Product) IsHasPublishedTranslations() {}
  2643. func (this Product) GetTranslations() []*PublishedTranslation {
  2644. if this.Translations == nil {
  2645. return nil
  2646. }
  2647. interfaceSlice := make([]*PublishedTranslation, 0, len(this.Translations))
  2648. for _, concrete := range this.Translations {
  2649. interfaceSlice = append(interfaceSlice, concrete)
  2650. }
  2651. return interfaceSlice
  2652. }
  2653. func (Product) IsLegacyInteroperability() {}
  2654. func (this Product) GetLegacyResourceID() string { return this.LegacyResourceID }
  2655. func (Product) IsNavigable() {}
  2656. func (this Product) GetDefaultCursor() string { return this.DefaultCursor }
  2657. func (Product) IsNode() {}
  2658. func (this Product) GetID() string { return this.ID }
  2659. func (Product) IsOnlineStorePreviewable() {}
  2660. func (this Product) GetOnlineStorePreviewURL() *string { return this.OnlineStorePreviewURL }
  2661. func (Product) IsPublishable() {}
  2662. func (this Product) GetAvailablePublicationCount() int { return this.AvailablePublicationCount }
  2663. func (this Product) GetPublicationCount() int { return this.PublicationCount }
  2664. func (this Product) GetPublishedOnCurrentPublication() bool {
  2665. return this.PublishedOnCurrentPublication
  2666. }
  2667. func (this Product) GetPublishedOnPublication() bool { return this.PublishedOnPublication }
  2668. func (this Product) GetResourcePublications() *ResourcePublicationConnection {
  2669. return this.ResourcePublications
  2670. }
  2671. func (this Product) GetResourcePublicationsV2() *ResourcePublicationV2Connection {
  2672. return this.ResourcePublicationsV2
  2673. }
  2674. func (this Product) GetUnpublishedPublications() *PublicationConnection {
  2675. return this.UnpublishedPublications
  2676. }
  2677. func (Product) IsCommentEventEmbed() {}
  2678. func (Product) IsMetafieldReference() {}
  2679. func (Product) IsEntity() {}
  2680. type ProductCategory struct {
  2681. ProductTaxonomyNode *ProductTaxonomyNode `json:"productTaxonomyNode"`
  2682. }
  2683. type ProductChangeStatusUserError struct {
  2684. Code *ProductChangeStatusUserErrorCode `json:"code"`
  2685. Field []string `json:"field"`
  2686. Message string `json:"message"`
  2687. }
  2688. func (ProductChangeStatusUserError) IsDisplayableError() {}
  2689. func (this ProductChangeStatusUserError) GetField() []string {
  2690. if this.Field == nil {
  2691. return nil
  2692. }
  2693. interfaceSlice := make([]string, 0, len(this.Field))
  2694. for _, concrete := range this.Field {
  2695. interfaceSlice = append(interfaceSlice, concrete)
  2696. }
  2697. return interfaceSlice
  2698. }
  2699. func (this ProductChangeStatusUserError) GetMessage() string { return this.Message }
  2700. type ProductConnection struct {
  2701. Edges []*ProductEdge `json:"edges"`
  2702. Nodes []*Product `json:"nodes"`
  2703. PageInfo *PageInfo `json:"pageInfo"`
  2704. }
  2705. type ProductContextualPricing struct {
  2706. MaxVariantPricing *ProductVariantContextualPricing `json:"maxVariantPricing"`
  2707. MinVariantPricing *ProductVariantContextualPricing `json:"minVariantPricing"`
  2708. PriceRange *ProductPriceRangeV2 `json:"priceRange"`
  2709. }
  2710. type ProductEdge struct {
  2711. Cursor string `json:"cursor"`
  2712. Node *Product `json:"node"`
  2713. }
  2714. type ProductOption struct {
  2715. ID string `json:"id"`
  2716. Name string `json:"name"`
  2717. Position int `json:"position"`
  2718. Translations []*PublishedTranslation `json:"translations"`
  2719. Values []string `json:"values"`
  2720. }
  2721. func (ProductOption) IsHasPublishedTranslations() {}
  2722. func (this ProductOption) GetTranslations() []*PublishedTranslation {
  2723. if this.Translations == nil {
  2724. return nil
  2725. }
  2726. interfaceSlice := make([]*PublishedTranslation, 0, len(this.Translations))
  2727. for _, concrete := range this.Translations {
  2728. interfaceSlice = append(interfaceSlice, concrete)
  2729. }
  2730. return interfaceSlice
  2731. }
  2732. func (ProductOption) IsNode() {}
  2733. func (this ProductOption) GetID() string { return this.ID }
  2734. type ProductPriceRangeV2 struct {
  2735. MaxVariantPrice *MoneyV2 `json:"maxVariantPrice"`
  2736. MinVariantPrice *MoneyV2 `json:"minVariantPrice"`
  2737. }
  2738. type ProductTaxonomyNode struct {
  2739. FullName string `json:"fullName"`
  2740. ID string `json:"id"`
  2741. IsLeaf bool `json:"isLeaf"`
  2742. IsRoot bool `json:"isRoot"`
  2743. Name string `json:"name"`
  2744. }
  2745. func (ProductTaxonomyNode) IsNode() {}
  2746. func (this ProductTaxonomyNode) GetID() string { return this.ID }
  2747. type ProductVariant struct {
  2748. AvailableForSale bool `json:"availableForSale"`
  2749. Barcode *string `json:"barcode"`
  2750. CompareAtPrice *string `json:"compareAtPrice"`
  2751. ContextualPricing *ProductVariantContextualPricing `json:"contextualPricing"`
  2752. CreatedAt string `json:"createdAt"`
  2753. DefaultCursor string `json:"defaultCursor"`
  2754. DeliveryProfile *DeliveryProfile `json:"deliveryProfile"`
  2755. DisplayName string `json:"displayName"`
  2756. FulfillmentServiceEditable *EditableProperty `json:"fulfillmentServiceEditable"`
  2757. ID string `json:"id"`
  2758. Image *Image `json:"image"`
  2759. InventoryItem *InventoryItem `json:"inventoryItem"`
  2760. InventoryPolicy ProductVariantInventoryPolicy `json:"inventoryPolicy"`
  2761. InventoryQuantity *int `json:"inventoryQuantity"`
  2762. LegacyResourceID string `json:"legacyResourceId"`
  2763. Media *MediaConnection `json:"media"`
  2764. Metafield *Metafield `json:"metafield"`
  2765. MetafieldDefinitions *MetafieldDefinitionConnection `json:"metafieldDefinitions"`
  2766. Metafields *MetafieldConnection `json:"metafields"`
  2767. Position int `json:"position"`
  2768. Price string `json:"price"`
  2769. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  2770. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  2771. Product *Product `json:"product"`
  2772. SelectedOptions []*SelectedOption `json:"selectedOptions"`
  2773. SellableOnlineQuantity int `json:"sellableOnlineQuantity"`
  2774. SellingPlanGroupCount int `json:"sellingPlanGroupCount"`
  2775. SellingPlanGroups *SellingPlanGroupConnection `json:"sellingPlanGroups"`
  2776. Sku *string `json:"sku"`
  2777. TaxCode *string `json:"taxCode"`
  2778. Taxable bool `json:"taxable"`
  2779. Title string `json:"title"`
  2780. Translations []*PublishedTranslation `json:"translations"`
  2781. UpdatedAt string `json:"updatedAt"`
  2782. Weight *float64 `json:"weight"`
  2783. WeightUnit WeightUnit `json:"weightUnit"`
  2784. }
  2785. func (ProductVariant) IsHasMetafieldDefinitions() {}
  2786. func (this ProductVariant) GetMetafieldDefinitions() *MetafieldDefinitionConnection {
  2787. return this.MetafieldDefinitions
  2788. }
  2789. func (ProductVariant) IsHasMetafields() {}
  2790. func (this ProductVariant) GetMetafield() *Metafield { return this.Metafield }
  2791. func (this ProductVariant) GetMetafields() *MetafieldConnection { return this.Metafields }
  2792. func (this ProductVariant) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  2793. func (this ProductVariant) GetPrivateMetafields() *PrivateMetafieldConnection {
  2794. return this.PrivateMetafields
  2795. }
  2796. func (ProductVariant) IsHasPublishedTranslations() {}
  2797. func (this ProductVariant) GetTranslations() []*PublishedTranslation {
  2798. if this.Translations == nil {
  2799. return nil
  2800. }
  2801. interfaceSlice := make([]*PublishedTranslation, 0, len(this.Translations))
  2802. for _, concrete := range this.Translations {
  2803. interfaceSlice = append(interfaceSlice, concrete)
  2804. }
  2805. return interfaceSlice
  2806. }
  2807. func (ProductVariant) IsLegacyInteroperability() {}
  2808. func (this ProductVariant) GetLegacyResourceID() string { return this.LegacyResourceID }
  2809. func (ProductVariant) IsNavigable() {}
  2810. func (this ProductVariant) GetDefaultCursor() string { return this.DefaultCursor }
  2811. func (ProductVariant) IsNode() {}
  2812. func (this ProductVariant) GetID() string { return this.ID }
  2813. func (ProductVariant) IsCommentEventEmbed() {}
  2814. func (ProductVariant) IsMetafieldReference() {}
  2815. type ProductVariantConnection struct {
  2816. Edges []*ProductVariantEdge `json:"edges"`
  2817. Nodes []*ProductVariant `json:"nodes"`
  2818. PageInfo *PageInfo `json:"pageInfo"`
  2819. }
  2820. type ProductVariantContextualPricing struct {
  2821. CompareAtPrice *MoneyV2 `json:"compareAtPrice"`
  2822. Price *MoneyV2 `json:"price"`
  2823. }
  2824. type ProductVariantEdge struct {
  2825. Cursor string `json:"cursor"`
  2826. Node *ProductVariant `json:"node"`
  2827. }
  2828. type ProductVariantsBulkCreateUserError struct {
  2829. Code *ProductVariantsBulkCreateUserErrorCode `json:"code"`
  2830. Field []string `json:"field"`
  2831. Message string `json:"message"`
  2832. }
  2833. func (ProductVariantsBulkCreateUserError) IsDisplayableError() {}
  2834. func (this ProductVariantsBulkCreateUserError) GetField() []string {
  2835. if this.Field == nil {
  2836. return nil
  2837. }
  2838. interfaceSlice := make([]string, 0, len(this.Field))
  2839. for _, concrete := range this.Field {
  2840. interfaceSlice = append(interfaceSlice, concrete)
  2841. }
  2842. return interfaceSlice
  2843. }
  2844. func (this ProductVariantsBulkCreateUserError) GetMessage() string { return this.Message }
  2845. type ProductVariantsBulkDeleteUserError struct {
  2846. Code *ProductVariantsBulkDeleteUserErrorCode `json:"code"`
  2847. Field []string `json:"field"`
  2848. Message string `json:"message"`
  2849. }
  2850. func (ProductVariantsBulkDeleteUserError) IsDisplayableError() {}
  2851. func (this ProductVariantsBulkDeleteUserError) GetField() []string {
  2852. if this.Field == nil {
  2853. return nil
  2854. }
  2855. interfaceSlice := make([]string, 0, len(this.Field))
  2856. for _, concrete := range this.Field {
  2857. interfaceSlice = append(interfaceSlice, concrete)
  2858. }
  2859. return interfaceSlice
  2860. }
  2861. func (this ProductVariantsBulkDeleteUserError) GetMessage() string { return this.Message }
  2862. type ProductVariantsBulkReorderUserError struct {
  2863. Code *ProductVariantsBulkReorderUserErrorCode `json:"code"`
  2864. Field []string `json:"field"`
  2865. Message string `json:"message"`
  2866. }
  2867. func (ProductVariantsBulkReorderUserError) IsDisplayableError() {}
  2868. func (this ProductVariantsBulkReorderUserError) GetField() []string {
  2869. if this.Field == nil {
  2870. return nil
  2871. }
  2872. interfaceSlice := make([]string, 0, len(this.Field))
  2873. for _, concrete := range this.Field {
  2874. interfaceSlice = append(interfaceSlice, concrete)
  2875. }
  2876. return interfaceSlice
  2877. }
  2878. func (this ProductVariantsBulkReorderUserError) GetMessage() string { return this.Message }
  2879. type ProductVariantsBulkUpdateUserError struct {
  2880. Code *ProductVariantsBulkUpdateUserErrorCode `json:"code"`
  2881. Field []string `json:"field"`
  2882. Message string `json:"message"`
  2883. }
  2884. func (ProductVariantsBulkUpdateUserError) IsDisplayableError() {}
  2885. func (this ProductVariantsBulkUpdateUserError) GetField() []string {
  2886. if this.Field == nil {
  2887. return nil
  2888. }
  2889. interfaceSlice := make([]string, 0, len(this.Field))
  2890. for _, concrete := range this.Field {
  2891. interfaceSlice = append(interfaceSlice, concrete)
  2892. }
  2893. return interfaceSlice
  2894. }
  2895. func (this ProductVariantsBulkUpdateUserError) GetMessage() string { return this.Message }
  2896. type Publication struct {
  2897. App *App `json:"app"`
  2898. CollectionPublicationsV3 *ResourcePublicationConnection `json:"collectionPublicationsV3"`
  2899. Collections *CollectionConnection `json:"collections"`
  2900. HasCollection bool `json:"hasCollection"`
  2901. ID string `json:"id"`
  2902. Name string `json:"name"`
  2903. ProductPublicationsV3 *ResourcePublicationConnection `json:"productPublicationsV3"`
  2904. Products *ProductConnection `json:"products"`
  2905. SupportsFuturePublishing bool `json:"supportsFuturePublishing"`
  2906. }
  2907. func (Publication) IsNode() {}
  2908. func (this Publication) GetID() string { return this.ID }
  2909. type PublicationConnection struct {
  2910. Edges []*PublicationEdge `json:"edges"`
  2911. Nodes []*Publication `json:"nodes"`
  2912. PageInfo *PageInfo `json:"pageInfo"`
  2913. }
  2914. type PublicationEdge struct {
  2915. Cursor string `json:"cursor"`
  2916. Node *Publication `json:"node"`
  2917. }
  2918. type PublishedTranslation struct {
  2919. Key string `json:"key"`
  2920. Locale string `json:"locale"`
  2921. MarketID *string `json:"marketId"`
  2922. Value *string `json:"value"`
  2923. }
  2924. type PurchasingCompany struct {
  2925. Company *Company `json:"company"`
  2926. Contact *CompanyContact `json:"contact"`
  2927. Location *CompanyLocation `json:"location"`
  2928. }
  2929. func (PurchasingCompany) IsPurchasingEntity() {}
  2930. type Refund struct {
  2931. CreatedAt *string `json:"createdAt"`
  2932. Duties []*RefundDuty `json:"duties"`
  2933. ID string `json:"id"`
  2934. LegacyResourceID string `json:"legacyResourceId"`
  2935. Note *string `json:"note"`
  2936. Order *Order `json:"order"`
  2937. RefundLineItems *RefundLineItemConnection `json:"refundLineItems"`
  2938. StaffMember *StaffMember `json:"staffMember"`
  2939. TotalRefundedSet *MoneyBag `json:"totalRefundedSet"`
  2940. Transactions *OrderTransactionConnection `json:"transactions"`
  2941. UpdatedAt string `json:"updatedAt"`
  2942. }
  2943. func (Refund) IsLegacyInteroperability() {}
  2944. func (this Refund) GetLegacyResourceID() string { return this.LegacyResourceID }
  2945. func (Refund) IsNode() {}
  2946. func (this Refund) GetID() string { return this.ID }
  2947. type RefundDuty struct {
  2948. AmountSet *MoneyBag `json:"amountSet"`
  2949. OriginalDuty *Duty `json:"originalDuty"`
  2950. }
  2951. type RefundDutyInput struct {
  2952. DutyID string `json:"dutyId"`
  2953. RefundType *RefundDutyRefundType `json:"refundType"`
  2954. }
  2955. type RefundLineItem struct {
  2956. LineItem *LineItem `json:"lineItem"`
  2957. Location *Location `json:"location"`
  2958. PriceSet *MoneyBag `json:"priceSet"`
  2959. Quantity int `json:"quantity"`
  2960. RestockType RefundLineItemRestockType `json:"restockType"`
  2961. Restocked bool `json:"restocked"`
  2962. SubtotalSet *MoneyBag `json:"subtotalSet"`
  2963. TotalTaxSet *MoneyBag `json:"totalTaxSet"`
  2964. }
  2965. type RefundLineItemConnection struct {
  2966. Edges []*RefundLineItemEdge `json:"edges"`
  2967. Nodes []*RefundLineItem `json:"nodes"`
  2968. PageInfo *PageInfo `json:"pageInfo"`
  2969. }
  2970. type RefundLineItemEdge struct {
  2971. Cursor string `json:"cursor"`
  2972. Node *RefundLineItem `json:"node"`
  2973. }
  2974. type RefundLineItemInput struct {
  2975. LineItemID string `json:"lineItemId"`
  2976. Quantity int `json:"quantity"`
  2977. RestockType *RefundLineItemRestockType `json:"restockType"`
  2978. LocationID *string `json:"locationId"`
  2979. }
  2980. type ResourceAlert struct {
  2981. Actions []*ResourceAlertAction `json:"actions"`
  2982. Content string `json:"content"`
  2983. DismissibleHandle *string `json:"dismissibleHandle"`
  2984. Icon *ResourceAlertIcon `json:"icon"`
  2985. Severity ResourceAlertSeverity `json:"severity"`
  2986. Title string `json:"title"`
  2987. }
  2988. type ResourceAlertAction struct {
  2989. Primary bool `json:"primary"`
  2990. Show *string `json:"show"`
  2991. Title string `json:"title"`
  2992. URL string `json:"url"`
  2993. }
  2994. type ResourceFeedback struct {
  2995. Details []*AppFeedback `json:"details"`
  2996. Summary string `json:"summary"`
  2997. }
  2998. type ResourceLimit struct {
  2999. Available bool `json:"available"`
  3000. QuantityAvailable *int `json:"quantityAvailable"`
  3001. QuantityLimit *int `json:"quantityLimit"`
  3002. QuantityUsed *int `json:"quantityUsed"`
  3003. }
  3004. type ResourcePublication struct {
  3005. IsPublished bool `json:"isPublished"`
  3006. Publication *Publication `json:"publication"`
  3007. PublishDate string `json:"publishDate"`
  3008. Publishable Publishable `json:"publishable"`
  3009. }
  3010. type ResourcePublicationConnection struct {
  3011. Edges []*ResourcePublicationEdge `json:"edges"`
  3012. Nodes []*ResourcePublication `json:"nodes"`
  3013. PageInfo *PageInfo `json:"pageInfo"`
  3014. }
  3015. type ResourcePublicationEdge struct {
  3016. Cursor string `json:"cursor"`
  3017. Node *ResourcePublication `json:"node"`
  3018. }
  3019. type ResourcePublicationV2 struct {
  3020. IsPublished bool `json:"isPublished"`
  3021. Publication *Publication `json:"publication"`
  3022. PublishDate *string `json:"publishDate"`
  3023. Publishable Publishable `json:"publishable"`
  3024. }
  3025. type ResourcePublicationV2Connection struct {
  3026. Edges []*ResourcePublicationV2Edge `json:"edges"`
  3027. Nodes []*ResourcePublicationV2 `json:"nodes"`
  3028. PageInfo *PageInfo `json:"pageInfo"`
  3029. }
  3030. type ResourcePublicationV2Edge struct {
  3031. Cursor string `json:"cursor"`
  3032. Node *ResourcePublicationV2 `json:"node"`
  3033. }
  3034. type Seo struct {
  3035. Description *string `json:"description"`
  3036. Title *string `json:"title"`
  3037. }
  3038. type SEOInput struct {
  3039. Title *string `json:"title"`
  3040. Description *string `json:"description"`
  3041. }
  3042. type SaleConnection struct {
  3043. Edges []*SaleEdge `json:"edges"`
  3044. Nodes []Sale `json:"nodes"`
  3045. PageInfo *PageInfo `json:"pageInfo"`
  3046. }
  3047. type SaleEdge struct {
  3048. Cursor string `json:"cursor"`
  3049. Node Sale `json:"node"`
  3050. }
  3051. type SaleTax struct {
  3052. Amount *MoneyBag `json:"amount"`
  3053. ID string `json:"id"`
  3054. TaxLine *TaxLine `json:"taxLine"`
  3055. }
  3056. type SalesAgreementConnection struct {
  3057. Edges []*SalesAgreementEdge `json:"edges"`
  3058. Nodes []SalesAgreement `json:"nodes"`
  3059. PageInfo *PageInfo `json:"pageInfo"`
  3060. }
  3061. type SalesAgreementEdge struct {
  3062. Cursor string `json:"cursor"`
  3063. Node SalesAgreement `json:"node"`
  3064. }
  3065. type SavedSearch struct {
  3066. Filters []*SearchFilter `json:"filters"`
  3067. ID string `json:"id"`
  3068. LegacyResourceID string `json:"legacyResourceId"`
  3069. Name string `json:"name"`
  3070. Query string `json:"query"`
  3071. ResourceType SearchResultType `json:"resourceType"`
  3072. SearchTerms string `json:"searchTerms"`
  3073. }
  3074. func (SavedSearch) IsLegacyInteroperability() {}
  3075. func (this SavedSearch) GetLegacyResourceID() string { return this.LegacyResourceID }
  3076. func (SavedSearch) IsNode() {}
  3077. func (this SavedSearch) GetID() string { return this.ID }
  3078. type SavedSearchConnection struct {
  3079. Edges []*SavedSearchEdge `json:"edges"`
  3080. Nodes []*SavedSearch `json:"nodes"`
  3081. PageInfo *PageInfo `json:"pageInfo"`
  3082. }
  3083. type SavedSearchEdge struct {
  3084. Cursor string `json:"cursor"`
  3085. Node *SavedSearch `json:"node"`
  3086. }
  3087. type ScriptDiscountApplication struct {
  3088. AllocationMethod DiscountApplicationAllocationMethod `json:"allocationMethod"`
  3089. Index int `json:"index"`
  3090. TargetSelection DiscountApplicationTargetSelection `json:"targetSelection"`
  3091. TargetType DiscountApplicationTargetType `json:"targetType"`
  3092. Title string `json:"title"`
  3093. Value PricingValue `json:"value"`
  3094. }
  3095. func (ScriptDiscountApplication) IsDiscountApplication() {}
  3096. func (this ScriptDiscountApplication) GetAllocationMethod() DiscountApplicationAllocationMethod {
  3097. return this.AllocationMethod
  3098. }
  3099. func (this ScriptDiscountApplication) GetIndex() int { return this.Index }
  3100. func (this ScriptDiscountApplication) GetTargetSelection() DiscountApplicationTargetSelection {
  3101. return this.TargetSelection
  3102. }
  3103. func (this ScriptDiscountApplication) GetTargetType() DiscountApplicationTargetType {
  3104. return this.TargetType
  3105. }
  3106. func (this ScriptDiscountApplication) GetValue() PricingValue { return this.Value }
  3107. type SearchFilter struct {
  3108. Key string `json:"key"`
  3109. Value string `json:"value"`
  3110. }
  3111. type SearchFilterOptions struct {
  3112. ProductAvailability []*FilterOption `json:"productAvailability"`
  3113. }
  3114. type SearchResult struct {
  3115. Description *string `json:"description"`
  3116. Image *Image `json:"image"`
  3117. Reference Node `json:"reference"`
  3118. Title string `json:"title"`
  3119. URL string `json:"url"`
  3120. }
  3121. type SearchResultConnection struct {
  3122. Edges []*SearchResultEdge `json:"edges"`
  3123. PageInfo *PageInfo `json:"pageInfo"`
  3124. }
  3125. type SearchResultEdge struct {
  3126. Cursor string `json:"cursor"`
  3127. Node *SearchResult `json:"node"`
  3128. }
  3129. type SelectedOption struct {
  3130. Name string `json:"name"`
  3131. Value string `json:"value"`
  3132. }
  3133. type SellingPlan struct {
  3134. BillingPolicy SellingPlanBillingPolicy `json:"billingPolicy"`
  3135. Category *SellingPlanCategory `json:"category"`
  3136. CreatedAt string `json:"createdAt"`
  3137. DeliveryPolicy SellingPlanDeliveryPolicy `json:"deliveryPolicy"`
  3138. Description *string `json:"description"`
  3139. ID string `json:"id"`
  3140. InventoryPolicy *SellingPlanInventoryPolicy `json:"inventoryPolicy"`
  3141. Name string `json:"name"`
  3142. Options []string `json:"options"`
  3143. Position *int `json:"position"`
  3144. PricingPolicies []SellingPlanPricingPolicy `json:"pricingPolicies"`
  3145. }
  3146. func (SellingPlan) IsNode() {}
  3147. func (this SellingPlan) GetID() string { return this.ID }
  3148. type SellingPlanAnchor struct {
  3149. CutoffDay *int `json:"cutoffDay"`
  3150. Day int `json:"day"`
  3151. Month *int `json:"month"`
  3152. Type SellingPlanAnchorType `json:"type"`
  3153. }
  3154. type SellingPlanCheckoutCharge struct {
  3155. Type SellingPlanCheckoutChargeType `json:"type"`
  3156. Value SellingPlanCheckoutChargeValue `json:"value"`
  3157. }
  3158. type SellingPlanCheckoutChargePercentageValue struct {
  3159. Percentage float64 `json:"percentage"`
  3160. }
  3161. func (SellingPlanCheckoutChargePercentageValue) IsSellingPlanCheckoutChargeValue() {}
  3162. type SellingPlanConnection struct {
  3163. Edges []*SellingPlanEdge `json:"edges"`
  3164. Nodes []*SellingPlan `json:"nodes"`
  3165. PageInfo *PageInfo `json:"pageInfo"`
  3166. }
  3167. type SellingPlanEdge struct {
  3168. Cursor string `json:"cursor"`
  3169. Node *SellingPlan `json:"node"`
  3170. }
  3171. type SellingPlanFixedBillingPolicy struct {
  3172. CheckoutCharge *SellingPlanCheckoutCharge `json:"checkoutCharge"`
  3173. RemainingBalanceChargeExactTime *string `json:"remainingBalanceChargeExactTime"`
  3174. RemainingBalanceChargeTimeAfterCheckout *string `json:"remainingBalanceChargeTimeAfterCheckout"`
  3175. RemainingBalanceChargeTrigger SellingPlanRemainingBalanceChargeTrigger `json:"remainingBalanceChargeTrigger"`
  3176. }
  3177. func (SellingPlanFixedBillingPolicy) IsSellingPlanBillingPolicy() {}
  3178. type SellingPlanFixedDeliveryPolicy struct {
  3179. Anchors []*SellingPlanAnchor `json:"anchors"`
  3180. Cutoff *int `json:"cutoff"`
  3181. FulfillmentExactTime *string `json:"fulfillmentExactTime"`
  3182. FulfillmentTrigger SellingPlanFulfillmentTrigger `json:"fulfillmentTrigger"`
  3183. Intent SellingPlanFixedDeliveryPolicyIntent `json:"intent"`
  3184. PreAnchorBehavior SellingPlanFixedDeliveryPolicyPreAnchorBehavior `json:"preAnchorBehavior"`
  3185. }
  3186. func (SellingPlanFixedDeliveryPolicy) IsSellingPlanDeliveryPolicy() {}
  3187. type SellingPlanFixedPricingPolicy struct {
  3188. AdjustmentType SellingPlanPricingPolicyAdjustmentType `json:"adjustmentType"`
  3189. AdjustmentValue SellingPlanPricingPolicyAdjustmentValue `json:"adjustmentValue"`
  3190. CreatedAt string `json:"createdAt"`
  3191. }
  3192. func (SellingPlanFixedPricingPolicy) IsSellingPlanPricingPolicyBase() {}
  3193. func (this SellingPlanFixedPricingPolicy) GetAdjustmentType() SellingPlanPricingPolicyAdjustmentType {
  3194. return this.AdjustmentType
  3195. }
  3196. func (this SellingPlanFixedPricingPolicy) GetAdjustmentValue() SellingPlanPricingPolicyAdjustmentValue {
  3197. return this.AdjustmentValue
  3198. }
  3199. func (SellingPlanFixedPricingPolicy) IsSellingPlanPricingPolicy() {}
  3200. type SellingPlanGroup struct {
  3201. AppID *string `json:"appId"`
  3202. AppliesToProduct bool `json:"appliesToProduct"`
  3203. AppliesToProductVariant bool `json:"appliesToProductVariant"`
  3204. AppliesToProductVariants bool `json:"appliesToProductVariants"`
  3205. CreatedAt string `json:"createdAt"`
  3206. Description *string `json:"description"`
  3207. ID string `json:"id"`
  3208. MerchantCode string `json:"merchantCode"`
  3209. Name string `json:"name"`
  3210. Options []string `json:"options"`
  3211. Position *int `json:"position"`
  3212. ProductCount int `json:"productCount"`
  3213. ProductVariantCount int `json:"productVariantCount"`
  3214. ProductVariants *ProductVariantConnection `json:"productVariants"`
  3215. Products *ProductConnection `json:"products"`
  3216. SellingPlans *SellingPlanConnection `json:"sellingPlans"`
  3217. Summary *string `json:"summary"`
  3218. }
  3219. func (SellingPlanGroup) IsNode() {}
  3220. func (this SellingPlanGroup) GetID() string { return this.ID }
  3221. type SellingPlanGroupConnection struct {
  3222. Edges []*SellingPlanGroupEdge `json:"edges"`
  3223. Nodes []*SellingPlanGroup `json:"nodes"`
  3224. PageInfo *PageInfo `json:"pageInfo"`
  3225. }
  3226. type SellingPlanGroupEdge struct {
  3227. Cursor string `json:"cursor"`
  3228. Node *SellingPlanGroup `json:"node"`
  3229. }
  3230. type SellingPlanGroupUserError struct {
  3231. Code *SellingPlanGroupUserErrorCode `json:"code"`
  3232. Field []string `json:"field"`
  3233. Message string `json:"message"`
  3234. }
  3235. func (SellingPlanGroupUserError) IsDisplayableError() {}
  3236. func (this SellingPlanGroupUserError) GetField() []string {
  3237. if this.Field == nil {
  3238. return nil
  3239. }
  3240. interfaceSlice := make([]string, 0, len(this.Field))
  3241. for _, concrete := range this.Field {
  3242. interfaceSlice = append(interfaceSlice, concrete)
  3243. }
  3244. return interfaceSlice
  3245. }
  3246. func (this SellingPlanGroupUserError) GetMessage() string { return this.Message }
  3247. type SellingPlanInventoryPolicy struct {
  3248. Reserve SellingPlanReserve `json:"reserve"`
  3249. }
  3250. type SellingPlanPricingPolicyPercentageValue struct {
  3251. Percentage float64 `json:"percentage"`
  3252. }
  3253. func (SellingPlanPricingPolicyPercentageValue) IsSellingPlanPricingPolicyAdjustmentValue() {}
  3254. type SellingPlanRecurringBillingPolicy struct {
  3255. Anchors []*SellingPlanAnchor `json:"anchors"`
  3256. CreatedAt string `json:"createdAt"`
  3257. Interval SellingPlanInterval `json:"interval"`
  3258. IntervalCount int `json:"intervalCount"`
  3259. MaxCycles *int `json:"maxCycles"`
  3260. MinCycles *int `json:"minCycles"`
  3261. }
  3262. func (SellingPlanRecurringBillingPolicy) IsSellingPlanBillingPolicy() {}
  3263. type SellingPlanRecurringDeliveryPolicy struct {
  3264. Anchors []*SellingPlanAnchor `json:"anchors"`
  3265. CreatedAt string `json:"createdAt"`
  3266. Cutoff *int `json:"cutoff"`
  3267. Intent SellingPlanRecurringDeliveryPolicyIntent `json:"intent"`
  3268. Interval SellingPlanInterval `json:"interval"`
  3269. IntervalCount int `json:"intervalCount"`
  3270. PreAnchorBehavior SellingPlanRecurringDeliveryPolicyPreAnchorBehavior `json:"preAnchorBehavior"`
  3271. }
  3272. func (SellingPlanRecurringDeliveryPolicy) IsSellingPlanDeliveryPolicy() {}
  3273. type SellingPlanRecurringPricingPolicy struct {
  3274. AdjustmentType SellingPlanPricingPolicyAdjustmentType `json:"adjustmentType"`
  3275. AdjustmentValue SellingPlanPricingPolicyAdjustmentValue `json:"adjustmentValue"`
  3276. AfterCycle *int `json:"afterCycle"`
  3277. CreatedAt string `json:"createdAt"`
  3278. }
  3279. func (SellingPlanRecurringPricingPolicy) IsSellingPlanPricingPolicyBase() {}
  3280. func (this SellingPlanRecurringPricingPolicy) GetAdjustmentType() SellingPlanPricingPolicyAdjustmentType {
  3281. return this.AdjustmentType
  3282. }
  3283. func (this SellingPlanRecurringPricingPolicy) GetAdjustmentValue() SellingPlanPricingPolicyAdjustmentValue {
  3284. return this.AdjustmentValue
  3285. }
  3286. func (SellingPlanRecurringPricingPolicy) IsSellingPlanPricingPolicy() {}
  3287. type ShippingLine struct {
  3288. CarrierIdentifier *string `json:"carrierIdentifier"`
  3289. Code *string `json:"code"`
  3290. Custom bool `json:"custom"`
  3291. DeliveryCategory *string `json:"deliveryCategory"`
  3292. DiscountAllocations []*DiscountAllocation `json:"discountAllocations"`
  3293. DiscountedPriceSet *MoneyBag `json:"discountedPriceSet"`
  3294. ID *string `json:"id"`
  3295. OriginalPriceSet *MoneyBag `json:"originalPriceSet"`
  3296. Phone *string `json:"phone"`
  3297. RequestedFulfillmentService *FulfillmentService `json:"requestedFulfillmentService"`
  3298. ShippingRateHandle *string `json:"shippingRateHandle"`
  3299. Source *string `json:"source"`
  3300. TaxLines []*TaxLine `json:"taxLines"`
  3301. Title string `json:"title"`
  3302. }
  3303. type ShippingLineConnection struct {
  3304. Edges []*ShippingLineEdge `json:"edges"`
  3305. Nodes []*ShippingLine `json:"nodes"`
  3306. PageInfo *PageInfo `json:"pageInfo"`
  3307. }
  3308. type ShippingLineEdge struct {
  3309. Cursor string `json:"cursor"`
  3310. Node *ShippingLine `json:"node"`
  3311. }
  3312. type ShippingRefund struct {
  3313. AmountSet *MoneyBag `json:"amountSet"`
  3314. MaximumRefundableSet *MoneyBag `json:"maximumRefundableSet"`
  3315. TaxSet *MoneyBag `json:"taxSet"`
  3316. }
  3317. type Shop struct {
  3318. Alerts []*ShopAlert `json:"alerts"`
  3319. AllProductCategories []*ProductCategory `json:"allProductCategories"`
  3320. AssignedFulfillmentOrders *FulfillmentOrderConnection `json:"assignedFulfillmentOrders"`
  3321. AvailableChannelApps *AppConnection `json:"availableChannelApps"`
  3322. BillingAddress *MailingAddress `json:"billingAddress"`
  3323. ChannelDefinitionsForInstalledChannels []*AvailableChannelDefinitionsByChannel `json:"channelDefinitionsForInstalledChannels"`
  3324. CheckoutAPISupported bool `json:"checkoutApiSupported"`
  3325. ContactEmail string `json:"contactEmail"`
  3326. CountriesInShippingZones *CountriesInShippingZones `json:"countriesInShippingZones"`
  3327. CurrencyCode CurrencyCode `json:"currencyCode"`
  3328. CurrencyFormats *CurrencyFormats `json:"currencyFormats"`
  3329. CurrencySettings *CurrencySettingConnection `json:"currencySettings"`
  3330. CustomerAccounts ShopCustomerAccountsSetting `json:"customerAccounts"`
  3331. CustomerTags *StringConnection `json:"customerTags"`
  3332. Description *string `json:"description"`
  3333. DraftOrderTags *StringConnection `json:"draftOrderTags"`
  3334. Email string `json:"email"`
  3335. EnabledPresentmentCurrencies []CurrencyCode `json:"enabledPresentmentCurrencies"`
  3336. Features *ShopFeatures `json:"features"`
  3337. FulfillmentServices []*FulfillmentService `json:"fulfillmentServices"`
  3338. IanaTimezone string `json:"ianaTimezone"`
  3339. ID string `json:"id"`
  3340. LimitedPendingOrderCount *LimitedPendingOrderCount `json:"limitedPendingOrderCount"`
  3341. MerchantApprovalSignals *MerchantApprovalSignals `json:"merchantApprovalSignals"`
  3342. Metafield *Metafield `json:"metafield"`
  3343. Metafields *MetafieldConnection `json:"metafields"`
  3344. MyshopifyDomain string `json:"myshopifyDomain"`
  3345. Name string `json:"name"`
  3346. NavigationSettings []*NavigationItem `json:"navigationSettings"`
  3347. OrderNumberFormatPrefix string `json:"orderNumberFormatPrefix"`
  3348. OrderNumberFormatSuffix string `json:"orderNumberFormatSuffix"`
  3349. OrderTags *StringConnection `json:"orderTags"`
  3350. PaymentSettings *PaymentSettings `json:"paymentSettings"`
  3351. Plan *ShopPlan `json:"plan"`
  3352. PrimaryDomain *Domain `json:"primaryDomain"`
  3353. PrivateMetafield *PrivateMetafield `json:"privateMetafield"`
  3354. PrivateMetafields *PrivateMetafieldConnection `json:"privateMetafields"`
  3355. ProductImages *ImageConnection `json:"productImages"`
  3356. ProductTags *StringConnection `json:"productTags"`
  3357. ProductTypes *StringConnection `json:"productTypes"`
  3358. ProductVendors *StringConnection `json:"productVendors"`
  3359. PublicationCount int `json:"publicationCount"`
  3360. ResourceLimits *ShopResourceLimits `json:"resourceLimits"`
  3361. RichTextEditorURL string `json:"richTextEditorUrl"`
  3362. Search *SearchResultConnection `json:"search"`
  3363. SearchFilters *SearchFilterOptions `json:"searchFilters"`
  3364. SetupRequired bool `json:"setupRequired"`
  3365. ShipsToCountries []CountryCode `json:"shipsToCountries"`
  3366. ShopPolicies []*ShopPolicy `json:"shopPolicies"`
  3367. StaffMembers *StaffMemberConnection `json:"staffMembers"`
  3368. StorefrontAccessTokens *StorefrontAccessTokenConnection `json:"storefrontAccessTokens"`
  3369. TaxShipping bool `json:"taxShipping"`
  3370. TaxesIncluded bool `json:"taxesIncluded"`
  3371. TimezoneAbbreviation string `json:"timezoneAbbreviation"`
  3372. TimezoneOffset string `json:"timezoneOffset"`
  3373. TimezoneOffsetMinutes int `json:"timezoneOffsetMinutes"`
  3374. TransactionalSmsDisabled bool `json:"transactionalSmsDisabled"`
  3375. Translations []*PublishedTranslation `json:"translations"`
  3376. UnitSystem UnitSystem `json:"unitSystem"`
  3377. UploadedImagesByIds []*Image `json:"uploadedImagesByIds"`
  3378. URL string `json:"url"`
  3379. WeightUnit WeightUnit `json:"weightUnit"`
  3380. }
  3381. func (Shop) IsHasMetafields() {}
  3382. func (this Shop) GetMetafield() *Metafield { return this.Metafield }
  3383. func (this Shop) GetMetafields() *MetafieldConnection { return this.Metafields }
  3384. func (this Shop) GetPrivateMetafield() *PrivateMetafield { return this.PrivateMetafield }
  3385. func (this Shop) GetPrivateMetafields() *PrivateMetafieldConnection { return this.PrivateMetafields }
  3386. func (Shop) IsHasPublishedTranslations() {}
  3387. func (this Shop) GetTranslations() []*PublishedTranslation {
  3388. if this.Translations == nil {
  3389. return nil
  3390. }
  3391. interfaceSlice := make([]*PublishedTranslation, 0, len(this.Translations))
  3392. for _, concrete := range this.Translations {
  3393. interfaceSlice = append(interfaceSlice, concrete)
  3394. }
  3395. return interfaceSlice
  3396. }
  3397. func (Shop) IsNode() {}
  3398. func (this Shop) GetID() string { return this.ID }
  3399. type ShopAlert struct {
  3400. Action *ShopAlertAction `json:"action"`
  3401. Description string `json:"description"`
  3402. }
  3403. type ShopAlertAction struct {
  3404. Title string `json:"title"`
  3405. URL string `json:"url"`
  3406. }
  3407. type ShopFeatures struct {
  3408. AvalaraAvatax bool `json:"avalaraAvatax"`
  3409. Branding ShopBranding `json:"branding"`
  3410. Captcha bool `json:"captcha"`
  3411. CaptchaExternalDomains bool `json:"captchaExternalDomains"`
  3412. DynamicRemarketing bool `json:"dynamicRemarketing"`
  3413. EligibleForSubscriptionMigration bool `json:"eligibleForSubscriptionMigration"`
  3414. EligibleForSubscriptions bool `json:"eligibleForSubscriptions"`
  3415. GiftCards bool `json:"giftCards"`
  3416. HarmonizedSystemCode bool `json:"harmonizedSystemCode"`
  3417. InternationalDomains bool `json:"internationalDomains"`
  3418. InternationalPriceOverrides bool `json:"internationalPriceOverrides"`
  3419. InternationalPriceRules bool `json:"internationalPriceRules"`
  3420. LegacySubscriptionGatewayEnabled bool `json:"legacySubscriptionGatewayEnabled"`
  3421. LiveView bool `json:"liveView"`
  3422. OnboardingVisual bool `json:"onboardingVisual"`
  3423. PaypalExpressSubscriptionGatewayStatus PaypalExpressSubscriptionsGatewayStatus `json:"paypalExpressSubscriptionGatewayStatus"`
  3424. Reports bool `json:"reports"`
  3425. SellsSubscriptions bool `json:"sellsSubscriptions"`
  3426. ShowMetrics bool `json:"showMetrics"`
  3427. Storefront bool `json:"storefront"`
  3428. UsingShopifyBalance bool `json:"usingShopifyBalance"`
  3429. }
  3430. type ShopPlan struct {
  3431. DisplayName string `json:"displayName"`
  3432. PartnerDevelopment bool `json:"partnerDevelopment"`
  3433. ShopifyPlus bool `json:"shopifyPlus"`
  3434. }
  3435. type ShopPolicy struct {
  3436. Body string `json:"body"`
  3437. ID string `json:"id"`
  3438. Translations []*PublishedTranslation `json:"translations"`
  3439. Type ShopPolicyType `json:"type"`
  3440. URL string `json:"url"`
  3441. }
  3442. func (ShopPolicy) IsHasPublishedTranslations() {}
  3443. func (this ShopPolicy) GetTranslations() []*PublishedTranslation {
  3444. if this.Translations == nil {
  3445. return nil
  3446. }
  3447. interfaceSlice := make([]*PublishedTranslation, 0, len(this.Translations))
  3448. for _, concrete := range this.Translations {
  3449. interfaceSlice = append(interfaceSlice, concrete)
  3450. }
  3451. return interfaceSlice
  3452. }
  3453. func (ShopPolicy) IsNode() {}
  3454. func (this ShopPolicy) GetID() string { return this.ID }
  3455. type ShopResourceLimits struct {
  3456. LocationLimit int `json:"locationLimit"`
  3457. MaxProductOptions int `json:"maxProductOptions"`
  3458. MaxProductVariants int `json:"maxProductVariants"`
  3459. RedirectLimitReached bool `json:"redirectLimitReached"`
  3460. SkuResourceLimits *ResourceLimit `json:"skuResourceLimits"`
  3461. }
  3462. type ShopifyPaymentsExtendedAuthorization struct {
  3463. ExtendedAuthorizationExpiresAt string `json:"extendedAuthorizationExpiresAt"`
  3464. StandardAuthorizationExpiresAt string `json:"standardAuthorizationExpiresAt"`
  3465. }
  3466. type ShopifyPaymentsRefundSet struct {
  3467. AcquirerReferenceNumber *string `json:"acquirerReferenceNumber"`
  3468. }
  3469. type ShopifyPaymentsTransactionSet struct {
  3470. ExtendedAuthorizationSet *ShopifyPaymentsExtendedAuthorization `json:"extendedAuthorizationSet"`
  3471. RefundSet *ShopifyPaymentsRefundSet `json:"refundSet"`
  3472. }
  3473. type StaffMember struct {
  3474. Active bool `json:"active"`
  3475. Avatar *Image `json:"avatar"`
  3476. Email string `json:"email"`
  3477. Exists bool `json:"exists"`
  3478. FirstName *string `json:"firstName"`
  3479. ID string `json:"id"`
  3480. Initials []string `json:"initials"`
  3481. IsShopOwner bool `json:"isShopOwner"`
  3482. LastName *string `json:"lastName"`
  3483. Locale string `json:"locale"`
  3484. Name string `json:"name"`
  3485. Phone *string `json:"phone"`
  3486. PrivateData *StaffMemberPrivateData `json:"privateData"`
  3487. }
  3488. func (StaffMember) IsNode() {}
  3489. func (this StaffMember) GetID() string { return this.ID }
  3490. type StaffMemberConnection struct {
  3491. Edges []*StaffMemberEdge `json:"edges"`
  3492. Nodes []*StaffMember `json:"nodes"`
  3493. PageInfo *PageInfo `json:"pageInfo"`
  3494. }
  3495. type StaffMemberEdge struct {
  3496. Cursor string `json:"cursor"`
  3497. Node *StaffMember `json:"node"`
  3498. }
  3499. type StaffMemberPrivateData struct {
  3500. AccountSettingsURL string `json:"accountSettingsUrl"`
  3501. CreatedAt string `json:"createdAt"`
  3502. }
  3503. type StandardMetafieldDefinitionTemplate struct {
  3504. Description *string `json:"description"`
  3505. ID string `json:"id"`
  3506. Key string `json:"key"`
  3507. Name string `json:"name"`
  3508. Namespace string `json:"namespace"`
  3509. OwnerTypes []MetafieldOwnerType `json:"ownerTypes"`
  3510. Type *MetafieldDefinitionType `json:"type"`
  3511. Validations []*MetafieldDefinitionValidation `json:"validations"`
  3512. VisibleToStorefrontAPI bool `json:"visibleToStorefrontApi"`
  3513. }
  3514. func (StandardMetafieldDefinitionTemplate) IsNode() {}
  3515. func (this StandardMetafieldDefinitionTemplate) GetID() string { return this.ID }
  3516. type StorefrontAccessToken struct {
  3517. AccessScopes []*AccessScope `json:"accessScopes"`
  3518. AccessToken string `json:"accessToken"`
  3519. CreatedAt string `json:"createdAt"`
  3520. ID string `json:"id"`
  3521. Title string `json:"title"`
  3522. UpdatedAt string `json:"updatedAt"`
  3523. }
  3524. func (StorefrontAccessToken) IsNode() {}
  3525. func (this StorefrontAccessToken) GetID() string { return this.ID }
  3526. type StorefrontAccessTokenConnection struct {
  3527. Edges []*StorefrontAccessTokenEdge `json:"edges"`
  3528. Nodes []*StorefrontAccessToken `json:"nodes"`
  3529. PageInfo *PageInfo `json:"pageInfo"`
  3530. }
  3531. type StorefrontAccessTokenEdge struct {
  3532. Cursor string `json:"cursor"`
  3533. Node *StorefrontAccessToken `json:"node"`
  3534. }
  3535. type StringConnection struct {
  3536. Edges []*StringEdge `json:"edges"`
  3537. PageInfo *PageInfo `json:"pageInfo"`
  3538. }
  3539. type StringEdge struct {
  3540. Cursor string `json:"cursor"`
  3541. Node string `json:"node"`
  3542. }
  3543. type SubscriptionAppliedCodeDiscount struct {
  3544. ID string `json:"id"`
  3545. RedeemCode string `json:"redeemCode"`
  3546. RejectionReason *SubscriptionDiscountRejectionReason `json:"rejectionReason"`
  3547. }
  3548. func (SubscriptionAppliedCodeDiscount) IsSubscriptionDiscount() {}
  3549. type SubscriptionBillingAttempt struct {
  3550. CompletedAt *string `json:"completedAt"`
  3551. CreatedAt string `json:"createdAt"`
  3552. ErrorCode *SubscriptionBillingAttemptErrorCode `json:"errorCode"`
  3553. ErrorMessage *string `json:"errorMessage"`
  3554. ID string `json:"id"`
  3555. IdempotencyKey string `json:"idempotencyKey"`
  3556. NextActionURL *string `json:"nextActionUrl"`
  3557. Order *Order `json:"order"`
  3558. OriginTime *string `json:"originTime"`
  3559. Ready bool `json:"ready"`
  3560. SubscriptionContract *SubscriptionContract `json:"subscriptionContract"`
  3561. }
  3562. func (SubscriptionBillingAttempt) IsNode() {}
  3563. func (this SubscriptionBillingAttempt) GetID() string { return this.ID }
  3564. type SubscriptionBillingAttemptConnection struct {
  3565. Edges []*SubscriptionBillingAttemptEdge `json:"edges"`
  3566. Nodes []*SubscriptionBillingAttempt `json:"nodes"`
  3567. PageInfo *PageInfo `json:"pageInfo"`
  3568. }
  3569. type SubscriptionBillingAttemptEdge struct {
  3570. Cursor string `json:"cursor"`
  3571. Node *SubscriptionBillingAttempt `json:"node"`
  3572. }
  3573. type SubscriptionBillingPolicy struct {
  3574. Anchors []*SellingPlanAnchor `json:"anchors"`
  3575. Interval SellingPlanInterval `json:"interval"`
  3576. IntervalCount int `json:"intervalCount"`
  3577. MaxCycles *int `json:"maxCycles"`
  3578. MinCycles *int `json:"minCycles"`
  3579. }
  3580. type SubscriptionContract struct {
  3581. App *App `json:"app"`
  3582. AppAdminURL *string `json:"appAdminUrl"`
  3583. BillingAttempts *SubscriptionBillingAttemptConnection `json:"billingAttempts"`
  3584. BillingPolicy *SubscriptionBillingPolicy `json:"billingPolicy"`
  3585. CreatedAt string `json:"createdAt"`
  3586. CurrencyCode CurrencyCode `json:"currencyCode"`
  3587. CustomAttributes []*Attribute `json:"customAttributes"`
  3588. Customer *Customer `json:"customer"`
  3589. CustomerPaymentMethod *CustomerPaymentMethod `json:"customerPaymentMethod"`
  3590. DeliveryMethod SubscriptionDeliveryMethod `json:"deliveryMethod"`
  3591. DeliveryPolicy *SubscriptionDeliveryPolicy `json:"deliveryPolicy"`
  3592. DeliveryPrice *MoneyV2 `json:"deliveryPrice"`
  3593. Discounts *SubscriptionManualDiscountConnection `json:"discounts"`
  3594. ID string `json:"id"`
  3595. LastPaymentStatus *SubscriptionContractLastPaymentStatus `json:"lastPaymentStatus"`
  3596. LineCount int `json:"lineCount"`
  3597. Lines *SubscriptionLineConnection `json:"lines"`
  3598. NextBillingDate *string `json:"nextBillingDate"`
  3599. Note *string `json:"note"`
  3600. Orders *OrderConnection `json:"orders"`
  3601. OriginOrder *Order `json:"originOrder"`
  3602. Status SubscriptionContractSubscriptionStatus `json:"status"`
  3603. UpdatedAt string `json:"updatedAt"`
  3604. }
  3605. func (SubscriptionContract) IsNode() {}
  3606. func (this SubscriptionContract) GetID() string { return this.ID }
  3607. func (SubscriptionContract) IsSubscriptionContractBase() {}
  3608. func (this SubscriptionContract) GetApp() *App { return this.App }
  3609. func (this SubscriptionContract) GetAppAdminURL() *string { return this.AppAdminURL }
  3610. func (this SubscriptionContract) GetCurrencyCode() CurrencyCode { return this.CurrencyCode }
  3611. func (this SubscriptionContract) GetCustomAttributes() []*Attribute {
  3612. if this.CustomAttributes == nil {
  3613. return nil
  3614. }
  3615. interfaceSlice := make([]*Attribute, 0, len(this.CustomAttributes))
  3616. for _, concrete := range this.CustomAttributes {
  3617. interfaceSlice = append(interfaceSlice, concrete)
  3618. }
  3619. return interfaceSlice
  3620. }
  3621. func (this SubscriptionContract) GetCustomer() *Customer { return this.Customer }
  3622. func (this SubscriptionContract) GetCustomerPaymentMethod() *CustomerPaymentMethod {
  3623. return this.CustomerPaymentMethod
  3624. }
  3625. func (this SubscriptionContract) GetDeliveryMethod() SubscriptionDeliveryMethod {
  3626. return this.DeliveryMethod
  3627. }
  3628. func (this SubscriptionContract) GetDeliveryPrice() *MoneyV2 { return this.DeliveryPrice }
  3629. func (this SubscriptionContract) GetDiscounts() *SubscriptionManualDiscountConnection {
  3630. return this.Discounts
  3631. }
  3632. func (this SubscriptionContract) GetLineCount() int { return this.LineCount }
  3633. func (this SubscriptionContract) GetLines() *SubscriptionLineConnection { return this.Lines }
  3634. func (this SubscriptionContract) GetNote() *string { return this.Note }
  3635. func (this SubscriptionContract) GetOrders() *OrderConnection { return this.Orders }
  3636. func (this SubscriptionContract) GetUpdatedAt() string { return this.UpdatedAt }
  3637. type SubscriptionContractConnection struct {
  3638. Edges []*SubscriptionContractEdge `json:"edges"`
  3639. Nodes []*SubscriptionContract `json:"nodes"`
  3640. PageInfo *PageInfo `json:"pageInfo"`
  3641. }
  3642. type SubscriptionContractEdge struct {
  3643. Cursor string `json:"cursor"`
  3644. Node *SubscriptionContract `json:"node"`
  3645. }
  3646. type SubscriptionCyclePriceAdjustment struct {
  3647. AdjustmentType SellingPlanPricingPolicyAdjustmentType `json:"adjustmentType"`
  3648. AdjustmentValue SellingPlanPricingPolicyAdjustmentValue `json:"adjustmentValue"`
  3649. AfterCycle int `json:"afterCycle"`
  3650. ComputedPrice *MoneyV2 `json:"computedPrice"`
  3651. }
  3652. type SubscriptionDeliveryMethodLocalDelivery struct {
  3653. Address *SubscriptionMailingAddress `json:"address"`
  3654. LocalDeliveryOption *SubscriptionDeliveryMethodLocalDeliveryOption `json:"localDeliveryOption"`
  3655. }
  3656. func (SubscriptionDeliveryMethodLocalDelivery) IsSubscriptionDeliveryMethod() {}
  3657. type SubscriptionDeliveryMethodLocalDeliveryOption struct {
  3658. Code *string `json:"code"`
  3659. Description *string `json:"description"`
  3660. Instructions *string `json:"instructions"`
  3661. Phone string `json:"phone"`
  3662. PresentmentTitle *string `json:"presentmentTitle"`
  3663. Title *string `json:"title"`
  3664. }
  3665. type SubscriptionDeliveryMethodPickup struct {
  3666. PickupOption *SubscriptionDeliveryMethodPickupOption `json:"pickupOption"`
  3667. }
  3668. func (SubscriptionDeliveryMethodPickup) IsSubscriptionDeliveryMethod() {}
  3669. type SubscriptionDeliveryMethodPickupOption struct {
  3670. Code *string `json:"code"`
  3671. Description *string `json:"description"`
  3672. Location *Location `json:"location"`
  3673. PresentmentTitle *string `json:"presentmentTitle"`
  3674. Title *string `json:"title"`
  3675. }
  3676. type SubscriptionDeliveryMethodShipping struct {
  3677. Address *SubscriptionMailingAddress `json:"address"`
  3678. ShippingOption *SubscriptionDeliveryMethodShippingOption `json:"shippingOption"`
  3679. }
  3680. func (SubscriptionDeliveryMethodShipping) IsSubscriptionDeliveryMethod() {}
  3681. type SubscriptionDeliveryMethodShippingOption struct {
  3682. CarrierService *DeliveryCarrierService `json:"carrierService"`
  3683. Code *string `json:"code"`
  3684. Description *string `json:"description"`
  3685. PresentmentTitle *string `json:"presentmentTitle"`
  3686. Title *string `json:"title"`
  3687. }
  3688. type SubscriptionDeliveryPolicy struct {
  3689. Anchors []*SellingPlanAnchor `json:"anchors"`
  3690. Interval SellingPlanInterval `json:"interval"`
  3691. IntervalCount int `json:"intervalCount"`
  3692. }
  3693. type SubscriptionDiscountAllocation struct {
  3694. Amount *MoneyV2 `json:"amount"`
  3695. Discount SubscriptionDiscount `json:"discount"`
  3696. }
  3697. type SubscriptionDiscountEntitledLines struct {
  3698. All bool `json:"all"`
  3699. Lines *SubscriptionLineConnection `json:"lines"`
  3700. }
  3701. type SubscriptionDiscountFixedAmountValue struct {
  3702. Amount *MoneyV2 `json:"amount"`
  3703. AppliesOnEachItem bool `json:"appliesOnEachItem"`
  3704. }
  3705. func (SubscriptionDiscountFixedAmountValue) IsSubscriptionDiscountValue() {}
  3706. type SubscriptionDiscountPercentageValue struct {
  3707. Percentage int `json:"percentage"`
  3708. }
  3709. func (SubscriptionDiscountPercentageValue) IsSubscriptionDiscountValue() {}
  3710. type SubscriptionLine struct {
  3711. CurrentPrice *MoneyV2 `json:"currentPrice"`
  3712. CustomAttributes []*Attribute `json:"customAttributes"`
  3713. DiscountAllocations []*SubscriptionDiscountAllocation `json:"discountAllocations"`
  3714. ID string `json:"id"`
  3715. LineDiscountedPrice *MoneyV2 `json:"lineDiscountedPrice"`
  3716. PricingPolicy *SubscriptionPricingPolicy `json:"pricingPolicy"`
  3717. ProductID *string `json:"productId"`
  3718. Quantity int `json:"quantity"`
  3719. RequiresShipping bool `json:"requiresShipping"`
  3720. SellingPlanID *string `json:"sellingPlanId"`
  3721. SellingPlanName *string `json:"sellingPlanName"`
  3722. Sku *string `json:"sku"`
  3723. Taxable bool `json:"taxable"`
  3724. Title string `json:"title"`
  3725. VariantID *string `json:"variantId"`
  3726. VariantImage *Image `json:"variantImage"`
  3727. VariantTitle *string `json:"variantTitle"`
  3728. }
  3729. type SubscriptionLineConnection struct {
  3730. Edges []*SubscriptionLineEdge `json:"edges"`
  3731. Nodes []*SubscriptionLine `json:"nodes"`
  3732. PageInfo *PageInfo `json:"pageInfo"`
  3733. }
  3734. type SubscriptionLineEdge struct {
  3735. Cursor string `json:"cursor"`
  3736. Node *SubscriptionLine `json:"node"`
  3737. }
  3738. type SubscriptionMailingAddress struct {
  3739. Address1 *string `json:"address1"`
  3740. Address2 *string `json:"address2"`
  3741. City *string `json:"city"`
  3742. Company *string `json:"company"`
  3743. Country *string `json:"country"`
  3744. CountryCode *CountryCode `json:"countryCode"`
  3745. FirstName *string `json:"firstName"`
  3746. LastName *string `json:"lastName"`
  3747. Name *string `json:"name"`
  3748. Phone *string `json:"phone"`
  3749. Province *string `json:"province"`
  3750. ProvinceCode *string `json:"provinceCode"`
  3751. Zip *string `json:"zip"`
  3752. }
  3753. type SubscriptionManualDiscount struct {
  3754. EntitledLines *SubscriptionDiscountEntitledLines `json:"entitledLines"`
  3755. ID string `json:"id"`
  3756. RecurringCycleLimit *int `json:"recurringCycleLimit"`
  3757. RejectionReason *SubscriptionDiscountRejectionReason `json:"rejectionReason"`
  3758. TargetType DiscountTargetType `json:"targetType"`
  3759. Title *string `json:"title"`
  3760. Type DiscountType `json:"type"`
  3761. UsageCount int `json:"usageCount"`
  3762. Value SubscriptionDiscountValue `json:"value"`
  3763. }
  3764. func (SubscriptionManualDiscount) IsSubscriptionDiscount() {}
  3765. type SubscriptionManualDiscountConnection struct {
  3766. Edges []*SubscriptionManualDiscountEdge `json:"edges"`
  3767. Nodes []*SubscriptionManualDiscount `json:"nodes"`
  3768. PageInfo *PageInfo `json:"pageInfo"`
  3769. }
  3770. type SubscriptionManualDiscountEdge struct {
  3771. Cursor string `json:"cursor"`
  3772. Node *SubscriptionManualDiscount `json:"node"`
  3773. }
  3774. type SubscriptionPricingPolicy struct {
  3775. BasePrice *MoneyV2 `json:"basePrice"`
  3776. CycleDiscounts []*SubscriptionCyclePriceAdjustment `json:"cycleDiscounts"`
  3777. }
  3778. type SuggestedOrderTransaction struct {
  3779. AccountNumber *string `json:"accountNumber"`
  3780. AmountSet *MoneyBag `json:"amountSet"`
  3781. FormattedGateway *string `json:"formattedGateway"`
  3782. Gateway *string `json:"gateway"`
  3783. Kind SuggestedOrderTransactionKind `json:"kind"`
  3784. MaximumRefundableSet *MoneyBag `json:"maximumRefundableSet"`
  3785. ParentTransaction *OrderTransaction `json:"parentTransaction"`
  3786. }
  3787. type SuggestedRefund struct {
  3788. AmountSet *MoneyBag `json:"amountSet"`
  3789. DiscountedSubtotalSet *MoneyBag `json:"discountedSubtotalSet"`
  3790. MaximumRefundableSet *MoneyBag `json:"maximumRefundableSet"`
  3791. RefundDuties []*RefundDuty `json:"refundDuties"`
  3792. RefundLineItems []*RefundLineItem `json:"refundLineItems"`
  3793. Shipping *ShippingRefund `json:"shipping"`
  3794. SubtotalSet *MoneyBag `json:"subtotalSet"`
  3795. SuggestedTransactions []*SuggestedOrderTransaction `json:"suggestedTransactions"`
  3796. TotalCartDiscountAmountSet *MoneyBag `json:"totalCartDiscountAmountSet"`
  3797. TotalDutiesSet *MoneyBag `json:"totalDutiesSet"`
  3798. TotalTaxSet *MoneyBag `json:"totalTaxSet"`
  3799. }
  3800. type TaxLine struct {
  3801. ChannelLiable *bool `json:"channelLiable"`
  3802. PriceSet *MoneyBag `json:"priceSet"`
  3803. Rate *float64 `json:"rate"`
  3804. RatePercentage *float64 `json:"ratePercentage"`
  3805. Title string `json:"title"`
  3806. }
  3807. type TransactionFee struct {
  3808. Amount *MoneyV2 `json:"amount"`
  3809. FlatFee *MoneyV2 `json:"flatFee"`
  3810. FlatFeeName *string `json:"flatFeeName"`
  3811. ID string `json:"id"`
  3812. Rate string `json:"rate"`
  3813. RateName *string `json:"rateName"`
  3814. TaxAmount *MoneyV2 `json:"taxAmount"`
  3815. Type string `json:"type"`
  3816. }
  3817. func (TransactionFee) IsNode() {}
  3818. func (this TransactionFee) GetID() string { return this.ID }
  3819. type TypedAttribute struct {
  3820. Key string `json:"key"`
  3821. Value string `json:"value"`
  3822. }
  3823. type UTMParameters struct {
  3824. Campaign *string `json:"campaign"`
  3825. Content *string `json:"content"`
  3826. Medium *string `json:"medium"`
  3827. Source *string `json:"source"`
  3828. Term *string `json:"term"`
  3829. }
  3830. type UserError struct {
  3831. Field []string `json:"field"`
  3832. Message string `json:"message"`
  3833. }
  3834. func (UserError) IsDisplayableError() {}
  3835. func (this UserError) GetField() []string {
  3836. if this.Field == nil {
  3837. return nil
  3838. }
  3839. interfaceSlice := make([]string, 0, len(this.Field))
  3840. for _, concrete := range this.Field {
  3841. interfaceSlice = append(interfaceSlice, concrete)
  3842. }
  3843. return interfaceSlice
  3844. }
  3845. func (this UserError) GetMessage() string { return this.Message }
  3846. type VaultCreditCard struct {
  3847. BillingAddress *CustomerCreditCardBillingAddress `json:"billingAddress"`
  3848. Brand string `json:"brand"`
  3849. Expired bool `json:"expired"`
  3850. ExpiryMonth int `json:"expiryMonth"`
  3851. ExpiryYear int `json:"expiryYear"`
  3852. LastDigits string `json:"lastDigits"`
  3853. Name string `json:"name"`
  3854. }
  3855. func (VaultCreditCard) IsPaymentInstrument() {}
  3856. type VaultPaypalBillingAgreement struct {
  3857. Inactive bool `json:"inactive"`
  3858. Name string `json:"name"`
  3859. PaypalAccountEmail string `json:"paypalAccountEmail"`
  3860. }
  3861. func (VaultPaypalBillingAgreement) IsPaymentInstrument() {}
  3862. type Video struct {
  3863. Alt *string `json:"alt"`
  3864. CreatedAt string `json:"createdAt"`
  3865. Duration *int `json:"duration"`
  3866. FileErrors []*FileError `json:"fileErrors"`
  3867. FileStatus FileStatus `json:"fileStatus"`
  3868. Filename string `json:"filename"`
  3869. ID string `json:"id"`
  3870. MediaContentType MediaContentType `json:"mediaContentType"`
  3871. MediaErrors []*MediaError `json:"mediaErrors"`
  3872. MediaWarnings []*MediaWarning `json:"mediaWarnings"`
  3873. OriginalSource *VideoSource `json:"originalSource"`
  3874. Preview *MediaPreviewImage `json:"preview"`
  3875. Sources []*VideoSource `json:"sources"`
  3876. Status MediaStatus `json:"status"`
  3877. }
  3878. func (Video) IsFile() {}
  3879. func (this Video) GetAlt() *string { return this.Alt }
  3880. func (this Video) GetCreatedAt() string { return this.CreatedAt }
  3881. func (this Video) GetFileErrors() []*FileError {
  3882. if this.FileErrors == nil {
  3883. return nil
  3884. }
  3885. interfaceSlice := make([]*FileError, 0, len(this.FileErrors))
  3886. for _, concrete := range this.FileErrors {
  3887. interfaceSlice = append(interfaceSlice, concrete)
  3888. }
  3889. return interfaceSlice
  3890. }
  3891. func (this Video) GetFileStatus() FileStatus { return this.FileStatus }
  3892. func (this Video) GetPreview() *MediaPreviewImage { return this.Preview }
  3893. func (Video) IsMedia() {}
  3894. func (this Video) GetMediaContentType() MediaContentType { return this.MediaContentType }
  3895. func (this Video) GetMediaErrors() []*MediaError {
  3896. if this.MediaErrors == nil {
  3897. return nil
  3898. }
  3899. interfaceSlice := make([]*MediaError, 0, len(this.MediaErrors))
  3900. for _, concrete := range this.MediaErrors {
  3901. interfaceSlice = append(interfaceSlice, concrete)
  3902. }
  3903. return interfaceSlice
  3904. }
  3905. func (this Video) GetMediaWarnings() []*MediaWarning {
  3906. if this.MediaWarnings == nil {
  3907. return nil
  3908. }
  3909. interfaceSlice := make([]*MediaWarning, 0, len(this.MediaWarnings))
  3910. for _, concrete := range this.MediaWarnings {
  3911. interfaceSlice = append(interfaceSlice, concrete)
  3912. }
  3913. return interfaceSlice
  3914. }
  3915. func (this Video) GetStatus() MediaStatus { return this.Status }
  3916. func (Video) IsNode() {}
  3917. func (this Video) GetID() string { return this.ID }
  3918. func (Video) IsMetafieldReference() {}
  3919. type VideoSource struct {
  3920. FileSize *int `json:"fileSize"`
  3921. Format string `json:"format"`
  3922. Height int `json:"height"`
  3923. MimeType string `json:"mimeType"`
  3924. URL string `json:"url"`
  3925. Width int `json:"width"`
  3926. }
  3927. type Weight struct {
  3928. Unit WeightUnit `json:"unit"`
  3929. Value float64 `json:"value"`
  3930. }
  3931. func (Weight) IsDeliveryConditionCriteria() {}
  3932. type AppDeveloperType string
  3933. const (
  3934. AppDeveloperTypeShopify AppDeveloperType = "SHOPIFY"
  3935. AppDeveloperTypePartner AppDeveloperType = "PARTNER"
  3936. AppDeveloperTypeMerchant AppDeveloperType = "MERCHANT"
  3937. AppDeveloperTypeUnknown AppDeveloperType = "UNKNOWN"
  3938. )
  3939. var AllAppDeveloperType = []AppDeveloperType{
  3940. AppDeveloperTypeShopify,
  3941. AppDeveloperTypePartner,
  3942. AppDeveloperTypeMerchant,
  3943. AppDeveloperTypeUnknown,
  3944. }
  3945. func (e AppDeveloperType) IsValid() bool {
  3946. switch e {
  3947. case AppDeveloperTypeShopify, AppDeveloperTypePartner, AppDeveloperTypeMerchant, AppDeveloperTypeUnknown:
  3948. return true
  3949. }
  3950. return false
  3951. }
  3952. func (e AppDeveloperType) String() string {
  3953. return string(e)
  3954. }
  3955. func (e *AppDeveloperType) UnmarshalGQL(v interface{}) error {
  3956. str, ok := v.(string)
  3957. if !ok {
  3958. return fmt.Errorf("enums must be strings")
  3959. }
  3960. *e = AppDeveloperType(str)
  3961. if !e.IsValid() {
  3962. return fmt.Errorf("%s is not a valid AppDeveloperType", str)
  3963. }
  3964. return nil
  3965. }
  3966. func (e AppDeveloperType) MarshalGQL(w io.Writer) {
  3967. fmt.Fprint(w, strconv.Quote(e.String()))
  3968. }
  3969. type AppPricingInterval string
  3970. const (
  3971. AppPricingIntervalAnnual AppPricingInterval = "ANNUAL"
  3972. AppPricingIntervalEvery30Days AppPricingInterval = "EVERY_30_DAYS"
  3973. )
  3974. var AllAppPricingInterval = []AppPricingInterval{
  3975. AppPricingIntervalAnnual,
  3976. AppPricingIntervalEvery30Days,
  3977. }
  3978. func (e AppPricingInterval) IsValid() bool {
  3979. switch e {
  3980. case AppPricingIntervalAnnual, AppPricingIntervalEvery30Days:
  3981. return true
  3982. }
  3983. return false
  3984. }
  3985. func (e AppPricingInterval) String() string {
  3986. return string(e)
  3987. }
  3988. func (e *AppPricingInterval) UnmarshalGQL(v interface{}) error {
  3989. str, ok := v.(string)
  3990. if !ok {
  3991. return fmt.Errorf("enums must be strings")
  3992. }
  3993. *e = AppPricingInterval(str)
  3994. if !e.IsValid() {
  3995. return fmt.Errorf("%s is not a valid AppPricingInterval", str)
  3996. }
  3997. return nil
  3998. }
  3999. func (e AppPricingInterval) MarshalGQL(w io.Writer) {
  4000. fmt.Fprint(w, strconv.Quote(e.String()))
  4001. }
  4002. type AppPublicCategory string
  4003. const (
  4004. AppPublicCategoryPrivate AppPublicCategory = "PRIVATE"
  4005. AppPublicCategoryPublic AppPublicCategory = "PUBLIC"
  4006. AppPublicCategoryCustom AppPublicCategory = "CUSTOM"
  4007. AppPublicCategoryOther AppPublicCategory = "OTHER"
  4008. )
  4009. var AllAppPublicCategory = []AppPublicCategory{
  4010. AppPublicCategoryPrivate,
  4011. AppPublicCategoryPublic,
  4012. AppPublicCategoryCustom,
  4013. AppPublicCategoryOther,
  4014. }
  4015. func (e AppPublicCategory) IsValid() bool {
  4016. switch e {
  4017. case AppPublicCategoryPrivate, AppPublicCategoryPublic, AppPublicCategoryCustom, AppPublicCategoryOther:
  4018. return true
  4019. }
  4020. return false
  4021. }
  4022. func (e AppPublicCategory) String() string {
  4023. return string(e)
  4024. }
  4025. func (e *AppPublicCategory) UnmarshalGQL(v interface{}) error {
  4026. str, ok := v.(string)
  4027. if !ok {
  4028. return fmt.Errorf("enums must be strings")
  4029. }
  4030. *e = AppPublicCategory(str)
  4031. if !e.IsValid() {
  4032. return fmt.Errorf("%s is not a valid AppPublicCategory", str)
  4033. }
  4034. return nil
  4035. }
  4036. func (e AppPublicCategory) MarshalGQL(w io.Writer) {
  4037. fmt.Fprint(w, strconv.Quote(e.String()))
  4038. }
  4039. type AppPurchaseStatus string
  4040. const (
  4041. AppPurchaseStatusActive AppPurchaseStatus = "ACTIVE"
  4042. AppPurchaseStatusDeclined AppPurchaseStatus = "DECLINED"
  4043. AppPurchaseStatusExpired AppPurchaseStatus = "EXPIRED"
  4044. AppPurchaseStatusPending AppPurchaseStatus = "PENDING"
  4045. )
  4046. var AllAppPurchaseStatus = []AppPurchaseStatus{
  4047. AppPurchaseStatusActive,
  4048. AppPurchaseStatusDeclined,
  4049. AppPurchaseStatusExpired,
  4050. AppPurchaseStatusPending,
  4051. }
  4052. func (e AppPurchaseStatus) IsValid() bool {
  4053. switch e {
  4054. case AppPurchaseStatusActive, AppPurchaseStatusDeclined, AppPurchaseStatusExpired, AppPurchaseStatusPending:
  4055. return true
  4056. }
  4057. return false
  4058. }
  4059. func (e AppPurchaseStatus) String() string {
  4060. return string(e)
  4061. }
  4062. func (e *AppPurchaseStatus) UnmarshalGQL(v interface{}) error {
  4063. str, ok := v.(string)
  4064. if !ok {
  4065. return fmt.Errorf("enums must be strings")
  4066. }
  4067. *e = AppPurchaseStatus(str)
  4068. if !e.IsValid() {
  4069. return fmt.Errorf("%s is not a valid AppPurchaseStatus", str)
  4070. }
  4071. return nil
  4072. }
  4073. func (e AppPurchaseStatus) MarshalGQL(w io.Writer) {
  4074. fmt.Fprint(w, strconv.Quote(e.String()))
  4075. }
  4076. type AppRevenueAttributionRecordSortKeys string
  4077. const (
  4078. AppRevenueAttributionRecordSortKeysCreatedAt AppRevenueAttributionRecordSortKeys = "CREATED_AT"
  4079. AppRevenueAttributionRecordSortKeysID AppRevenueAttributionRecordSortKeys = "ID"
  4080. AppRevenueAttributionRecordSortKeysRelevance AppRevenueAttributionRecordSortKeys = "RELEVANCE"
  4081. )
  4082. var AllAppRevenueAttributionRecordSortKeys = []AppRevenueAttributionRecordSortKeys{
  4083. AppRevenueAttributionRecordSortKeysCreatedAt,
  4084. AppRevenueAttributionRecordSortKeysID,
  4085. AppRevenueAttributionRecordSortKeysRelevance,
  4086. }
  4087. func (e AppRevenueAttributionRecordSortKeys) IsValid() bool {
  4088. switch e {
  4089. case AppRevenueAttributionRecordSortKeysCreatedAt, AppRevenueAttributionRecordSortKeysID, AppRevenueAttributionRecordSortKeysRelevance:
  4090. return true
  4091. }
  4092. return false
  4093. }
  4094. func (e AppRevenueAttributionRecordSortKeys) String() string {
  4095. return string(e)
  4096. }
  4097. func (e *AppRevenueAttributionRecordSortKeys) UnmarshalGQL(v interface{}) error {
  4098. str, ok := v.(string)
  4099. if !ok {
  4100. return fmt.Errorf("enums must be strings")
  4101. }
  4102. *e = AppRevenueAttributionRecordSortKeys(str)
  4103. if !e.IsValid() {
  4104. return fmt.Errorf("%s is not a valid AppRevenueAttributionRecordSortKeys", str)
  4105. }
  4106. return nil
  4107. }
  4108. func (e AppRevenueAttributionRecordSortKeys) MarshalGQL(w io.Writer) {
  4109. fmt.Fprint(w, strconv.Quote(e.String()))
  4110. }
  4111. type AppRevenueAttributionType string
  4112. const (
  4113. AppRevenueAttributionTypeApplicationPurchase AppRevenueAttributionType = "APPLICATION_PURCHASE"
  4114. AppRevenueAttributionTypeApplicationSubscription AppRevenueAttributionType = "APPLICATION_SUBSCRIPTION"
  4115. AppRevenueAttributionTypeApplicationUsage AppRevenueAttributionType = "APPLICATION_USAGE"
  4116. AppRevenueAttributionTypeOther AppRevenueAttributionType = "OTHER"
  4117. )
  4118. var AllAppRevenueAttributionType = []AppRevenueAttributionType{
  4119. AppRevenueAttributionTypeApplicationPurchase,
  4120. AppRevenueAttributionTypeApplicationSubscription,
  4121. AppRevenueAttributionTypeApplicationUsage,
  4122. AppRevenueAttributionTypeOther,
  4123. }
  4124. func (e AppRevenueAttributionType) IsValid() bool {
  4125. switch e {
  4126. case AppRevenueAttributionTypeApplicationPurchase, AppRevenueAttributionTypeApplicationSubscription, AppRevenueAttributionTypeApplicationUsage, AppRevenueAttributionTypeOther:
  4127. return true
  4128. }
  4129. return false
  4130. }
  4131. func (e AppRevenueAttributionType) String() string {
  4132. return string(e)
  4133. }
  4134. func (e *AppRevenueAttributionType) UnmarshalGQL(v interface{}) error {
  4135. str, ok := v.(string)
  4136. if !ok {
  4137. return fmt.Errorf("enums must be strings")
  4138. }
  4139. *e = AppRevenueAttributionType(str)
  4140. if !e.IsValid() {
  4141. return fmt.Errorf("%s is not a valid AppRevenueAttributionType", str)
  4142. }
  4143. return nil
  4144. }
  4145. func (e AppRevenueAttributionType) MarshalGQL(w io.Writer) {
  4146. fmt.Fprint(w, strconv.Quote(e.String()))
  4147. }
  4148. type AppSubscriptionSortKeys string
  4149. const (
  4150. AppSubscriptionSortKeysCreatedAt AppSubscriptionSortKeys = "CREATED_AT"
  4151. AppSubscriptionSortKeysID AppSubscriptionSortKeys = "ID"
  4152. AppSubscriptionSortKeysRelevance AppSubscriptionSortKeys = "RELEVANCE"
  4153. )
  4154. var AllAppSubscriptionSortKeys = []AppSubscriptionSortKeys{
  4155. AppSubscriptionSortKeysCreatedAt,
  4156. AppSubscriptionSortKeysID,
  4157. AppSubscriptionSortKeysRelevance,
  4158. }
  4159. func (e AppSubscriptionSortKeys) IsValid() bool {
  4160. switch e {
  4161. case AppSubscriptionSortKeysCreatedAt, AppSubscriptionSortKeysID, AppSubscriptionSortKeysRelevance:
  4162. return true
  4163. }
  4164. return false
  4165. }
  4166. func (e AppSubscriptionSortKeys) String() string {
  4167. return string(e)
  4168. }
  4169. func (e *AppSubscriptionSortKeys) UnmarshalGQL(v interface{}) error {
  4170. str, ok := v.(string)
  4171. if !ok {
  4172. return fmt.Errorf("enums must be strings")
  4173. }
  4174. *e = AppSubscriptionSortKeys(str)
  4175. if !e.IsValid() {
  4176. return fmt.Errorf("%s is not a valid AppSubscriptionSortKeys", str)
  4177. }
  4178. return nil
  4179. }
  4180. func (e AppSubscriptionSortKeys) MarshalGQL(w io.Writer) {
  4181. fmt.Fprint(w, strconv.Quote(e.String()))
  4182. }
  4183. type AppSubscriptionStatus string
  4184. const (
  4185. AppSubscriptionStatusPending AppSubscriptionStatus = "PENDING"
  4186. AppSubscriptionStatusActive AppSubscriptionStatus = "ACTIVE"
  4187. AppSubscriptionStatusDeclined AppSubscriptionStatus = "DECLINED"
  4188. AppSubscriptionStatusExpired AppSubscriptionStatus = "EXPIRED"
  4189. AppSubscriptionStatusFrozen AppSubscriptionStatus = "FROZEN"
  4190. AppSubscriptionStatusCancelled AppSubscriptionStatus = "CANCELLED"
  4191. )
  4192. var AllAppSubscriptionStatus = []AppSubscriptionStatus{
  4193. AppSubscriptionStatusPending,
  4194. AppSubscriptionStatusActive,
  4195. AppSubscriptionStatusDeclined,
  4196. AppSubscriptionStatusExpired,
  4197. AppSubscriptionStatusFrozen,
  4198. AppSubscriptionStatusCancelled,
  4199. }
  4200. func (e AppSubscriptionStatus) IsValid() bool {
  4201. switch e {
  4202. case AppSubscriptionStatusPending, AppSubscriptionStatusActive, AppSubscriptionStatusDeclined, AppSubscriptionStatusExpired, AppSubscriptionStatusFrozen, AppSubscriptionStatusCancelled:
  4203. return true
  4204. }
  4205. return false
  4206. }
  4207. func (e AppSubscriptionStatus) String() string {
  4208. return string(e)
  4209. }
  4210. func (e *AppSubscriptionStatus) UnmarshalGQL(v interface{}) error {
  4211. str, ok := v.(string)
  4212. if !ok {
  4213. return fmt.Errorf("enums must be strings")
  4214. }
  4215. *e = AppSubscriptionStatus(str)
  4216. if !e.IsValid() {
  4217. return fmt.Errorf("%s is not a valid AppSubscriptionStatus", str)
  4218. }
  4219. return nil
  4220. }
  4221. func (e AppSubscriptionStatus) MarshalGQL(w io.Writer) {
  4222. fmt.Fprint(w, strconv.Quote(e.String()))
  4223. }
  4224. type AppTransactionSortKeys string
  4225. const (
  4226. AppTransactionSortKeysCreatedAt AppTransactionSortKeys = "CREATED_AT"
  4227. AppTransactionSortKeysID AppTransactionSortKeys = "ID"
  4228. AppTransactionSortKeysRelevance AppTransactionSortKeys = "RELEVANCE"
  4229. )
  4230. var AllAppTransactionSortKeys = []AppTransactionSortKeys{
  4231. AppTransactionSortKeysCreatedAt,
  4232. AppTransactionSortKeysID,
  4233. AppTransactionSortKeysRelevance,
  4234. }
  4235. func (e AppTransactionSortKeys) IsValid() bool {
  4236. switch e {
  4237. case AppTransactionSortKeysCreatedAt, AppTransactionSortKeysID, AppTransactionSortKeysRelevance:
  4238. return true
  4239. }
  4240. return false
  4241. }
  4242. func (e AppTransactionSortKeys) String() string {
  4243. return string(e)
  4244. }
  4245. func (e *AppTransactionSortKeys) UnmarshalGQL(v interface{}) error {
  4246. str, ok := v.(string)
  4247. if !ok {
  4248. return fmt.Errorf("enums must be strings")
  4249. }
  4250. *e = AppTransactionSortKeys(str)
  4251. if !e.IsValid() {
  4252. return fmt.Errorf("%s is not a valid AppTransactionSortKeys", str)
  4253. }
  4254. return nil
  4255. }
  4256. func (e AppTransactionSortKeys) MarshalGQL(w io.Writer) {
  4257. fmt.Fprint(w, strconv.Quote(e.String()))
  4258. }
  4259. type AppUsageRecordSortKeys string
  4260. const (
  4261. AppUsageRecordSortKeysCreatedAt AppUsageRecordSortKeys = "CREATED_AT"
  4262. AppUsageRecordSortKeysID AppUsageRecordSortKeys = "ID"
  4263. AppUsageRecordSortKeysRelevance AppUsageRecordSortKeys = "RELEVANCE"
  4264. )
  4265. var AllAppUsageRecordSortKeys = []AppUsageRecordSortKeys{
  4266. AppUsageRecordSortKeysCreatedAt,
  4267. AppUsageRecordSortKeysID,
  4268. AppUsageRecordSortKeysRelevance,
  4269. }
  4270. func (e AppUsageRecordSortKeys) IsValid() bool {
  4271. switch e {
  4272. case AppUsageRecordSortKeysCreatedAt, AppUsageRecordSortKeysID, AppUsageRecordSortKeysRelevance:
  4273. return true
  4274. }
  4275. return false
  4276. }
  4277. func (e AppUsageRecordSortKeys) String() string {
  4278. return string(e)
  4279. }
  4280. func (e *AppUsageRecordSortKeys) UnmarshalGQL(v interface{}) error {
  4281. str, ok := v.(string)
  4282. if !ok {
  4283. return fmt.Errorf("enums must be strings")
  4284. }
  4285. *e = AppUsageRecordSortKeys(str)
  4286. if !e.IsValid() {
  4287. return fmt.Errorf("%s is not a valid AppUsageRecordSortKeys", str)
  4288. }
  4289. return nil
  4290. }
  4291. func (e AppUsageRecordSortKeys) MarshalGQL(w io.Writer) {
  4292. fmt.Fprint(w, strconv.Quote(e.String()))
  4293. }
  4294. type CollectionSortKeys string
  4295. const (
  4296. CollectionSortKeysTitle CollectionSortKeys = "TITLE"
  4297. CollectionSortKeysUpdatedAt CollectionSortKeys = "UPDATED_AT"
  4298. CollectionSortKeysID CollectionSortKeys = "ID"
  4299. CollectionSortKeysRelevance CollectionSortKeys = "RELEVANCE"
  4300. )
  4301. var AllCollectionSortKeys = []CollectionSortKeys{
  4302. CollectionSortKeysTitle,
  4303. CollectionSortKeysUpdatedAt,
  4304. CollectionSortKeysID,
  4305. CollectionSortKeysRelevance,
  4306. }
  4307. func (e CollectionSortKeys) IsValid() bool {
  4308. switch e {
  4309. case CollectionSortKeysTitle, CollectionSortKeysUpdatedAt, CollectionSortKeysID, CollectionSortKeysRelevance:
  4310. return true
  4311. }
  4312. return false
  4313. }
  4314. func (e CollectionSortKeys) String() string {
  4315. return string(e)
  4316. }
  4317. func (e *CollectionSortKeys) UnmarshalGQL(v interface{}) error {
  4318. str, ok := v.(string)
  4319. if !ok {
  4320. return fmt.Errorf("enums must be strings")
  4321. }
  4322. *e = CollectionSortKeys(str)
  4323. if !e.IsValid() {
  4324. return fmt.Errorf("%s is not a valid CollectionSortKeys", str)
  4325. }
  4326. return nil
  4327. }
  4328. func (e CollectionSortKeys) MarshalGQL(w io.Writer) {
  4329. fmt.Fprint(w, strconv.Quote(e.String()))
  4330. }
  4331. type CollectionSortOrder string
  4332. const (
  4333. CollectionSortOrderAlphaAsc CollectionSortOrder = "ALPHA_ASC"
  4334. CollectionSortOrderAlphaDesc CollectionSortOrder = "ALPHA_DESC"
  4335. CollectionSortOrderBestSelling CollectionSortOrder = "BEST_SELLING"
  4336. CollectionSortOrderCreated CollectionSortOrder = "CREATED"
  4337. CollectionSortOrderCreatedDesc CollectionSortOrder = "CREATED_DESC"
  4338. CollectionSortOrderManual CollectionSortOrder = "MANUAL"
  4339. CollectionSortOrderPriceAsc CollectionSortOrder = "PRICE_ASC"
  4340. CollectionSortOrderPriceDesc CollectionSortOrder = "PRICE_DESC"
  4341. )
  4342. var AllCollectionSortOrder = []CollectionSortOrder{
  4343. CollectionSortOrderAlphaAsc,
  4344. CollectionSortOrderAlphaDesc,
  4345. CollectionSortOrderBestSelling,
  4346. CollectionSortOrderCreated,
  4347. CollectionSortOrderCreatedDesc,
  4348. CollectionSortOrderManual,
  4349. CollectionSortOrderPriceAsc,
  4350. CollectionSortOrderPriceDesc,
  4351. }
  4352. func (e CollectionSortOrder) IsValid() bool {
  4353. switch e {
  4354. case CollectionSortOrderAlphaAsc, CollectionSortOrderAlphaDesc, CollectionSortOrderBestSelling, CollectionSortOrderCreated, CollectionSortOrderCreatedDesc, CollectionSortOrderManual, CollectionSortOrderPriceAsc, CollectionSortOrderPriceDesc:
  4355. return true
  4356. }
  4357. return false
  4358. }
  4359. func (e CollectionSortOrder) String() string {
  4360. return string(e)
  4361. }
  4362. func (e *CollectionSortOrder) UnmarshalGQL(v interface{}) error {
  4363. str, ok := v.(string)
  4364. if !ok {
  4365. return fmt.Errorf("enums must be strings")
  4366. }
  4367. *e = CollectionSortOrder(str)
  4368. if !e.IsValid() {
  4369. return fmt.Errorf("%s is not a valid CollectionSortOrder", str)
  4370. }
  4371. return nil
  4372. }
  4373. func (e CollectionSortOrder) MarshalGQL(w io.Writer) {
  4374. fmt.Fprint(w, strconv.Quote(e.String()))
  4375. }
  4376. type CompanyContactRoleAssignmentSortKeys string
  4377. const (
  4378. CompanyContactRoleAssignmentSortKeysCreatedAt CompanyContactRoleAssignmentSortKeys = "CREATED_AT"
  4379. CompanyContactRoleAssignmentSortKeysUpdatedAt CompanyContactRoleAssignmentSortKeys = "UPDATED_AT"
  4380. CompanyContactRoleAssignmentSortKeysLocationName CompanyContactRoleAssignmentSortKeys = "LOCATION_NAME"
  4381. CompanyContactRoleAssignmentSortKeysID CompanyContactRoleAssignmentSortKeys = "ID"
  4382. CompanyContactRoleAssignmentSortKeysRelevance CompanyContactRoleAssignmentSortKeys = "RELEVANCE"
  4383. )
  4384. var AllCompanyContactRoleAssignmentSortKeys = []CompanyContactRoleAssignmentSortKeys{
  4385. CompanyContactRoleAssignmentSortKeysCreatedAt,
  4386. CompanyContactRoleAssignmentSortKeysUpdatedAt,
  4387. CompanyContactRoleAssignmentSortKeysLocationName,
  4388. CompanyContactRoleAssignmentSortKeysID,
  4389. CompanyContactRoleAssignmentSortKeysRelevance,
  4390. }
  4391. func (e CompanyContactRoleAssignmentSortKeys) IsValid() bool {
  4392. switch e {
  4393. case CompanyContactRoleAssignmentSortKeysCreatedAt, CompanyContactRoleAssignmentSortKeysUpdatedAt, CompanyContactRoleAssignmentSortKeysLocationName, CompanyContactRoleAssignmentSortKeysID, CompanyContactRoleAssignmentSortKeysRelevance:
  4394. return true
  4395. }
  4396. return false
  4397. }
  4398. func (e CompanyContactRoleAssignmentSortKeys) String() string {
  4399. return string(e)
  4400. }
  4401. func (e *CompanyContactRoleAssignmentSortKeys) UnmarshalGQL(v interface{}) error {
  4402. str, ok := v.(string)
  4403. if !ok {
  4404. return fmt.Errorf("enums must be strings")
  4405. }
  4406. *e = CompanyContactRoleAssignmentSortKeys(str)
  4407. if !e.IsValid() {
  4408. return fmt.Errorf("%s is not a valid CompanyContactRoleAssignmentSortKeys", str)
  4409. }
  4410. return nil
  4411. }
  4412. func (e CompanyContactRoleAssignmentSortKeys) MarshalGQL(w io.Writer) {
  4413. fmt.Fprint(w, strconv.Quote(e.String()))
  4414. }
  4415. type CompanyContactRoleSortKeys string
  4416. const (
  4417. CompanyContactRoleSortKeysCreatedAt CompanyContactRoleSortKeys = "CREATED_AT"
  4418. CompanyContactRoleSortKeysUpdatedAt CompanyContactRoleSortKeys = "UPDATED_AT"
  4419. CompanyContactRoleSortKeysID CompanyContactRoleSortKeys = "ID"
  4420. CompanyContactRoleSortKeysRelevance CompanyContactRoleSortKeys = "RELEVANCE"
  4421. )
  4422. var AllCompanyContactRoleSortKeys = []CompanyContactRoleSortKeys{
  4423. CompanyContactRoleSortKeysCreatedAt,
  4424. CompanyContactRoleSortKeysUpdatedAt,
  4425. CompanyContactRoleSortKeysID,
  4426. CompanyContactRoleSortKeysRelevance,
  4427. }
  4428. func (e CompanyContactRoleSortKeys) IsValid() bool {
  4429. switch e {
  4430. case CompanyContactRoleSortKeysCreatedAt, CompanyContactRoleSortKeysUpdatedAt, CompanyContactRoleSortKeysID, CompanyContactRoleSortKeysRelevance:
  4431. return true
  4432. }
  4433. return false
  4434. }
  4435. func (e CompanyContactRoleSortKeys) String() string {
  4436. return string(e)
  4437. }
  4438. func (e *CompanyContactRoleSortKeys) UnmarshalGQL(v interface{}) error {
  4439. str, ok := v.(string)
  4440. if !ok {
  4441. return fmt.Errorf("enums must be strings")
  4442. }
  4443. *e = CompanyContactRoleSortKeys(str)
  4444. if !e.IsValid() {
  4445. return fmt.Errorf("%s is not a valid CompanyContactRoleSortKeys", str)
  4446. }
  4447. return nil
  4448. }
  4449. func (e CompanyContactRoleSortKeys) MarshalGQL(w io.Writer) {
  4450. fmt.Fprint(w, strconv.Quote(e.String()))
  4451. }
  4452. type CompanyContactSortKeys string
  4453. const (
  4454. CompanyContactSortKeysCreatedAt CompanyContactSortKeys = "CREATED_AT"
  4455. CompanyContactSortKeysUpdatedAt CompanyContactSortKeys = "UPDATED_AT"
  4456. CompanyContactSortKeysTitle CompanyContactSortKeys = "TITLE"
  4457. CompanyContactSortKeysCompanyID CompanyContactSortKeys = "COMPANY_ID"
  4458. CompanyContactSortKeysName CompanyContactSortKeys = "NAME"
  4459. CompanyContactSortKeysEmail CompanyContactSortKeys = "EMAIL"
  4460. CompanyContactSortKeysNameEmail CompanyContactSortKeys = "NAME_EMAIL"
  4461. CompanyContactSortKeysID CompanyContactSortKeys = "ID"
  4462. CompanyContactSortKeysRelevance CompanyContactSortKeys = "RELEVANCE"
  4463. )
  4464. var AllCompanyContactSortKeys = []CompanyContactSortKeys{
  4465. CompanyContactSortKeysCreatedAt,
  4466. CompanyContactSortKeysUpdatedAt,
  4467. CompanyContactSortKeysTitle,
  4468. CompanyContactSortKeysCompanyID,
  4469. CompanyContactSortKeysName,
  4470. CompanyContactSortKeysEmail,
  4471. CompanyContactSortKeysNameEmail,
  4472. CompanyContactSortKeysID,
  4473. CompanyContactSortKeysRelevance,
  4474. }
  4475. func (e CompanyContactSortKeys) IsValid() bool {
  4476. switch e {
  4477. case CompanyContactSortKeysCreatedAt, CompanyContactSortKeysUpdatedAt, CompanyContactSortKeysTitle, CompanyContactSortKeysCompanyID, CompanyContactSortKeysName, CompanyContactSortKeysEmail, CompanyContactSortKeysNameEmail, CompanyContactSortKeysID, CompanyContactSortKeysRelevance:
  4478. return true
  4479. }
  4480. return false
  4481. }
  4482. func (e CompanyContactSortKeys) String() string {
  4483. return string(e)
  4484. }
  4485. func (e *CompanyContactSortKeys) UnmarshalGQL(v interface{}) error {
  4486. str, ok := v.(string)
  4487. if !ok {
  4488. return fmt.Errorf("enums must be strings")
  4489. }
  4490. *e = CompanyContactSortKeys(str)
  4491. if !e.IsValid() {
  4492. return fmt.Errorf("%s is not a valid CompanyContactSortKeys", str)
  4493. }
  4494. return nil
  4495. }
  4496. func (e CompanyContactSortKeys) MarshalGQL(w io.Writer) {
  4497. fmt.Fprint(w, strconv.Quote(e.String()))
  4498. }
  4499. type CompanyLocationSortKeys string
  4500. const (
  4501. CompanyLocationSortKeysCreatedAt CompanyLocationSortKeys = "CREATED_AT"
  4502. CompanyLocationSortKeysUpdatedAt CompanyLocationSortKeys = "UPDATED_AT"
  4503. CompanyLocationSortKeysName CompanyLocationSortKeys = "NAME"
  4504. CompanyLocationSortKeysCompanyID CompanyLocationSortKeys = "COMPANY_ID"
  4505. CompanyLocationSortKeysCompanyAndLocationName CompanyLocationSortKeys = "COMPANY_AND_LOCATION_NAME"
  4506. CompanyLocationSortKeysID CompanyLocationSortKeys = "ID"
  4507. CompanyLocationSortKeysRelevance CompanyLocationSortKeys = "RELEVANCE"
  4508. )
  4509. var AllCompanyLocationSortKeys = []CompanyLocationSortKeys{
  4510. CompanyLocationSortKeysCreatedAt,
  4511. CompanyLocationSortKeysUpdatedAt,
  4512. CompanyLocationSortKeysName,
  4513. CompanyLocationSortKeysCompanyID,
  4514. CompanyLocationSortKeysCompanyAndLocationName,
  4515. CompanyLocationSortKeysID,
  4516. CompanyLocationSortKeysRelevance,
  4517. }
  4518. func (e CompanyLocationSortKeys) IsValid() bool {
  4519. switch e {
  4520. case CompanyLocationSortKeysCreatedAt, CompanyLocationSortKeysUpdatedAt, CompanyLocationSortKeysName, CompanyLocationSortKeysCompanyID, CompanyLocationSortKeysCompanyAndLocationName, CompanyLocationSortKeysID, CompanyLocationSortKeysRelevance:
  4521. return true
  4522. }
  4523. return false
  4524. }
  4525. func (e CompanyLocationSortKeys) String() string {
  4526. return string(e)
  4527. }
  4528. func (e *CompanyLocationSortKeys) UnmarshalGQL(v interface{}) error {
  4529. str, ok := v.(string)
  4530. if !ok {
  4531. return fmt.Errorf("enums must be strings")
  4532. }
  4533. *e = CompanyLocationSortKeys(str)
  4534. if !e.IsValid() {
  4535. return fmt.Errorf("%s is not a valid CompanyLocationSortKeys", str)
  4536. }
  4537. return nil
  4538. }
  4539. func (e CompanyLocationSortKeys) MarshalGQL(w io.Writer) {
  4540. fmt.Fprint(w, strconv.Quote(e.String()))
  4541. }
  4542. type CountryCode string
  4543. const (
  4544. CountryCodeAf CountryCode = "AF"
  4545. CountryCodeAx CountryCode = "AX"
  4546. CountryCodeAl CountryCode = "AL"
  4547. CountryCodeDz CountryCode = "DZ"
  4548. CountryCodeAd CountryCode = "AD"
  4549. CountryCodeAo CountryCode = "AO"
  4550. CountryCodeAi CountryCode = "AI"
  4551. CountryCodeAg CountryCode = "AG"
  4552. CountryCodeAr CountryCode = "AR"
  4553. CountryCodeAm CountryCode = "AM"
  4554. CountryCodeAw CountryCode = "AW"
  4555. CountryCodeAc CountryCode = "AC"
  4556. CountryCodeAu CountryCode = "AU"
  4557. CountryCodeAt CountryCode = "AT"
  4558. CountryCodeAz CountryCode = "AZ"
  4559. CountryCodeBs CountryCode = "BS"
  4560. CountryCodeBh CountryCode = "BH"
  4561. CountryCodeBd CountryCode = "BD"
  4562. CountryCodeBb CountryCode = "BB"
  4563. CountryCodeBy CountryCode = "BY"
  4564. CountryCodeBe CountryCode = "BE"
  4565. CountryCodeBz CountryCode = "BZ"
  4566. CountryCodeBj CountryCode = "BJ"
  4567. CountryCodeBm CountryCode = "BM"
  4568. CountryCodeBt CountryCode = "BT"
  4569. CountryCodeBo CountryCode = "BO"
  4570. CountryCodeBa CountryCode = "BA"
  4571. CountryCodeBw CountryCode = "BW"
  4572. CountryCodeBv CountryCode = "BV"
  4573. CountryCodeBr CountryCode = "BR"
  4574. CountryCodeIo CountryCode = "IO"
  4575. CountryCodeBn CountryCode = "BN"
  4576. CountryCodeBg CountryCode = "BG"
  4577. CountryCodeBf CountryCode = "BF"
  4578. CountryCodeBi CountryCode = "BI"
  4579. CountryCodeKh CountryCode = "KH"
  4580. CountryCodeCa CountryCode = "CA"
  4581. CountryCodeCv CountryCode = "CV"
  4582. CountryCodeBq CountryCode = "BQ"
  4583. CountryCodeKy CountryCode = "KY"
  4584. CountryCodeCf CountryCode = "CF"
  4585. CountryCodeTd CountryCode = "TD"
  4586. CountryCodeCl CountryCode = "CL"
  4587. CountryCodeCn CountryCode = "CN"
  4588. CountryCodeCx CountryCode = "CX"
  4589. CountryCodeCc CountryCode = "CC"
  4590. CountryCodeCo CountryCode = "CO"
  4591. CountryCodeKm CountryCode = "KM"
  4592. CountryCodeCg CountryCode = "CG"
  4593. CountryCodeCd CountryCode = "CD"
  4594. CountryCodeCk CountryCode = "CK"
  4595. CountryCodeCr CountryCode = "CR"
  4596. CountryCodeHr CountryCode = "HR"
  4597. CountryCodeCu CountryCode = "CU"
  4598. CountryCodeCw CountryCode = "CW"
  4599. CountryCodeCy CountryCode = "CY"
  4600. CountryCodeCz CountryCode = "CZ"
  4601. CountryCodeCi CountryCode = "CI"
  4602. CountryCodeDk CountryCode = "DK"
  4603. CountryCodeDj CountryCode = "DJ"
  4604. CountryCodeDm CountryCode = "DM"
  4605. CountryCodeDo CountryCode = "DO"
  4606. CountryCodeEc CountryCode = "EC"
  4607. CountryCodeEg CountryCode = "EG"
  4608. CountryCodeSv CountryCode = "SV"
  4609. CountryCodeGq CountryCode = "GQ"
  4610. CountryCodeEr CountryCode = "ER"
  4611. CountryCodeEe CountryCode = "EE"
  4612. CountryCodeSz CountryCode = "SZ"
  4613. CountryCodeEt CountryCode = "ET"
  4614. CountryCodeFk CountryCode = "FK"
  4615. CountryCodeFo CountryCode = "FO"
  4616. CountryCodeFj CountryCode = "FJ"
  4617. CountryCodeFi CountryCode = "FI"
  4618. CountryCodeFr CountryCode = "FR"
  4619. CountryCodeGf CountryCode = "GF"
  4620. CountryCodePf CountryCode = "PF"
  4621. CountryCodeTf CountryCode = "TF"
  4622. CountryCodeGa CountryCode = "GA"
  4623. CountryCodeGm CountryCode = "GM"
  4624. CountryCodeGe CountryCode = "GE"
  4625. CountryCodeDe CountryCode = "DE"
  4626. CountryCodeGh CountryCode = "GH"
  4627. CountryCodeGi CountryCode = "GI"
  4628. CountryCodeGr CountryCode = "GR"
  4629. CountryCodeGl CountryCode = "GL"
  4630. CountryCodeGd CountryCode = "GD"
  4631. CountryCodeGp CountryCode = "GP"
  4632. CountryCodeGt CountryCode = "GT"
  4633. CountryCodeGg CountryCode = "GG"
  4634. CountryCodeGn CountryCode = "GN"
  4635. CountryCodeGw CountryCode = "GW"
  4636. CountryCodeGy CountryCode = "GY"
  4637. CountryCodeHt CountryCode = "HT"
  4638. CountryCodeHm CountryCode = "HM"
  4639. CountryCodeVa CountryCode = "VA"
  4640. CountryCodeHn CountryCode = "HN"
  4641. CountryCodeHk CountryCode = "HK"
  4642. CountryCodeHu CountryCode = "HU"
  4643. CountryCodeIs CountryCode = "IS"
  4644. CountryCodeIn CountryCode = "IN"
  4645. CountryCodeID CountryCode = "ID"
  4646. CountryCodeIr CountryCode = "IR"
  4647. CountryCodeIq CountryCode = "IQ"
  4648. CountryCodeIe CountryCode = "IE"
  4649. CountryCodeIm CountryCode = "IM"
  4650. CountryCodeIl CountryCode = "IL"
  4651. CountryCodeIt CountryCode = "IT"
  4652. CountryCodeJm CountryCode = "JM"
  4653. CountryCodeJp CountryCode = "JP"
  4654. CountryCodeJe CountryCode = "JE"
  4655. CountryCodeJo CountryCode = "JO"
  4656. CountryCodeKz CountryCode = "KZ"
  4657. CountryCodeKe CountryCode = "KE"
  4658. CountryCodeKi CountryCode = "KI"
  4659. CountryCodeKp CountryCode = "KP"
  4660. CountryCodeXk CountryCode = "XK"
  4661. CountryCodeKw CountryCode = "KW"
  4662. CountryCodeKg CountryCode = "KG"
  4663. CountryCodeLa CountryCode = "LA"
  4664. CountryCodeLv CountryCode = "LV"
  4665. CountryCodeLb CountryCode = "LB"
  4666. CountryCodeLs CountryCode = "LS"
  4667. CountryCodeLr CountryCode = "LR"
  4668. CountryCodeLy CountryCode = "LY"
  4669. CountryCodeLi CountryCode = "LI"
  4670. CountryCodeLt CountryCode = "LT"
  4671. CountryCodeLu CountryCode = "LU"
  4672. CountryCodeMo CountryCode = "MO"
  4673. CountryCodeMg CountryCode = "MG"
  4674. CountryCodeMw CountryCode = "MW"
  4675. CountryCodeMy CountryCode = "MY"
  4676. CountryCodeMv CountryCode = "MV"
  4677. CountryCodeMl CountryCode = "ML"
  4678. CountryCodeMt CountryCode = "MT"
  4679. CountryCodeMq CountryCode = "MQ"
  4680. CountryCodeMr CountryCode = "MR"
  4681. CountryCodeMu CountryCode = "MU"
  4682. CountryCodeYt CountryCode = "YT"
  4683. CountryCodeMx CountryCode = "MX"
  4684. CountryCodeMd CountryCode = "MD"
  4685. CountryCodeMc CountryCode = "MC"
  4686. CountryCodeMn CountryCode = "MN"
  4687. CountryCodeMe CountryCode = "ME"
  4688. CountryCodeMs CountryCode = "MS"
  4689. CountryCodeMa CountryCode = "MA"
  4690. CountryCodeMz CountryCode = "MZ"
  4691. CountryCodeMm CountryCode = "MM"
  4692. CountryCodeNa CountryCode = "NA"
  4693. CountryCodeNr CountryCode = "NR"
  4694. CountryCodeNp CountryCode = "NP"
  4695. CountryCodeNl CountryCode = "NL"
  4696. CountryCodeAn CountryCode = "AN"
  4697. CountryCodeNc CountryCode = "NC"
  4698. CountryCodeNz CountryCode = "NZ"
  4699. CountryCodeNi CountryCode = "NI"
  4700. CountryCodeNe CountryCode = "NE"
  4701. CountryCodeNg CountryCode = "NG"
  4702. CountryCodeNu CountryCode = "NU"
  4703. CountryCodeNf CountryCode = "NF"
  4704. CountryCodeMk CountryCode = "MK"
  4705. CountryCodeNo CountryCode = "NO"
  4706. CountryCodeOm CountryCode = "OM"
  4707. CountryCodePk CountryCode = "PK"
  4708. CountryCodePs CountryCode = "PS"
  4709. CountryCodePa CountryCode = "PA"
  4710. CountryCodePg CountryCode = "PG"
  4711. CountryCodePy CountryCode = "PY"
  4712. CountryCodePe CountryCode = "PE"
  4713. CountryCodePh CountryCode = "PH"
  4714. CountryCodePn CountryCode = "PN"
  4715. CountryCodePl CountryCode = "PL"
  4716. CountryCodePt CountryCode = "PT"
  4717. CountryCodeQa CountryCode = "QA"
  4718. CountryCodeCm CountryCode = "CM"
  4719. CountryCodeRe CountryCode = "RE"
  4720. CountryCodeRo CountryCode = "RO"
  4721. CountryCodeRu CountryCode = "RU"
  4722. CountryCodeRw CountryCode = "RW"
  4723. CountryCodeBl CountryCode = "BL"
  4724. CountryCodeSh CountryCode = "SH"
  4725. CountryCodeKn CountryCode = "KN"
  4726. CountryCodeLc CountryCode = "LC"
  4727. CountryCodeMf CountryCode = "MF"
  4728. CountryCodePm CountryCode = "PM"
  4729. CountryCodeWs CountryCode = "WS"
  4730. CountryCodeSm CountryCode = "SM"
  4731. CountryCodeSt CountryCode = "ST"
  4732. CountryCodeSa CountryCode = "SA"
  4733. CountryCodeSn CountryCode = "SN"
  4734. CountryCodeRs CountryCode = "RS"
  4735. CountryCodeSc CountryCode = "SC"
  4736. CountryCodeSl CountryCode = "SL"
  4737. CountryCodeSg CountryCode = "SG"
  4738. CountryCodeSx CountryCode = "SX"
  4739. CountryCodeSk CountryCode = "SK"
  4740. CountryCodeSi CountryCode = "SI"
  4741. CountryCodeSb CountryCode = "SB"
  4742. CountryCodeSo CountryCode = "SO"
  4743. CountryCodeZa CountryCode = "ZA"
  4744. CountryCodeGs CountryCode = "GS"
  4745. CountryCodeKr CountryCode = "KR"
  4746. CountryCodeSs CountryCode = "SS"
  4747. CountryCodeEs CountryCode = "ES"
  4748. CountryCodeLk CountryCode = "LK"
  4749. CountryCodeVc CountryCode = "VC"
  4750. CountryCodeSd CountryCode = "SD"
  4751. CountryCodeSr CountryCode = "SR"
  4752. CountryCodeSj CountryCode = "SJ"
  4753. CountryCodeSe CountryCode = "SE"
  4754. CountryCodeCh CountryCode = "CH"
  4755. CountryCodeSy CountryCode = "SY"
  4756. CountryCodeTw CountryCode = "TW"
  4757. CountryCodeTj CountryCode = "TJ"
  4758. CountryCodeTz CountryCode = "TZ"
  4759. CountryCodeTh CountryCode = "TH"
  4760. CountryCodeTl CountryCode = "TL"
  4761. CountryCodeTg CountryCode = "TG"
  4762. CountryCodeTk CountryCode = "TK"
  4763. CountryCodeTo CountryCode = "TO"
  4764. CountryCodeTt CountryCode = "TT"
  4765. CountryCodeTa CountryCode = "TA"
  4766. CountryCodeTn CountryCode = "TN"
  4767. CountryCodeTr CountryCode = "TR"
  4768. CountryCodeTm CountryCode = "TM"
  4769. CountryCodeTc CountryCode = "TC"
  4770. CountryCodeTv CountryCode = "TV"
  4771. CountryCodeUg CountryCode = "UG"
  4772. CountryCodeUa CountryCode = "UA"
  4773. CountryCodeAe CountryCode = "AE"
  4774. CountryCodeGb CountryCode = "GB"
  4775. CountryCodeUs CountryCode = "US"
  4776. CountryCodeUm CountryCode = "UM"
  4777. CountryCodeUy CountryCode = "UY"
  4778. CountryCodeUz CountryCode = "UZ"
  4779. CountryCodeVu CountryCode = "VU"
  4780. CountryCodeVe CountryCode = "VE"
  4781. CountryCodeVn CountryCode = "VN"
  4782. CountryCodeVg CountryCode = "VG"
  4783. CountryCodeWf CountryCode = "WF"
  4784. CountryCodeEh CountryCode = "EH"
  4785. CountryCodeYe CountryCode = "YE"
  4786. CountryCodeZm CountryCode = "ZM"
  4787. CountryCodeZw CountryCode = "ZW"
  4788. CountryCodeZz CountryCode = "ZZ"
  4789. )
  4790. var AllCountryCode = []CountryCode{
  4791. CountryCodeAf,
  4792. CountryCodeAx,
  4793. CountryCodeAl,
  4794. CountryCodeDz,
  4795. CountryCodeAd,
  4796. CountryCodeAo,
  4797. CountryCodeAi,
  4798. CountryCodeAg,
  4799. CountryCodeAr,
  4800. CountryCodeAm,
  4801. CountryCodeAw,
  4802. CountryCodeAc,
  4803. CountryCodeAu,
  4804. CountryCodeAt,
  4805. CountryCodeAz,
  4806. CountryCodeBs,
  4807. CountryCodeBh,
  4808. CountryCodeBd,
  4809. CountryCodeBb,
  4810. CountryCodeBy,
  4811. CountryCodeBe,
  4812. CountryCodeBz,
  4813. CountryCodeBj,
  4814. CountryCodeBm,
  4815. CountryCodeBt,
  4816. CountryCodeBo,
  4817. CountryCodeBa,
  4818. CountryCodeBw,
  4819. CountryCodeBv,
  4820. CountryCodeBr,
  4821. CountryCodeIo,
  4822. CountryCodeBn,
  4823. CountryCodeBg,
  4824. CountryCodeBf,
  4825. CountryCodeBi,
  4826. CountryCodeKh,
  4827. CountryCodeCa,
  4828. CountryCodeCv,
  4829. CountryCodeBq,
  4830. CountryCodeKy,
  4831. CountryCodeCf,
  4832. CountryCodeTd,
  4833. CountryCodeCl,
  4834. CountryCodeCn,
  4835. CountryCodeCx,
  4836. CountryCodeCc,
  4837. CountryCodeCo,
  4838. CountryCodeKm,
  4839. CountryCodeCg,
  4840. CountryCodeCd,
  4841. CountryCodeCk,
  4842. CountryCodeCr,
  4843. CountryCodeHr,
  4844. CountryCodeCu,
  4845. CountryCodeCw,
  4846. CountryCodeCy,
  4847. CountryCodeCz,
  4848. CountryCodeCi,
  4849. CountryCodeDk,
  4850. CountryCodeDj,
  4851. CountryCodeDm,
  4852. CountryCodeDo,
  4853. CountryCodeEc,
  4854. CountryCodeEg,
  4855. CountryCodeSv,
  4856. CountryCodeGq,
  4857. CountryCodeEr,
  4858. CountryCodeEe,
  4859. CountryCodeSz,
  4860. CountryCodeEt,
  4861. CountryCodeFk,
  4862. CountryCodeFo,
  4863. CountryCodeFj,
  4864. CountryCodeFi,
  4865. CountryCodeFr,
  4866. CountryCodeGf,
  4867. CountryCodePf,
  4868. CountryCodeTf,
  4869. CountryCodeGa,
  4870. CountryCodeGm,
  4871. CountryCodeGe,
  4872. CountryCodeDe,
  4873. CountryCodeGh,
  4874. CountryCodeGi,
  4875. CountryCodeGr,
  4876. CountryCodeGl,
  4877. CountryCodeGd,
  4878. CountryCodeGp,
  4879. CountryCodeGt,
  4880. CountryCodeGg,
  4881. CountryCodeGn,
  4882. CountryCodeGw,
  4883. CountryCodeGy,
  4884. CountryCodeHt,
  4885. CountryCodeHm,
  4886. CountryCodeVa,
  4887. CountryCodeHn,
  4888. CountryCodeHk,
  4889. CountryCodeHu,
  4890. CountryCodeIs,
  4891. CountryCodeIn,
  4892. CountryCodeID,
  4893. CountryCodeIr,
  4894. CountryCodeIq,
  4895. CountryCodeIe,
  4896. CountryCodeIm,
  4897. CountryCodeIl,
  4898. CountryCodeIt,
  4899. CountryCodeJm,
  4900. CountryCodeJp,
  4901. CountryCodeJe,
  4902. CountryCodeJo,
  4903. CountryCodeKz,
  4904. CountryCodeKe,
  4905. CountryCodeKi,
  4906. CountryCodeKp,
  4907. CountryCodeXk,
  4908. CountryCodeKw,
  4909. CountryCodeKg,
  4910. CountryCodeLa,
  4911. CountryCodeLv,
  4912. CountryCodeLb,
  4913. CountryCodeLs,
  4914. CountryCodeLr,
  4915. CountryCodeLy,
  4916. CountryCodeLi,
  4917. CountryCodeLt,
  4918. CountryCodeLu,
  4919. CountryCodeMo,
  4920. CountryCodeMg,
  4921. CountryCodeMw,
  4922. CountryCodeMy,
  4923. CountryCodeMv,
  4924. CountryCodeMl,
  4925. CountryCodeMt,
  4926. CountryCodeMq,
  4927. CountryCodeMr,
  4928. CountryCodeMu,
  4929. CountryCodeYt,
  4930. CountryCodeMx,
  4931. CountryCodeMd,
  4932. CountryCodeMc,
  4933. CountryCodeMn,
  4934. CountryCodeMe,
  4935. CountryCodeMs,
  4936. CountryCodeMa,
  4937. CountryCodeMz,
  4938. CountryCodeMm,
  4939. CountryCodeNa,
  4940. CountryCodeNr,
  4941. CountryCodeNp,
  4942. CountryCodeNl,
  4943. CountryCodeAn,
  4944. CountryCodeNc,
  4945. CountryCodeNz,
  4946. CountryCodeNi,
  4947. CountryCodeNe,
  4948. CountryCodeNg,
  4949. CountryCodeNu,
  4950. CountryCodeNf,
  4951. CountryCodeMk,
  4952. CountryCodeNo,
  4953. CountryCodeOm,
  4954. CountryCodePk,
  4955. CountryCodePs,
  4956. CountryCodePa,
  4957. CountryCodePg,
  4958. CountryCodePy,
  4959. CountryCodePe,
  4960. CountryCodePh,
  4961. CountryCodePn,
  4962. CountryCodePl,
  4963. CountryCodePt,
  4964. CountryCodeQa,
  4965. CountryCodeCm,
  4966. CountryCodeRe,
  4967. CountryCodeRo,
  4968. CountryCodeRu,
  4969. CountryCodeRw,
  4970. CountryCodeBl,
  4971. CountryCodeSh,
  4972. CountryCodeKn,
  4973. CountryCodeLc,
  4974. CountryCodeMf,
  4975. CountryCodePm,
  4976. CountryCodeWs,
  4977. CountryCodeSm,
  4978. CountryCodeSt,
  4979. CountryCodeSa,
  4980. CountryCodeSn,
  4981. CountryCodeRs,
  4982. CountryCodeSc,
  4983. CountryCodeSl,
  4984. CountryCodeSg,
  4985. CountryCodeSx,
  4986. CountryCodeSk,
  4987. CountryCodeSi,
  4988. CountryCodeSb,
  4989. CountryCodeSo,
  4990. CountryCodeZa,
  4991. CountryCodeGs,
  4992. CountryCodeKr,
  4993. CountryCodeSs,
  4994. CountryCodeEs,
  4995. CountryCodeLk,
  4996. CountryCodeVc,
  4997. CountryCodeSd,
  4998. CountryCodeSr,
  4999. CountryCodeSj,
  5000. CountryCodeSe,
  5001. CountryCodeCh,
  5002. CountryCodeSy,
  5003. CountryCodeTw,
  5004. CountryCodeTj,
  5005. CountryCodeTz,
  5006. CountryCodeTh,
  5007. CountryCodeTl,
  5008. CountryCodeTg,
  5009. CountryCodeTk,
  5010. CountryCodeTo,
  5011. CountryCodeTt,
  5012. CountryCodeTa,
  5013. CountryCodeTn,
  5014. CountryCodeTr,
  5015. CountryCodeTm,
  5016. CountryCodeTc,
  5017. CountryCodeTv,
  5018. CountryCodeUg,
  5019. CountryCodeUa,
  5020. CountryCodeAe,
  5021. CountryCodeGb,
  5022. CountryCodeUs,
  5023. CountryCodeUm,
  5024. CountryCodeUy,
  5025. CountryCodeUz,
  5026. CountryCodeVu,
  5027. CountryCodeVe,
  5028. CountryCodeVn,
  5029. CountryCodeVg,
  5030. CountryCodeWf,
  5031. CountryCodeEh,
  5032. CountryCodeYe,
  5033. CountryCodeZm,
  5034. CountryCodeZw,
  5035. CountryCodeZz,
  5036. }
  5037. func (e CountryCode) IsValid() bool {
  5038. switch e {
  5039. case CountryCodeAf, CountryCodeAx, CountryCodeAl, CountryCodeDz, CountryCodeAd, CountryCodeAo, CountryCodeAi, CountryCodeAg, CountryCodeAr, CountryCodeAm, CountryCodeAw, CountryCodeAc, CountryCodeAu, CountryCodeAt, CountryCodeAz, CountryCodeBs, CountryCodeBh, CountryCodeBd, CountryCodeBb, CountryCodeBy, CountryCodeBe, CountryCodeBz, CountryCodeBj, CountryCodeBm, CountryCodeBt, CountryCodeBo, CountryCodeBa, CountryCodeBw, CountryCodeBv, CountryCodeBr, CountryCodeIo, CountryCodeBn, CountryCodeBg, CountryCodeBf, CountryCodeBi, CountryCodeKh, CountryCodeCa, CountryCodeCv, CountryCodeBq, CountryCodeKy, CountryCodeCf, CountryCodeTd, CountryCodeCl, CountryCodeCn, CountryCodeCx, CountryCodeCc, CountryCodeCo, CountryCodeKm, CountryCodeCg, CountryCodeCd, CountryCodeCk, CountryCodeCr, CountryCodeHr, CountryCodeCu, CountryCodeCw, CountryCodeCy, CountryCodeCz, CountryCodeCi, CountryCodeDk, CountryCodeDj, CountryCodeDm, CountryCodeDo, CountryCodeEc, CountryCodeEg, CountryCodeSv, CountryCodeGq, CountryCodeEr, CountryCodeEe, CountryCodeSz, CountryCodeEt, CountryCodeFk, CountryCodeFo, CountryCodeFj, CountryCodeFi, CountryCodeFr, CountryCodeGf, CountryCodePf, CountryCodeTf, CountryCodeGa, CountryCodeGm, CountryCodeGe, CountryCodeDe, CountryCodeGh, CountryCodeGi, CountryCodeGr, CountryCodeGl, CountryCodeGd, CountryCodeGp, CountryCodeGt, CountryCodeGg, CountryCodeGn, CountryCodeGw, CountryCodeGy, CountryCodeHt, CountryCodeHm, CountryCodeVa, CountryCodeHn, CountryCodeHk, CountryCodeHu, CountryCodeIs, CountryCodeIn, CountryCodeID, CountryCodeIr, CountryCodeIq, CountryCodeIe, CountryCodeIm, CountryCodeIl, CountryCodeIt, CountryCodeJm, CountryCodeJp, CountryCodeJe, CountryCodeJo, CountryCodeKz, CountryCodeKe, CountryCodeKi, CountryCodeKp, CountryCodeXk, CountryCodeKw, CountryCodeKg, CountryCodeLa, CountryCodeLv, CountryCodeLb, CountryCodeLs, CountryCodeLr, CountryCodeLy, CountryCodeLi, CountryCodeLt, CountryCodeLu, CountryCodeMo, CountryCodeMg, CountryCodeMw, CountryCodeMy, CountryCodeMv, CountryCodeMl, CountryCodeMt, CountryCodeMq, CountryCodeMr, CountryCodeMu, CountryCodeYt, CountryCodeMx, CountryCodeMd, CountryCodeMc, CountryCodeMn, CountryCodeMe, CountryCodeMs, CountryCodeMa, CountryCodeMz, CountryCodeMm, CountryCodeNa, CountryCodeNr, CountryCodeNp, CountryCodeNl, CountryCodeAn, CountryCodeNc, CountryCodeNz, CountryCodeNi, CountryCodeNe, CountryCodeNg, CountryCodeNu, CountryCodeNf, CountryCodeMk, CountryCodeNo, CountryCodeOm, CountryCodePk, CountryCodePs, CountryCodePa, CountryCodePg, CountryCodePy, CountryCodePe, CountryCodePh, CountryCodePn, CountryCodePl, CountryCodePt, CountryCodeQa, CountryCodeCm, CountryCodeRe, CountryCodeRo, CountryCodeRu, CountryCodeRw, CountryCodeBl, CountryCodeSh, CountryCodeKn, CountryCodeLc, CountryCodeMf, CountryCodePm, CountryCodeWs, CountryCodeSm, CountryCodeSt, CountryCodeSa, CountryCodeSn, CountryCodeRs, CountryCodeSc, CountryCodeSl, CountryCodeSg, CountryCodeSx, CountryCodeSk, CountryCodeSi, CountryCodeSb, CountryCodeSo, CountryCodeZa, CountryCodeGs, CountryCodeKr, CountryCodeSs, CountryCodeEs, CountryCodeLk, CountryCodeVc, CountryCodeSd, CountryCodeSr, CountryCodeSj, CountryCodeSe, CountryCodeCh, CountryCodeSy, CountryCodeTw, CountryCodeTj, CountryCodeTz, CountryCodeTh, CountryCodeTl, CountryCodeTg, CountryCodeTk, CountryCodeTo, CountryCodeTt, CountryCodeTa, CountryCodeTn, CountryCodeTr, CountryCodeTm, CountryCodeTc, CountryCodeTv, CountryCodeUg, CountryCodeUa, CountryCodeAe, CountryCodeGb, CountryCodeUs, CountryCodeUm, CountryCodeUy, CountryCodeUz, CountryCodeVu, CountryCodeVe, CountryCodeVn, CountryCodeVg, CountryCodeWf, CountryCodeEh, CountryCodeYe, CountryCodeZm, CountryCodeZw, CountryCodeZz:
  5040. return true
  5041. }
  5042. return false
  5043. }
  5044. func (e CountryCode) String() string {
  5045. return string(e)
  5046. }
  5047. func (e *CountryCode) UnmarshalGQL(v interface{}) error {
  5048. str, ok := v.(string)
  5049. if !ok {
  5050. return fmt.Errorf("enums must be strings")
  5051. }
  5052. *e = CountryCode(str)
  5053. if !e.IsValid() {
  5054. return fmt.Errorf("%s is not a valid CountryCode", str)
  5055. }
  5056. return nil
  5057. }
  5058. func (e CountryCode) MarshalGQL(w io.Writer) {
  5059. fmt.Fprint(w, strconv.Quote(e.String()))
  5060. }
  5061. type CropRegion string
  5062. const (
  5063. CropRegionCenter CropRegion = "CENTER"
  5064. CropRegionTop CropRegion = "TOP"
  5065. CropRegionBottom CropRegion = "BOTTOM"
  5066. CropRegionLeft CropRegion = "LEFT"
  5067. CropRegionRight CropRegion = "RIGHT"
  5068. )
  5069. var AllCropRegion = []CropRegion{
  5070. CropRegionCenter,
  5071. CropRegionTop,
  5072. CropRegionBottom,
  5073. CropRegionLeft,
  5074. CropRegionRight,
  5075. }
  5076. func (e CropRegion) IsValid() bool {
  5077. switch e {
  5078. case CropRegionCenter, CropRegionTop, CropRegionBottom, CropRegionLeft, CropRegionRight:
  5079. return true
  5080. }
  5081. return false
  5082. }
  5083. func (e CropRegion) String() string {
  5084. return string(e)
  5085. }
  5086. func (e *CropRegion) UnmarshalGQL(v interface{}) error {
  5087. str, ok := v.(string)
  5088. if !ok {
  5089. return fmt.Errorf("enums must be strings")
  5090. }
  5091. *e = CropRegion(str)
  5092. if !e.IsValid() {
  5093. return fmt.Errorf("%s is not a valid CropRegion", str)
  5094. }
  5095. return nil
  5096. }
  5097. func (e CropRegion) MarshalGQL(w io.Writer) {
  5098. fmt.Fprint(w, strconv.Quote(e.String()))
  5099. }
  5100. type CurrencyCode string
  5101. const (
  5102. CurrencyCodeAed CurrencyCode = "AED"
  5103. CurrencyCodeAfn CurrencyCode = "AFN"
  5104. CurrencyCodeAll CurrencyCode = "ALL"
  5105. CurrencyCodeAmd CurrencyCode = "AMD"
  5106. CurrencyCodeAng CurrencyCode = "ANG"
  5107. CurrencyCodeAoa CurrencyCode = "AOA"
  5108. CurrencyCodeArs CurrencyCode = "ARS"
  5109. CurrencyCodeAud CurrencyCode = "AUD"
  5110. CurrencyCodeAwg CurrencyCode = "AWG"
  5111. CurrencyCodeAzn CurrencyCode = "AZN"
  5112. CurrencyCodeBam CurrencyCode = "BAM"
  5113. CurrencyCodeBbd CurrencyCode = "BBD"
  5114. CurrencyCodeBdt CurrencyCode = "BDT"
  5115. CurrencyCodeBgn CurrencyCode = "BGN"
  5116. CurrencyCodeBhd CurrencyCode = "BHD"
  5117. CurrencyCodeBif CurrencyCode = "BIF"
  5118. CurrencyCodeBmd CurrencyCode = "BMD"
  5119. CurrencyCodeBnd CurrencyCode = "BND"
  5120. CurrencyCodeBob CurrencyCode = "BOB"
  5121. CurrencyCodeBrl CurrencyCode = "BRL"
  5122. CurrencyCodeBsd CurrencyCode = "BSD"
  5123. CurrencyCodeBtn CurrencyCode = "BTN"
  5124. CurrencyCodeBwp CurrencyCode = "BWP"
  5125. CurrencyCodeByn CurrencyCode = "BYN"
  5126. CurrencyCodeBzd CurrencyCode = "BZD"
  5127. CurrencyCodeCad CurrencyCode = "CAD"
  5128. CurrencyCodeCdf CurrencyCode = "CDF"
  5129. CurrencyCodeChf CurrencyCode = "CHF"
  5130. CurrencyCodeClp CurrencyCode = "CLP"
  5131. CurrencyCodeCny CurrencyCode = "CNY"
  5132. CurrencyCodeCop CurrencyCode = "COP"
  5133. CurrencyCodeCrc CurrencyCode = "CRC"
  5134. CurrencyCodeCve CurrencyCode = "CVE"
  5135. CurrencyCodeCzk CurrencyCode = "CZK"
  5136. CurrencyCodeDjf CurrencyCode = "DJF"
  5137. CurrencyCodeDkk CurrencyCode = "DKK"
  5138. CurrencyCodeDop CurrencyCode = "DOP"
  5139. CurrencyCodeDzd CurrencyCode = "DZD"
  5140. CurrencyCodeEgp CurrencyCode = "EGP"
  5141. CurrencyCodeErn CurrencyCode = "ERN"
  5142. CurrencyCodeEtb CurrencyCode = "ETB"
  5143. CurrencyCodeEur CurrencyCode = "EUR"
  5144. CurrencyCodeFjd CurrencyCode = "FJD"
  5145. CurrencyCodeFkp CurrencyCode = "FKP"
  5146. CurrencyCodeGbp CurrencyCode = "GBP"
  5147. CurrencyCodeGel CurrencyCode = "GEL"
  5148. CurrencyCodeGhs CurrencyCode = "GHS"
  5149. CurrencyCodeGip CurrencyCode = "GIP"
  5150. CurrencyCodeGmd CurrencyCode = "GMD"
  5151. CurrencyCodeGnf CurrencyCode = "GNF"
  5152. CurrencyCodeGtq CurrencyCode = "GTQ"
  5153. CurrencyCodeGyd CurrencyCode = "GYD"
  5154. CurrencyCodeHkd CurrencyCode = "HKD"
  5155. CurrencyCodeHnl CurrencyCode = "HNL"
  5156. CurrencyCodeHrk CurrencyCode = "HRK"
  5157. CurrencyCodeHtg CurrencyCode = "HTG"
  5158. CurrencyCodeHuf CurrencyCode = "HUF"
  5159. CurrencyCodeIDR CurrencyCode = "IDR"
  5160. CurrencyCodeIls CurrencyCode = "ILS"
  5161. CurrencyCodeInr CurrencyCode = "INR"
  5162. CurrencyCodeIqd CurrencyCode = "IQD"
  5163. CurrencyCodeIrr CurrencyCode = "IRR"
  5164. CurrencyCodeIsk CurrencyCode = "ISK"
  5165. CurrencyCodeJep CurrencyCode = "JEP"
  5166. CurrencyCodeJmd CurrencyCode = "JMD"
  5167. CurrencyCodeJod CurrencyCode = "JOD"
  5168. CurrencyCodeJpy CurrencyCode = "JPY"
  5169. CurrencyCodeKes CurrencyCode = "KES"
  5170. CurrencyCodeKgs CurrencyCode = "KGS"
  5171. CurrencyCodeKhr CurrencyCode = "KHR"
  5172. CurrencyCodeKid CurrencyCode = "KID"
  5173. CurrencyCodeKmf CurrencyCode = "KMF"
  5174. CurrencyCodeKrw CurrencyCode = "KRW"
  5175. CurrencyCodeKwd CurrencyCode = "KWD"
  5176. CurrencyCodeKyd CurrencyCode = "KYD"
  5177. CurrencyCodeKzt CurrencyCode = "KZT"
  5178. CurrencyCodeLak CurrencyCode = "LAK"
  5179. CurrencyCodeLbp CurrencyCode = "LBP"
  5180. CurrencyCodeLkr CurrencyCode = "LKR"
  5181. CurrencyCodeLrd CurrencyCode = "LRD"
  5182. CurrencyCodeLsl CurrencyCode = "LSL"
  5183. CurrencyCodeLtl CurrencyCode = "LTL"
  5184. CurrencyCodeLvl CurrencyCode = "LVL"
  5185. CurrencyCodeLyd CurrencyCode = "LYD"
  5186. CurrencyCodeMad CurrencyCode = "MAD"
  5187. CurrencyCodeMdl CurrencyCode = "MDL"
  5188. CurrencyCodeMga CurrencyCode = "MGA"
  5189. CurrencyCodeMkd CurrencyCode = "MKD"
  5190. CurrencyCodeMmk CurrencyCode = "MMK"
  5191. CurrencyCodeMnt CurrencyCode = "MNT"
  5192. CurrencyCodeMop CurrencyCode = "MOP"
  5193. CurrencyCodeMru CurrencyCode = "MRU"
  5194. CurrencyCodeMur CurrencyCode = "MUR"
  5195. CurrencyCodeMvr CurrencyCode = "MVR"
  5196. CurrencyCodeMwk CurrencyCode = "MWK"
  5197. CurrencyCodeMxn CurrencyCode = "MXN"
  5198. CurrencyCodeMyr CurrencyCode = "MYR"
  5199. CurrencyCodeMzn CurrencyCode = "MZN"
  5200. CurrencyCodeNad CurrencyCode = "NAD"
  5201. CurrencyCodeNgn CurrencyCode = "NGN"
  5202. CurrencyCodeNio CurrencyCode = "NIO"
  5203. CurrencyCodeNok CurrencyCode = "NOK"
  5204. CurrencyCodeNpr CurrencyCode = "NPR"
  5205. CurrencyCodeNzd CurrencyCode = "NZD"
  5206. CurrencyCodeOmr CurrencyCode = "OMR"
  5207. CurrencyCodePab CurrencyCode = "PAB"
  5208. CurrencyCodePen CurrencyCode = "PEN"
  5209. CurrencyCodePgk CurrencyCode = "PGK"
  5210. CurrencyCodePhp CurrencyCode = "PHP"
  5211. CurrencyCodePkr CurrencyCode = "PKR"
  5212. CurrencyCodePln CurrencyCode = "PLN"
  5213. CurrencyCodePyg CurrencyCode = "PYG"
  5214. CurrencyCodeQar CurrencyCode = "QAR"
  5215. CurrencyCodeRon CurrencyCode = "RON"
  5216. CurrencyCodeRsd CurrencyCode = "RSD"
  5217. CurrencyCodeRub CurrencyCode = "RUB"
  5218. CurrencyCodeRwf CurrencyCode = "RWF"
  5219. CurrencyCodeSar CurrencyCode = "SAR"
  5220. CurrencyCodeSbd CurrencyCode = "SBD"
  5221. CurrencyCodeScr CurrencyCode = "SCR"
  5222. CurrencyCodeSdg CurrencyCode = "SDG"
  5223. CurrencyCodeSek CurrencyCode = "SEK"
  5224. CurrencyCodeSgd CurrencyCode = "SGD"
  5225. CurrencyCodeShp CurrencyCode = "SHP"
  5226. CurrencyCodeSll CurrencyCode = "SLL"
  5227. CurrencyCodeSos CurrencyCode = "SOS"
  5228. CurrencyCodeSrd CurrencyCode = "SRD"
  5229. CurrencyCodeSsp CurrencyCode = "SSP"
  5230. CurrencyCodeStn CurrencyCode = "STN"
  5231. CurrencyCodeSyp CurrencyCode = "SYP"
  5232. CurrencyCodeSzl CurrencyCode = "SZL"
  5233. CurrencyCodeThb CurrencyCode = "THB"
  5234. CurrencyCodeTjs CurrencyCode = "TJS"
  5235. CurrencyCodeTmt CurrencyCode = "TMT"
  5236. CurrencyCodeTnd CurrencyCode = "TND"
  5237. CurrencyCodeTop CurrencyCode = "TOP"
  5238. CurrencyCodeTry CurrencyCode = "TRY"
  5239. CurrencyCodeTtd CurrencyCode = "TTD"
  5240. CurrencyCodeTwd CurrencyCode = "TWD"
  5241. CurrencyCodeTzs CurrencyCode = "TZS"
  5242. CurrencyCodeUah CurrencyCode = "UAH"
  5243. CurrencyCodeUgx CurrencyCode = "UGX"
  5244. CurrencyCodeUsd CurrencyCode = "USD"
  5245. CurrencyCodeUyu CurrencyCode = "UYU"
  5246. CurrencyCodeUzs CurrencyCode = "UZS"
  5247. CurrencyCodeVed CurrencyCode = "VED"
  5248. CurrencyCodeVes CurrencyCode = "VES"
  5249. CurrencyCodeVnd CurrencyCode = "VND"
  5250. CurrencyCodeVuv CurrencyCode = "VUV"
  5251. CurrencyCodeWst CurrencyCode = "WST"
  5252. CurrencyCodeXaf CurrencyCode = "XAF"
  5253. CurrencyCodeXcd CurrencyCode = "XCD"
  5254. CurrencyCodeXof CurrencyCode = "XOF"
  5255. CurrencyCodeXpf CurrencyCode = "XPF"
  5256. CurrencyCodeXxx CurrencyCode = "XXX"
  5257. CurrencyCodeYer CurrencyCode = "YER"
  5258. CurrencyCodeZar CurrencyCode = "ZAR"
  5259. CurrencyCodeZmw CurrencyCode = "ZMW"
  5260. CurrencyCodeByr CurrencyCode = "BYR"
  5261. )
  5262. var AllCurrencyCode = []CurrencyCode{
  5263. CurrencyCodeAed,
  5264. CurrencyCodeAfn,
  5265. CurrencyCodeAll,
  5266. CurrencyCodeAmd,
  5267. CurrencyCodeAng,
  5268. CurrencyCodeAoa,
  5269. CurrencyCodeArs,
  5270. CurrencyCodeAud,
  5271. CurrencyCodeAwg,
  5272. CurrencyCodeAzn,
  5273. CurrencyCodeBam,
  5274. CurrencyCodeBbd,
  5275. CurrencyCodeBdt,
  5276. CurrencyCodeBgn,
  5277. CurrencyCodeBhd,
  5278. CurrencyCodeBif,
  5279. CurrencyCodeBmd,
  5280. CurrencyCodeBnd,
  5281. CurrencyCodeBob,
  5282. CurrencyCodeBrl,
  5283. CurrencyCodeBsd,
  5284. CurrencyCodeBtn,
  5285. CurrencyCodeBwp,
  5286. CurrencyCodeByn,
  5287. CurrencyCodeBzd,
  5288. CurrencyCodeCad,
  5289. CurrencyCodeCdf,
  5290. CurrencyCodeChf,
  5291. CurrencyCodeClp,
  5292. CurrencyCodeCny,
  5293. CurrencyCodeCop,
  5294. CurrencyCodeCrc,
  5295. CurrencyCodeCve,
  5296. CurrencyCodeCzk,
  5297. CurrencyCodeDjf,
  5298. CurrencyCodeDkk,
  5299. CurrencyCodeDop,
  5300. CurrencyCodeDzd,
  5301. CurrencyCodeEgp,
  5302. CurrencyCodeErn,
  5303. CurrencyCodeEtb,
  5304. CurrencyCodeEur,
  5305. CurrencyCodeFjd,
  5306. CurrencyCodeFkp,
  5307. CurrencyCodeGbp,
  5308. CurrencyCodeGel,
  5309. CurrencyCodeGhs,
  5310. CurrencyCodeGip,
  5311. CurrencyCodeGmd,
  5312. CurrencyCodeGnf,
  5313. CurrencyCodeGtq,
  5314. CurrencyCodeGyd,
  5315. CurrencyCodeHkd,
  5316. CurrencyCodeHnl,
  5317. CurrencyCodeHrk,
  5318. CurrencyCodeHtg,
  5319. CurrencyCodeHuf,
  5320. CurrencyCodeIDR,
  5321. CurrencyCodeIls,
  5322. CurrencyCodeInr,
  5323. CurrencyCodeIqd,
  5324. CurrencyCodeIrr,
  5325. CurrencyCodeIsk,
  5326. CurrencyCodeJep,
  5327. CurrencyCodeJmd,
  5328. CurrencyCodeJod,
  5329. CurrencyCodeJpy,
  5330. CurrencyCodeKes,
  5331. CurrencyCodeKgs,
  5332. CurrencyCodeKhr,
  5333. CurrencyCodeKid,
  5334. CurrencyCodeKmf,
  5335. CurrencyCodeKrw,
  5336. CurrencyCodeKwd,
  5337. CurrencyCodeKyd,
  5338. CurrencyCodeKzt,
  5339. CurrencyCodeLak,
  5340. CurrencyCodeLbp,
  5341. CurrencyCodeLkr,
  5342. CurrencyCodeLrd,
  5343. CurrencyCodeLsl,
  5344. CurrencyCodeLtl,
  5345. CurrencyCodeLvl,
  5346. CurrencyCodeLyd,
  5347. CurrencyCodeMad,
  5348. CurrencyCodeMdl,
  5349. CurrencyCodeMga,
  5350. CurrencyCodeMkd,
  5351. CurrencyCodeMmk,
  5352. CurrencyCodeMnt,
  5353. CurrencyCodeMop,
  5354. CurrencyCodeMru,
  5355. CurrencyCodeMur,
  5356. CurrencyCodeMvr,
  5357. CurrencyCodeMwk,
  5358. CurrencyCodeMxn,
  5359. CurrencyCodeMyr,
  5360. CurrencyCodeMzn,
  5361. CurrencyCodeNad,
  5362. CurrencyCodeNgn,
  5363. CurrencyCodeNio,
  5364. CurrencyCodeNok,
  5365. CurrencyCodeNpr,
  5366. CurrencyCodeNzd,
  5367. CurrencyCodeOmr,
  5368. CurrencyCodePab,
  5369. CurrencyCodePen,
  5370. CurrencyCodePgk,
  5371. CurrencyCodePhp,
  5372. CurrencyCodePkr,
  5373. CurrencyCodePln,
  5374. CurrencyCodePyg,
  5375. CurrencyCodeQar,
  5376. CurrencyCodeRon,
  5377. CurrencyCodeRsd,
  5378. CurrencyCodeRub,
  5379. CurrencyCodeRwf,
  5380. CurrencyCodeSar,
  5381. CurrencyCodeSbd,
  5382. CurrencyCodeScr,
  5383. CurrencyCodeSdg,
  5384. CurrencyCodeSek,
  5385. CurrencyCodeSgd,
  5386. CurrencyCodeShp,
  5387. CurrencyCodeSll,
  5388. CurrencyCodeSos,
  5389. CurrencyCodeSrd,
  5390. CurrencyCodeSsp,
  5391. CurrencyCodeStn,
  5392. CurrencyCodeSyp,
  5393. CurrencyCodeSzl,
  5394. CurrencyCodeThb,
  5395. CurrencyCodeTjs,
  5396. CurrencyCodeTmt,
  5397. CurrencyCodeTnd,
  5398. CurrencyCodeTop,
  5399. CurrencyCodeTry,
  5400. CurrencyCodeTtd,
  5401. CurrencyCodeTwd,
  5402. CurrencyCodeTzs,
  5403. CurrencyCodeUah,
  5404. CurrencyCodeUgx,
  5405. CurrencyCodeUsd,
  5406. CurrencyCodeUyu,
  5407. CurrencyCodeUzs,
  5408. CurrencyCodeVed,
  5409. CurrencyCodeVes,
  5410. CurrencyCodeVnd,
  5411. CurrencyCodeVuv,
  5412. CurrencyCodeWst,
  5413. CurrencyCodeXaf,
  5414. CurrencyCodeXcd,
  5415. CurrencyCodeXof,
  5416. CurrencyCodeXpf,
  5417. CurrencyCodeXxx,
  5418. CurrencyCodeYer,
  5419. CurrencyCodeZar,
  5420. CurrencyCodeZmw,
  5421. CurrencyCodeByr,
  5422. }
  5423. func (e CurrencyCode) IsValid() bool {
  5424. switch e {
  5425. case CurrencyCodeAed, CurrencyCodeAfn, CurrencyCodeAll, CurrencyCodeAmd, CurrencyCodeAng, CurrencyCodeAoa, CurrencyCodeArs, CurrencyCodeAud, CurrencyCodeAwg, CurrencyCodeAzn, CurrencyCodeBam, CurrencyCodeBbd, CurrencyCodeBdt, CurrencyCodeBgn, CurrencyCodeBhd, CurrencyCodeBif, CurrencyCodeBmd, CurrencyCodeBnd, CurrencyCodeBob, CurrencyCodeBrl, CurrencyCodeBsd, CurrencyCodeBtn, CurrencyCodeBwp, CurrencyCodeByn, CurrencyCodeBzd, CurrencyCodeCad, CurrencyCodeCdf, CurrencyCodeChf, CurrencyCodeClp, CurrencyCodeCny, CurrencyCodeCop, CurrencyCodeCrc, CurrencyCodeCve, CurrencyCodeCzk, CurrencyCodeDjf, CurrencyCodeDkk, CurrencyCodeDop, CurrencyCodeDzd, CurrencyCodeEgp, CurrencyCodeErn, CurrencyCodeEtb, CurrencyCodeEur, CurrencyCodeFjd, CurrencyCodeFkp, CurrencyCodeGbp, CurrencyCodeGel, CurrencyCodeGhs, CurrencyCodeGip, CurrencyCodeGmd, CurrencyCodeGnf, CurrencyCodeGtq, CurrencyCodeGyd, CurrencyCodeHkd, CurrencyCodeHnl, CurrencyCodeHrk, CurrencyCodeHtg, CurrencyCodeHuf, CurrencyCodeIDR, CurrencyCodeIls, CurrencyCodeInr, CurrencyCodeIqd, CurrencyCodeIrr, CurrencyCodeIsk, CurrencyCodeJep, CurrencyCodeJmd, CurrencyCodeJod, CurrencyCodeJpy, CurrencyCodeKes, CurrencyCodeKgs, CurrencyCodeKhr, CurrencyCodeKid, CurrencyCodeKmf, CurrencyCodeKrw, CurrencyCodeKwd, CurrencyCodeKyd, CurrencyCodeKzt, CurrencyCodeLak, CurrencyCodeLbp, CurrencyCodeLkr, CurrencyCodeLrd, CurrencyCodeLsl, CurrencyCodeLtl, CurrencyCodeLvl, CurrencyCodeLyd, CurrencyCodeMad, CurrencyCodeMdl, CurrencyCodeMga, CurrencyCodeMkd, CurrencyCodeMmk, CurrencyCodeMnt, CurrencyCodeMop, CurrencyCodeMru, CurrencyCodeMur, CurrencyCodeMvr, CurrencyCodeMwk, CurrencyCodeMxn, CurrencyCodeMyr, CurrencyCodeMzn, CurrencyCodeNad, CurrencyCodeNgn, CurrencyCodeNio, CurrencyCodeNok, CurrencyCodeNpr, CurrencyCodeNzd, CurrencyCodeOmr, CurrencyCodePab, CurrencyCodePen, CurrencyCodePgk, CurrencyCodePhp, CurrencyCodePkr, CurrencyCodePln, CurrencyCodePyg, CurrencyCodeQar, CurrencyCodeRon, CurrencyCodeRsd, CurrencyCodeRub, CurrencyCodeRwf, CurrencyCodeSar, CurrencyCodeSbd, CurrencyCodeScr, CurrencyCodeSdg, CurrencyCodeSek, CurrencyCodeSgd, CurrencyCodeShp, CurrencyCodeSll, CurrencyCodeSos, CurrencyCodeSrd, CurrencyCodeSsp, CurrencyCodeStn, CurrencyCodeSyp, CurrencyCodeSzl, CurrencyCodeThb, CurrencyCodeTjs, CurrencyCodeTmt, CurrencyCodeTnd, CurrencyCodeTop, CurrencyCodeTry, CurrencyCodeTtd, CurrencyCodeTwd, CurrencyCodeTzs, CurrencyCodeUah, CurrencyCodeUgx, CurrencyCodeUsd, CurrencyCodeUyu, CurrencyCodeUzs, CurrencyCodeVed, CurrencyCodeVes, CurrencyCodeVnd, CurrencyCodeVuv, CurrencyCodeWst, CurrencyCodeXaf, CurrencyCodeXcd, CurrencyCodeXof, CurrencyCodeXpf, CurrencyCodeXxx, CurrencyCodeYer, CurrencyCodeZar, CurrencyCodeZmw, CurrencyCodeByr:
  5426. return true
  5427. }
  5428. return false
  5429. }
  5430. func (e CurrencyCode) String() string {
  5431. return string(e)
  5432. }
  5433. func (e *CurrencyCode) UnmarshalGQL(v interface{}) error {
  5434. str, ok := v.(string)
  5435. if !ok {
  5436. return fmt.Errorf("enums must be strings")
  5437. }
  5438. *e = CurrencyCode(str)
  5439. if !e.IsValid() {
  5440. return fmt.Errorf("%s is not a valid CurrencyCode", str)
  5441. }
  5442. return nil
  5443. }
  5444. func (e CurrencyCode) MarshalGQL(w io.Writer) {
  5445. fmt.Fprint(w, strconv.Quote(e.String()))
  5446. }
  5447. type CustomerConsentCollectedFrom string
  5448. const (
  5449. CustomerConsentCollectedFromShopify CustomerConsentCollectedFrom = "SHOPIFY"
  5450. CustomerConsentCollectedFromOther CustomerConsentCollectedFrom = "OTHER"
  5451. )
  5452. var AllCustomerConsentCollectedFrom = []CustomerConsentCollectedFrom{
  5453. CustomerConsentCollectedFromShopify,
  5454. CustomerConsentCollectedFromOther,
  5455. }
  5456. func (e CustomerConsentCollectedFrom) IsValid() bool {
  5457. switch e {
  5458. case CustomerConsentCollectedFromShopify, CustomerConsentCollectedFromOther:
  5459. return true
  5460. }
  5461. return false
  5462. }
  5463. func (e CustomerConsentCollectedFrom) String() string {
  5464. return string(e)
  5465. }
  5466. func (e *CustomerConsentCollectedFrom) UnmarshalGQL(v interface{}) error {
  5467. str, ok := v.(string)
  5468. if !ok {
  5469. return fmt.Errorf("enums must be strings")
  5470. }
  5471. *e = CustomerConsentCollectedFrom(str)
  5472. if !e.IsValid() {
  5473. return fmt.Errorf("%s is not a valid CustomerConsentCollectedFrom", str)
  5474. }
  5475. return nil
  5476. }
  5477. func (e CustomerConsentCollectedFrom) MarshalGQL(w io.Writer) {
  5478. fmt.Fprint(w, strconv.Quote(e.String()))
  5479. }
  5480. type CustomerEmailMarketingState string
  5481. const (
  5482. CustomerEmailMarketingStateNotSubscribed CustomerEmailMarketingState = "NOT_SUBSCRIBED"
  5483. CustomerEmailMarketingStatePending CustomerEmailMarketingState = "PENDING"
  5484. CustomerEmailMarketingStateSubscribed CustomerEmailMarketingState = "SUBSCRIBED"
  5485. CustomerEmailMarketingStateUnsubscribed CustomerEmailMarketingState = "UNSUBSCRIBED"
  5486. CustomerEmailMarketingStateRedacted CustomerEmailMarketingState = "REDACTED"
  5487. CustomerEmailMarketingStateInvalid CustomerEmailMarketingState = "INVALID"
  5488. )
  5489. var AllCustomerEmailMarketingState = []CustomerEmailMarketingState{
  5490. CustomerEmailMarketingStateNotSubscribed,
  5491. CustomerEmailMarketingStatePending,
  5492. CustomerEmailMarketingStateSubscribed,
  5493. CustomerEmailMarketingStateUnsubscribed,
  5494. CustomerEmailMarketingStateRedacted,
  5495. CustomerEmailMarketingStateInvalid,
  5496. }
  5497. func (e CustomerEmailMarketingState) IsValid() bool {
  5498. switch e {
  5499. case CustomerEmailMarketingStateNotSubscribed, CustomerEmailMarketingStatePending, CustomerEmailMarketingStateSubscribed, CustomerEmailMarketingStateUnsubscribed, CustomerEmailMarketingStateRedacted, CustomerEmailMarketingStateInvalid:
  5500. return true
  5501. }
  5502. return false
  5503. }
  5504. func (e CustomerEmailMarketingState) String() string {
  5505. return string(e)
  5506. }
  5507. func (e *CustomerEmailMarketingState) UnmarshalGQL(v interface{}) error {
  5508. str, ok := v.(string)
  5509. if !ok {
  5510. return fmt.Errorf("enums must be strings")
  5511. }
  5512. *e = CustomerEmailMarketingState(str)
  5513. if !e.IsValid() {
  5514. return fmt.Errorf("%s is not a valid CustomerEmailMarketingState", str)
  5515. }
  5516. return nil
  5517. }
  5518. func (e CustomerEmailMarketingState) MarshalGQL(w io.Writer) {
  5519. fmt.Fprint(w, strconv.Quote(e.String()))
  5520. }
  5521. type CustomerMarketingOptInLevel string
  5522. const (
  5523. CustomerMarketingOptInLevelSingleOptIn CustomerMarketingOptInLevel = "SINGLE_OPT_IN"
  5524. CustomerMarketingOptInLevelConfirmedOptIn CustomerMarketingOptInLevel = "CONFIRMED_OPT_IN"
  5525. CustomerMarketingOptInLevelUnknown CustomerMarketingOptInLevel = "UNKNOWN"
  5526. )
  5527. var AllCustomerMarketingOptInLevel = []CustomerMarketingOptInLevel{
  5528. CustomerMarketingOptInLevelSingleOptIn,
  5529. CustomerMarketingOptInLevelConfirmedOptIn,
  5530. CustomerMarketingOptInLevelUnknown,
  5531. }
  5532. func (e CustomerMarketingOptInLevel) IsValid() bool {
  5533. switch e {
  5534. case CustomerMarketingOptInLevelSingleOptIn, CustomerMarketingOptInLevelConfirmedOptIn, CustomerMarketingOptInLevelUnknown:
  5535. return true
  5536. }
  5537. return false
  5538. }
  5539. func (e CustomerMarketingOptInLevel) String() string {
  5540. return string(e)
  5541. }
  5542. func (e *CustomerMarketingOptInLevel) UnmarshalGQL(v interface{}) error {
  5543. str, ok := v.(string)
  5544. if !ok {
  5545. return fmt.Errorf("enums must be strings")
  5546. }
  5547. *e = CustomerMarketingOptInLevel(str)
  5548. if !e.IsValid() {
  5549. return fmt.Errorf("%s is not a valid CustomerMarketingOptInLevel", str)
  5550. }
  5551. return nil
  5552. }
  5553. func (e CustomerMarketingOptInLevel) MarshalGQL(w io.Writer) {
  5554. fmt.Fprint(w, strconv.Quote(e.String()))
  5555. }
  5556. type CustomerPaymentMethodRevocationReason string
  5557. const (
  5558. CustomerPaymentMethodRevocationReasonAuthorizeNetGatewayNotEnabled CustomerPaymentMethodRevocationReason = "AUTHORIZE_NET_GATEWAY_NOT_ENABLED"
  5559. CustomerPaymentMethodRevocationReasonAuthorizeNetReturnedNoPaymentMethod CustomerPaymentMethodRevocationReason = "AUTHORIZE_NET_RETURNED_NO_PAYMENT_METHOD"
  5560. CustomerPaymentMethodRevocationReasonFailedToUpdateCreditCard CustomerPaymentMethodRevocationReason = "FAILED_TO_UPDATE_CREDIT_CARD"
  5561. CustomerPaymentMethodRevocationReasonStripeAPIAuthenticationError CustomerPaymentMethodRevocationReason = "STRIPE_API_AUTHENTICATION_ERROR"
  5562. CustomerPaymentMethodRevocationReasonStripeAPIInvalidRequestError CustomerPaymentMethodRevocationReason = "STRIPE_API_INVALID_REQUEST_ERROR"
  5563. CustomerPaymentMethodRevocationReasonStripeGatewayNotEnabled CustomerPaymentMethodRevocationReason = "STRIPE_GATEWAY_NOT_ENABLED"
  5564. CustomerPaymentMethodRevocationReasonStripeReturnedNoPaymentMethod CustomerPaymentMethodRevocationReason = "STRIPE_RETURNED_NO_PAYMENT_METHOD"
  5565. CustomerPaymentMethodRevocationReasonStripePaymentMethodNotCard CustomerPaymentMethodRevocationReason = "STRIPE_PAYMENT_METHOD_NOT_CARD"
  5566. CustomerPaymentMethodRevocationReasonBraintreeAPIAuthenticationError CustomerPaymentMethodRevocationReason = "BRAINTREE_API_AUTHENTICATION_ERROR"
  5567. CustomerPaymentMethodRevocationReasonBraintreeGatewayNotEnabled CustomerPaymentMethodRevocationReason = "BRAINTREE_GATEWAY_NOT_ENABLED"
  5568. CustomerPaymentMethodRevocationReasonBraintreeReturnedNoPaymentMethod CustomerPaymentMethodRevocationReason = "BRAINTREE_RETURNED_NO_PAYMENT_METHOD"
  5569. CustomerPaymentMethodRevocationReasonBraintreePaymentMethodNotCard CustomerPaymentMethodRevocationReason = "BRAINTREE_PAYMENT_METHOD_NOT_CARD"
  5570. CustomerPaymentMethodRevocationReasonManuallyRevoked CustomerPaymentMethodRevocationReason = "MANUALLY_REVOKED"
  5571. CustomerPaymentMethodRevocationReasonMerged CustomerPaymentMethodRevocationReason = "MERGED"
  5572. )
  5573. var AllCustomerPaymentMethodRevocationReason = []CustomerPaymentMethodRevocationReason{
  5574. CustomerPaymentMethodRevocationReasonAuthorizeNetGatewayNotEnabled,
  5575. CustomerPaymentMethodRevocationReasonAuthorizeNetReturnedNoPaymentMethod,
  5576. CustomerPaymentMethodRevocationReasonFailedToUpdateCreditCard,
  5577. CustomerPaymentMethodRevocationReasonStripeAPIAuthenticationError,
  5578. CustomerPaymentMethodRevocationReasonStripeAPIInvalidRequestError,
  5579. CustomerPaymentMethodRevocationReasonStripeGatewayNotEnabled,
  5580. CustomerPaymentMethodRevocationReasonStripeReturnedNoPaymentMethod,
  5581. CustomerPaymentMethodRevocationReasonStripePaymentMethodNotCard,
  5582. CustomerPaymentMethodRevocationReasonBraintreeAPIAuthenticationError,
  5583. CustomerPaymentMethodRevocationReasonBraintreeGatewayNotEnabled,
  5584. CustomerPaymentMethodRevocationReasonBraintreeReturnedNoPaymentMethod,
  5585. CustomerPaymentMethodRevocationReasonBraintreePaymentMethodNotCard,
  5586. CustomerPaymentMethodRevocationReasonManuallyRevoked,
  5587. CustomerPaymentMethodRevocationReasonMerged,
  5588. }
  5589. func (e CustomerPaymentMethodRevocationReason) IsValid() bool {
  5590. switch e {
  5591. case CustomerPaymentMethodRevocationReasonAuthorizeNetGatewayNotEnabled, CustomerPaymentMethodRevocationReasonAuthorizeNetReturnedNoPaymentMethod, CustomerPaymentMethodRevocationReasonFailedToUpdateCreditCard, CustomerPaymentMethodRevocationReasonStripeAPIAuthenticationError, CustomerPaymentMethodRevocationReasonStripeAPIInvalidRequestError, CustomerPaymentMethodRevocationReasonStripeGatewayNotEnabled, CustomerPaymentMethodRevocationReasonStripeReturnedNoPaymentMethod, CustomerPaymentMethodRevocationReasonStripePaymentMethodNotCard, CustomerPaymentMethodRevocationReasonBraintreeAPIAuthenticationError, CustomerPaymentMethodRevocationReasonBraintreeGatewayNotEnabled, CustomerPaymentMethodRevocationReasonBraintreeReturnedNoPaymentMethod, CustomerPaymentMethodRevocationReasonBraintreePaymentMethodNotCard, CustomerPaymentMethodRevocationReasonManuallyRevoked, CustomerPaymentMethodRevocationReasonMerged:
  5592. return true
  5593. }
  5594. return false
  5595. }
  5596. func (e CustomerPaymentMethodRevocationReason) String() string {
  5597. return string(e)
  5598. }
  5599. func (e *CustomerPaymentMethodRevocationReason) UnmarshalGQL(v interface{}) error {
  5600. str, ok := v.(string)
  5601. if !ok {
  5602. return fmt.Errorf("enums must be strings")
  5603. }
  5604. *e = CustomerPaymentMethodRevocationReason(str)
  5605. if !e.IsValid() {
  5606. return fmt.Errorf("%s is not a valid CustomerPaymentMethodRevocationReason", str)
  5607. }
  5608. return nil
  5609. }
  5610. func (e CustomerPaymentMethodRevocationReason) MarshalGQL(w io.Writer) {
  5611. fmt.Fprint(w, strconv.Quote(e.String()))
  5612. }
  5613. type CustomerPredictedSpendTier string
  5614. const (
  5615. CustomerPredictedSpendTierHigh CustomerPredictedSpendTier = "HIGH"
  5616. CustomerPredictedSpendTierMedium CustomerPredictedSpendTier = "MEDIUM"
  5617. CustomerPredictedSpendTierLow CustomerPredictedSpendTier = "LOW"
  5618. )
  5619. var AllCustomerPredictedSpendTier = []CustomerPredictedSpendTier{
  5620. CustomerPredictedSpendTierHigh,
  5621. CustomerPredictedSpendTierMedium,
  5622. CustomerPredictedSpendTierLow,
  5623. }
  5624. func (e CustomerPredictedSpendTier) IsValid() bool {
  5625. switch e {
  5626. case CustomerPredictedSpendTierHigh, CustomerPredictedSpendTierMedium, CustomerPredictedSpendTierLow:
  5627. return true
  5628. }
  5629. return false
  5630. }
  5631. func (e CustomerPredictedSpendTier) String() string {
  5632. return string(e)
  5633. }
  5634. func (e *CustomerPredictedSpendTier) UnmarshalGQL(v interface{}) error {
  5635. str, ok := v.(string)
  5636. if !ok {
  5637. return fmt.Errorf("enums must be strings")
  5638. }
  5639. *e = CustomerPredictedSpendTier(str)
  5640. if !e.IsValid() {
  5641. return fmt.Errorf("%s is not a valid CustomerPredictedSpendTier", str)
  5642. }
  5643. return nil
  5644. }
  5645. func (e CustomerPredictedSpendTier) MarshalGQL(w io.Writer) {
  5646. fmt.Fprint(w, strconv.Quote(e.String()))
  5647. }
  5648. type CustomerProductSubscriberStatus string
  5649. const (
  5650. CustomerProductSubscriberStatusActive CustomerProductSubscriberStatus = "ACTIVE"
  5651. CustomerProductSubscriberStatusCancelled CustomerProductSubscriberStatus = "CANCELLED"
  5652. CustomerProductSubscriberStatusExpired CustomerProductSubscriberStatus = "EXPIRED"
  5653. CustomerProductSubscriberStatusFailed CustomerProductSubscriberStatus = "FAILED"
  5654. CustomerProductSubscriberStatusNeverSubscribed CustomerProductSubscriberStatus = "NEVER_SUBSCRIBED"
  5655. CustomerProductSubscriberStatusPaused CustomerProductSubscriberStatus = "PAUSED"
  5656. )
  5657. var AllCustomerProductSubscriberStatus = []CustomerProductSubscriberStatus{
  5658. CustomerProductSubscriberStatusActive,
  5659. CustomerProductSubscriberStatusCancelled,
  5660. CustomerProductSubscriberStatusExpired,
  5661. CustomerProductSubscriberStatusFailed,
  5662. CustomerProductSubscriberStatusNeverSubscribed,
  5663. CustomerProductSubscriberStatusPaused,
  5664. }
  5665. func (e CustomerProductSubscriberStatus) IsValid() bool {
  5666. switch e {
  5667. case CustomerProductSubscriberStatusActive, CustomerProductSubscriberStatusCancelled, CustomerProductSubscriberStatusExpired, CustomerProductSubscriberStatusFailed, CustomerProductSubscriberStatusNeverSubscribed, CustomerProductSubscriberStatusPaused:
  5668. return true
  5669. }
  5670. return false
  5671. }
  5672. func (e CustomerProductSubscriberStatus) String() string {
  5673. return string(e)
  5674. }
  5675. func (e *CustomerProductSubscriberStatus) UnmarshalGQL(v interface{}) error {
  5676. str, ok := v.(string)
  5677. if !ok {
  5678. return fmt.Errorf("enums must be strings")
  5679. }
  5680. *e = CustomerProductSubscriberStatus(str)
  5681. if !e.IsValid() {
  5682. return fmt.Errorf("%s is not a valid CustomerProductSubscriberStatus", str)
  5683. }
  5684. return nil
  5685. }
  5686. func (e CustomerProductSubscriberStatus) MarshalGQL(w io.Writer) {
  5687. fmt.Fprint(w, strconv.Quote(e.String()))
  5688. }
  5689. type CustomerSmsMarketingState string
  5690. const (
  5691. CustomerSmsMarketingStateNotSubscribed CustomerSmsMarketingState = "NOT_SUBSCRIBED"
  5692. CustomerSmsMarketingStatePending CustomerSmsMarketingState = "PENDING"
  5693. CustomerSmsMarketingStateSubscribed CustomerSmsMarketingState = "SUBSCRIBED"
  5694. CustomerSmsMarketingStateUnsubscribed CustomerSmsMarketingState = "UNSUBSCRIBED"
  5695. CustomerSmsMarketingStateRedacted CustomerSmsMarketingState = "REDACTED"
  5696. )
  5697. var AllCustomerSmsMarketingState = []CustomerSmsMarketingState{
  5698. CustomerSmsMarketingStateNotSubscribed,
  5699. CustomerSmsMarketingStatePending,
  5700. CustomerSmsMarketingStateSubscribed,
  5701. CustomerSmsMarketingStateUnsubscribed,
  5702. CustomerSmsMarketingStateRedacted,
  5703. }
  5704. func (e CustomerSmsMarketingState) IsValid() bool {
  5705. switch e {
  5706. case CustomerSmsMarketingStateNotSubscribed, CustomerSmsMarketingStatePending, CustomerSmsMarketingStateSubscribed, CustomerSmsMarketingStateUnsubscribed, CustomerSmsMarketingStateRedacted:
  5707. return true
  5708. }
  5709. return false
  5710. }
  5711. func (e CustomerSmsMarketingState) String() string {
  5712. return string(e)
  5713. }
  5714. func (e *CustomerSmsMarketingState) UnmarshalGQL(v interface{}) error {
  5715. str, ok := v.(string)
  5716. if !ok {
  5717. return fmt.Errorf("enums must be strings")
  5718. }
  5719. *e = CustomerSmsMarketingState(str)
  5720. if !e.IsValid() {
  5721. return fmt.Errorf("%s is not a valid CustomerSmsMarketingState", str)
  5722. }
  5723. return nil
  5724. }
  5725. func (e CustomerSmsMarketingState) MarshalGQL(w io.Writer) {
  5726. fmt.Fprint(w, strconv.Quote(e.String()))
  5727. }
  5728. type CustomerState string
  5729. const (
  5730. CustomerStateDeclined CustomerState = "DECLINED"
  5731. CustomerStateDisabled CustomerState = "DISABLED"
  5732. CustomerStateEnabled CustomerState = "ENABLED"
  5733. CustomerStateInvited CustomerState = "INVITED"
  5734. )
  5735. var AllCustomerState = []CustomerState{
  5736. CustomerStateDeclined,
  5737. CustomerStateDisabled,
  5738. CustomerStateEnabled,
  5739. CustomerStateInvited,
  5740. }
  5741. func (e CustomerState) IsValid() bool {
  5742. switch e {
  5743. case CustomerStateDeclined, CustomerStateDisabled, CustomerStateEnabled, CustomerStateInvited:
  5744. return true
  5745. }
  5746. return false
  5747. }
  5748. func (e CustomerState) String() string {
  5749. return string(e)
  5750. }
  5751. func (e *CustomerState) UnmarshalGQL(v interface{}) error {
  5752. str, ok := v.(string)
  5753. if !ok {
  5754. return fmt.Errorf("enums must be strings")
  5755. }
  5756. *e = CustomerState(str)
  5757. if !e.IsValid() {
  5758. return fmt.Errorf("%s is not a valid CustomerState", str)
  5759. }
  5760. return nil
  5761. }
  5762. func (e CustomerState) MarshalGQL(w io.Writer) {
  5763. fmt.Fprint(w, strconv.Quote(e.String()))
  5764. }
  5765. type DeliveryConditionField string
  5766. const (
  5767. DeliveryConditionFieldTotalWeight DeliveryConditionField = "TOTAL_WEIGHT"
  5768. DeliveryConditionFieldTotalPrice DeliveryConditionField = "TOTAL_PRICE"
  5769. )
  5770. var AllDeliveryConditionField = []DeliveryConditionField{
  5771. DeliveryConditionFieldTotalWeight,
  5772. DeliveryConditionFieldTotalPrice,
  5773. }
  5774. func (e DeliveryConditionField) IsValid() bool {
  5775. switch e {
  5776. case DeliveryConditionFieldTotalWeight, DeliveryConditionFieldTotalPrice:
  5777. return true
  5778. }
  5779. return false
  5780. }
  5781. func (e DeliveryConditionField) String() string {
  5782. return string(e)
  5783. }
  5784. func (e *DeliveryConditionField) UnmarshalGQL(v interface{}) error {
  5785. str, ok := v.(string)
  5786. if !ok {
  5787. return fmt.Errorf("enums must be strings")
  5788. }
  5789. *e = DeliveryConditionField(str)
  5790. if !e.IsValid() {
  5791. return fmt.Errorf("%s is not a valid DeliveryConditionField", str)
  5792. }
  5793. return nil
  5794. }
  5795. func (e DeliveryConditionField) MarshalGQL(w io.Writer) {
  5796. fmt.Fprint(w, strconv.Quote(e.String()))
  5797. }
  5798. type DeliveryConditionOperator string
  5799. const (
  5800. DeliveryConditionOperatorGreaterThanOrEqualTo DeliveryConditionOperator = "GREATER_THAN_OR_EQUAL_TO"
  5801. DeliveryConditionOperatorLessThanOrEqualTo DeliveryConditionOperator = "LESS_THAN_OR_EQUAL_TO"
  5802. )
  5803. var AllDeliveryConditionOperator = []DeliveryConditionOperator{
  5804. DeliveryConditionOperatorGreaterThanOrEqualTo,
  5805. DeliveryConditionOperatorLessThanOrEqualTo,
  5806. }
  5807. func (e DeliveryConditionOperator) IsValid() bool {
  5808. switch e {
  5809. case DeliveryConditionOperatorGreaterThanOrEqualTo, DeliveryConditionOperatorLessThanOrEqualTo:
  5810. return true
  5811. }
  5812. return false
  5813. }
  5814. func (e DeliveryConditionOperator) String() string {
  5815. return string(e)
  5816. }
  5817. func (e *DeliveryConditionOperator) UnmarshalGQL(v interface{}) error {
  5818. str, ok := v.(string)
  5819. if !ok {
  5820. return fmt.Errorf("enums must be strings")
  5821. }
  5822. *e = DeliveryConditionOperator(str)
  5823. if !e.IsValid() {
  5824. return fmt.Errorf("%s is not a valid DeliveryConditionOperator", str)
  5825. }
  5826. return nil
  5827. }
  5828. func (e DeliveryConditionOperator) MarshalGQL(w io.Writer) {
  5829. fmt.Fprint(w, strconv.Quote(e.String()))
  5830. }
  5831. type DeliveryMethodDefinitionType string
  5832. const (
  5833. DeliveryMethodDefinitionTypeMerchant DeliveryMethodDefinitionType = "MERCHANT"
  5834. DeliveryMethodDefinitionTypeParticipant DeliveryMethodDefinitionType = "PARTICIPANT"
  5835. )
  5836. var AllDeliveryMethodDefinitionType = []DeliveryMethodDefinitionType{
  5837. DeliveryMethodDefinitionTypeMerchant,
  5838. DeliveryMethodDefinitionTypeParticipant,
  5839. }
  5840. func (e DeliveryMethodDefinitionType) IsValid() bool {
  5841. switch e {
  5842. case DeliveryMethodDefinitionTypeMerchant, DeliveryMethodDefinitionTypeParticipant:
  5843. return true
  5844. }
  5845. return false
  5846. }
  5847. func (e DeliveryMethodDefinitionType) String() string {
  5848. return string(e)
  5849. }
  5850. func (e *DeliveryMethodDefinitionType) UnmarshalGQL(v interface{}) error {
  5851. str, ok := v.(string)
  5852. if !ok {
  5853. return fmt.Errorf("enums must be strings")
  5854. }
  5855. *e = DeliveryMethodDefinitionType(str)
  5856. if !e.IsValid() {
  5857. return fmt.Errorf("%s is not a valid DeliveryMethodDefinitionType", str)
  5858. }
  5859. return nil
  5860. }
  5861. func (e DeliveryMethodDefinitionType) MarshalGQL(w io.Writer) {
  5862. fmt.Fprint(w, strconv.Quote(e.String()))
  5863. }
  5864. type DeliveryMethodType string
  5865. const (
  5866. DeliveryMethodTypeShipping DeliveryMethodType = "SHIPPING"
  5867. DeliveryMethodTypePickUp DeliveryMethodType = "PICK_UP"
  5868. DeliveryMethodTypeNone DeliveryMethodType = "NONE"
  5869. DeliveryMethodTypeRetail DeliveryMethodType = "RETAIL"
  5870. DeliveryMethodTypeLocal DeliveryMethodType = "LOCAL"
  5871. )
  5872. var AllDeliveryMethodType = []DeliveryMethodType{
  5873. DeliveryMethodTypeShipping,
  5874. DeliveryMethodTypePickUp,
  5875. DeliveryMethodTypeNone,
  5876. DeliveryMethodTypeRetail,
  5877. DeliveryMethodTypeLocal,
  5878. }
  5879. func (e DeliveryMethodType) IsValid() bool {
  5880. switch e {
  5881. case DeliveryMethodTypeShipping, DeliveryMethodTypePickUp, DeliveryMethodTypeNone, DeliveryMethodTypeRetail, DeliveryMethodTypeLocal:
  5882. return true
  5883. }
  5884. return false
  5885. }
  5886. func (e DeliveryMethodType) String() string {
  5887. return string(e)
  5888. }
  5889. func (e *DeliveryMethodType) UnmarshalGQL(v interface{}) error {
  5890. str, ok := v.(string)
  5891. if !ok {
  5892. return fmt.Errorf("enums must be strings")
  5893. }
  5894. *e = DeliveryMethodType(str)
  5895. if !e.IsValid() {
  5896. return fmt.Errorf("%s is not a valid DeliveryMethodType", str)
  5897. }
  5898. return nil
  5899. }
  5900. func (e DeliveryMethodType) MarshalGQL(w io.Writer) {
  5901. fmt.Fprint(w, strconv.Quote(e.String()))
  5902. }
  5903. type DigitalWallet string
  5904. const (
  5905. DigitalWalletApplePay DigitalWallet = "APPLE_PAY"
  5906. DigitalWalletAndroidPay DigitalWallet = "ANDROID_PAY"
  5907. DigitalWalletGooglePay DigitalWallet = "GOOGLE_PAY"
  5908. DigitalWalletShopifyPay DigitalWallet = "SHOPIFY_PAY"
  5909. )
  5910. var AllDigitalWallet = []DigitalWallet{
  5911. DigitalWalletApplePay,
  5912. DigitalWalletAndroidPay,
  5913. DigitalWalletGooglePay,
  5914. DigitalWalletShopifyPay,
  5915. }
  5916. func (e DigitalWallet) IsValid() bool {
  5917. switch e {
  5918. case DigitalWalletApplePay, DigitalWalletAndroidPay, DigitalWalletGooglePay, DigitalWalletShopifyPay:
  5919. return true
  5920. }
  5921. return false
  5922. }
  5923. func (e DigitalWallet) String() string {
  5924. return string(e)
  5925. }
  5926. func (e *DigitalWallet) UnmarshalGQL(v interface{}) error {
  5927. str, ok := v.(string)
  5928. if !ok {
  5929. return fmt.Errorf("enums must be strings")
  5930. }
  5931. *e = DigitalWallet(str)
  5932. if !e.IsValid() {
  5933. return fmt.Errorf("%s is not a valid DigitalWallet", str)
  5934. }
  5935. return nil
  5936. }
  5937. func (e DigitalWallet) MarshalGQL(w io.Writer) {
  5938. fmt.Fprint(w, strconv.Quote(e.String()))
  5939. }
  5940. type DiscountApplicationAllocationMethod string
  5941. const (
  5942. DiscountApplicationAllocationMethodAcross DiscountApplicationAllocationMethod = "ACROSS"
  5943. DiscountApplicationAllocationMethodEach DiscountApplicationAllocationMethod = "EACH"
  5944. )
  5945. var AllDiscountApplicationAllocationMethod = []DiscountApplicationAllocationMethod{
  5946. DiscountApplicationAllocationMethodAcross,
  5947. DiscountApplicationAllocationMethodEach,
  5948. }
  5949. func (e DiscountApplicationAllocationMethod) IsValid() bool {
  5950. switch e {
  5951. case DiscountApplicationAllocationMethodAcross, DiscountApplicationAllocationMethodEach:
  5952. return true
  5953. }
  5954. return false
  5955. }
  5956. func (e DiscountApplicationAllocationMethod) String() string {
  5957. return string(e)
  5958. }
  5959. func (e *DiscountApplicationAllocationMethod) UnmarshalGQL(v interface{}) error {
  5960. str, ok := v.(string)
  5961. if !ok {
  5962. return fmt.Errorf("enums must be strings")
  5963. }
  5964. *e = DiscountApplicationAllocationMethod(str)
  5965. if !e.IsValid() {
  5966. return fmt.Errorf("%s is not a valid DiscountApplicationAllocationMethod", str)
  5967. }
  5968. return nil
  5969. }
  5970. func (e DiscountApplicationAllocationMethod) MarshalGQL(w io.Writer) {
  5971. fmt.Fprint(w, strconv.Quote(e.String()))
  5972. }
  5973. type DiscountApplicationTargetSelection string
  5974. const (
  5975. DiscountApplicationTargetSelectionAll DiscountApplicationTargetSelection = "ALL"
  5976. DiscountApplicationTargetSelectionEntitled DiscountApplicationTargetSelection = "ENTITLED"
  5977. DiscountApplicationTargetSelectionExplicit DiscountApplicationTargetSelection = "EXPLICIT"
  5978. )
  5979. var AllDiscountApplicationTargetSelection = []DiscountApplicationTargetSelection{
  5980. DiscountApplicationTargetSelectionAll,
  5981. DiscountApplicationTargetSelectionEntitled,
  5982. DiscountApplicationTargetSelectionExplicit,
  5983. }
  5984. func (e DiscountApplicationTargetSelection) IsValid() bool {
  5985. switch e {
  5986. case DiscountApplicationTargetSelectionAll, DiscountApplicationTargetSelectionEntitled, DiscountApplicationTargetSelectionExplicit:
  5987. return true
  5988. }
  5989. return false
  5990. }
  5991. func (e DiscountApplicationTargetSelection) String() string {
  5992. return string(e)
  5993. }
  5994. func (e *DiscountApplicationTargetSelection) UnmarshalGQL(v interface{}) error {
  5995. str, ok := v.(string)
  5996. if !ok {
  5997. return fmt.Errorf("enums must be strings")
  5998. }
  5999. *e = DiscountApplicationTargetSelection(str)
  6000. if !e.IsValid() {
  6001. return fmt.Errorf("%s is not a valid DiscountApplicationTargetSelection", str)
  6002. }
  6003. return nil
  6004. }
  6005. func (e DiscountApplicationTargetSelection) MarshalGQL(w io.Writer) {
  6006. fmt.Fprint(w, strconv.Quote(e.String()))
  6007. }
  6008. type DiscountApplicationTargetType string
  6009. const (
  6010. DiscountApplicationTargetTypeLineItem DiscountApplicationTargetType = "LINE_ITEM"
  6011. DiscountApplicationTargetTypeShippingLine DiscountApplicationTargetType = "SHIPPING_LINE"
  6012. )
  6013. var AllDiscountApplicationTargetType = []DiscountApplicationTargetType{
  6014. DiscountApplicationTargetTypeLineItem,
  6015. DiscountApplicationTargetTypeShippingLine,
  6016. }
  6017. func (e DiscountApplicationTargetType) IsValid() bool {
  6018. switch e {
  6019. case DiscountApplicationTargetTypeLineItem, DiscountApplicationTargetTypeShippingLine:
  6020. return true
  6021. }
  6022. return false
  6023. }
  6024. func (e DiscountApplicationTargetType) String() string {
  6025. return string(e)
  6026. }
  6027. func (e *DiscountApplicationTargetType) UnmarshalGQL(v interface{}) error {
  6028. str, ok := v.(string)
  6029. if !ok {
  6030. return fmt.Errorf("enums must be strings")
  6031. }
  6032. *e = DiscountApplicationTargetType(str)
  6033. if !e.IsValid() {
  6034. return fmt.Errorf("%s is not a valid DiscountApplicationTargetType", str)
  6035. }
  6036. return nil
  6037. }
  6038. func (e DiscountApplicationTargetType) MarshalGQL(w io.Writer) {
  6039. fmt.Fprint(w, strconv.Quote(e.String()))
  6040. }
  6041. type DiscountTargetType string
  6042. const (
  6043. DiscountTargetTypeLineItem DiscountTargetType = "LINE_ITEM"
  6044. DiscountTargetTypeShippingLine DiscountTargetType = "SHIPPING_LINE"
  6045. )
  6046. var AllDiscountTargetType = []DiscountTargetType{
  6047. DiscountTargetTypeLineItem,
  6048. DiscountTargetTypeShippingLine,
  6049. }
  6050. func (e DiscountTargetType) IsValid() bool {
  6051. switch e {
  6052. case DiscountTargetTypeLineItem, DiscountTargetTypeShippingLine:
  6053. return true
  6054. }
  6055. return false
  6056. }
  6057. func (e DiscountTargetType) String() string {
  6058. return string(e)
  6059. }
  6060. func (e *DiscountTargetType) UnmarshalGQL(v interface{}) error {
  6061. str, ok := v.(string)
  6062. if !ok {
  6063. return fmt.Errorf("enums must be strings")
  6064. }
  6065. *e = DiscountTargetType(str)
  6066. if !e.IsValid() {
  6067. return fmt.Errorf("%s is not a valid DiscountTargetType", str)
  6068. }
  6069. return nil
  6070. }
  6071. func (e DiscountTargetType) MarshalGQL(w io.Writer) {
  6072. fmt.Fprint(w, strconv.Quote(e.String()))
  6073. }
  6074. type DiscountType string
  6075. const (
  6076. DiscountTypeManual DiscountType = "MANUAL"
  6077. DiscountTypeCodeDiscount DiscountType = "CODE_DISCOUNT"
  6078. )
  6079. var AllDiscountType = []DiscountType{
  6080. DiscountTypeManual,
  6081. DiscountTypeCodeDiscount,
  6082. }
  6083. func (e DiscountType) IsValid() bool {
  6084. switch e {
  6085. case DiscountTypeManual, DiscountTypeCodeDiscount:
  6086. return true
  6087. }
  6088. return false
  6089. }
  6090. func (e DiscountType) String() string {
  6091. return string(e)
  6092. }
  6093. func (e *DiscountType) UnmarshalGQL(v interface{}) error {
  6094. str, ok := v.(string)
  6095. if !ok {
  6096. return fmt.Errorf("enums must be strings")
  6097. }
  6098. *e = DiscountType(str)
  6099. if !e.IsValid() {
  6100. return fmt.Errorf("%s is not a valid DiscountType", str)
  6101. }
  6102. return nil
  6103. }
  6104. func (e DiscountType) MarshalGQL(w io.Writer) {
  6105. fmt.Fprint(w, strconv.Quote(e.String()))
  6106. }
  6107. type DisputeStatus string
  6108. const (
  6109. DisputeStatusNeedsResponse DisputeStatus = "NEEDS_RESPONSE"
  6110. DisputeStatusUnderReview DisputeStatus = "UNDER_REVIEW"
  6111. DisputeStatusChargeRefunded DisputeStatus = "CHARGE_REFUNDED"
  6112. DisputeStatusAccepted DisputeStatus = "ACCEPTED"
  6113. DisputeStatusWon DisputeStatus = "WON"
  6114. DisputeStatusLost DisputeStatus = "LOST"
  6115. )
  6116. var AllDisputeStatus = []DisputeStatus{
  6117. DisputeStatusNeedsResponse,
  6118. DisputeStatusUnderReview,
  6119. DisputeStatusChargeRefunded,
  6120. DisputeStatusAccepted,
  6121. DisputeStatusWon,
  6122. DisputeStatusLost,
  6123. }
  6124. func (e DisputeStatus) IsValid() bool {
  6125. switch e {
  6126. case DisputeStatusNeedsResponse, DisputeStatusUnderReview, DisputeStatusChargeRefunded, DisputeStatusAccepted, DisputeStatusWon, DisputeStatusLost:
  6127. return true
  6128. }
  6129. return false
  6130. }
  6131. func (e DisputeStatus) String() string {
  6132. return string(e)
  6133. }
  6134. func (e *DisputeStatus) UnmarshalGQL(v interface{}) error {
  6135. str, ok := v.(string)
  6136. if !ok {
  6137. return fmt.Errorf("enums must be strings")
  6138. }
  6139. *e = DisputeStatus(str)
  6140. if !e.IsValid() {
  6141. return fmt.Errorf("%s is not a valid DisputeStatus", str)
  6142. }
  6143. return nil
  6144. }
  6145. func (e DisputeStatus) MarshalGQL(w io.Writer) {
  6146. fmt.Fprint(w, strconv.Quote(e.String()))
  6147. }
  6148. type DisputeType string
  6149. const (
  6150. DisputeTypeChargeback DisputeType = "CHARGEBACK"
  6151. DisputeTypeInquiry DisputeType = "INQUIRY"
  6152. )
  6153. var AllDisputeType = []DisputeType{
  6154. DisputeTypeChargeback,
  6155. DisputeTypeInquiry,
  6156. }
  6157. func (e DisputeType) IsValid() bool {
  6158. switch e {
  6159. case DisputeTypeChargeback, DisputeTypeInquiry:
  6160. return true
  6161. }
  6162. return false
  6163. }
  6164. func (e DisputeType) String() string {
  6165. return string(e)
  6166. }
  6167. func (e *DisputeType) UnmarshalGQL(v interface{}) error {
  6168. str, ok := v.(string)
  6169. if !ok {
  6170. return fmt.Errorf("enums must be strings")
  6171. }
  6172. *e = DisputeType(str)
  6173. if !e.IsValid() {
  6174. return fmt.Errorf("%s is not a valid DisputeType", str)
  6175. }
  6176. return nil
  6177. }
  6178. func (e DisputeType) MarshalGQL(w io.Writer) {
  6179. fmt.Fprint(w, strconv.Quote(e.String()))
  6180. }
  6181. type DraftOrderAppliedDiscountType string
  6182. const (
  6183. DraftOrderAppliedDiscountTypeFixedAmount DraftOrderAppliedDiscountType = "FIXED_AMOUNT"
  6184. DraftOrderAppliedDiscountTypePercentage DraftOrderAppliedDiscountType = "PERCENTAGE"
  6185. )
  6186. var AllDraftOrderAppliedDiscountType = []DraftOrderAppliedDiscountType{
  6187. DraftOrderAppliedDiscountTypeFixedAmount,
  6188. DraftOrderAppliedDiscountTypePercentage,
  6189. }
  6190. func (e DraftOrderAppliedDiscountType) IsValid() bool {
  6191. switch e {
  6192. case DraftOrderAppliedDiscountTypeFixedAmount, DraftOrderAppliedDiscountTypePercentage:
  6193. return true
  6194. }
  6195. return false
  6196. }
  6197. func (e DraftOrderAppliedDiscountType) String() string {
  6198. return string(e)
  6199. }
  6200. func (e *DraftOrderAppliedDiscountType) UnmarshalGQL(v interface{}) error {
  6201. str, ok := v.(string)
  6202. if !ok {
  6203. return fmt.Errorf("enums must be strings")
  6204. }
  6205. *e = DraftOrderAppliedDiscountType(str)
  6206. if !e.IsValid() {
  6207. return fmt.Errorf("%s is not a valid DraftOrderAppliedDiscountType", str)
  6208. }
  6209. return nil
  6210. }
  6211. func (e DraftOrderAppliedDiscountType) MarshalGQL(w io.Writer) {
  6212. fmt.Fprint(w, strconv.Quote(e.String()))
  6213. }
  6214. type DraftOrderSortKeys string
  6215. const (
  6216. DraftOrderSortKeysNumber DraftOrderSortKeys = "NUMBER"
  6217. DraftOrderSortKeysUpdatedAt DraftOrderSortKeys = "UPDATED_AT"
  6218. DraftOrderSortKeysStatus DraftOrderSortKeys = "STATUS"
  6219. DraftOrderSortKeysTotalPrice DraftOrderSortKeys = "TOTAL_PRICE"
  6220. DraftOrderSortKeysCustomerName DraftOrderSortKeys = "CUSTOMER_NAME"
  6221. DraftOrderSortKeysID DraftOrderSortKeys = "ID"
  6222. DraftOrderSortKeysRelevance DraftOrderSortKeys = "RELEVANCE"
  6223. )
  6224. var AllDraftOrderSortKeys = []DraftOrderSortKeys{
  6225. DraftOrderSortKeysNumber,
  6226. DraftOrderSortKeysUpdatedAt,
  6227. DraftOrderSortKeysStatus,
  6228. DraftOrderSortKeysTotalPrice,
  6229. DraftOrderSortKeysCustomerName,
  6230. DraftOrderSortKeysID,
  6231. DraftOrderSortKeysRelevance,
  6232. }
  6233. func (e DraftOrderSortKeys) IsValid() bool {
  6234. switch e {
  6235. case DraftOrderSortKeysNumber, DraftOrderSortKeysUpdatedAt, DraftOrderSortKeysStatus, DraftOrderSortKeysTotalPrice, DraftOrderSortKeysCustomerName, DraftOrderSortKeysID, DraftOrderSortKeysRelevance:
  6236. return true
  6237. }
  6238. return false
  6239. }
  6240. func (e DraftOrderSortKeys) String() string {
  6241. return string(e)
  6242. }
  6243. func (e *DraftOrderSortKeys) UnmarshalGQL(v interface{}) error {
  6244. str, ok := v.(string)
  6245. if !ok {
  6246. return fmt.Errorf("enums must be strings")
  6247. }
  6248. *e = DraftOrderSortKeys(str)
  6249. if !e.IsValid() {
  6250. return fmt.Errorf("%s is not a valid DraftOrderSortKeys", str)
  6251. }
  6252. return nil
  6253. }
  6254. func (e DraftOrderSortKeys) MarshalGQL(w io.Writer) {
  6255. fmt.Fprint(w, strconv.Quote(e.String()))
  6256. }
  6257. type DraftOrderStatus string
  6258. const (
  6259. DraftOrderStatusCompleted DraftOrderStatus = "COMPLETED"
  6260. DraftOrderStatusInvoiceSent DraftOrderStatus = "INVOICE_SENT"
  6261. DraftOrderStatusOpen DraftOrderStatus = "OPEN"
  6262. )
  6263. var AllDraftOrderStatus = []DraftOrderStatus{
  6264. DraftOrderStatusCompleted,
  6265. DraftOrderStatusInvoiceSent,
  6266. DraftOrderStatusOpen,
  6267. }
  6268. func (e DraftOrderStatus) IsValid() bool {
  6269. switch e {
  6270. case DraftOrderStatusCompleted, DraftOrderStatusInvoiceSent, DraftOrderStatusOpen:
  6271. return true
  6272. }
  6273. return false
  6274. }
  6275. func (e DraftOrderStatus) String() string {
  6276. return string(e)
  6277. }
  6278. func (e *DraftOrderStatus) UnmarshalGQL(v interface{}) error {
  6279. str, ok := v.(string)
  6280. if !ok {
  6281. return fmt.Errorf("enums must be strings")
  6282. }
  6283. *e = DraftOrderStatus(str)
  6284. if !e.IsValid() {
  6285. return fmt.Errorf("%s is not a valid DraftOrderStatus", str)
  6286. }
  6287. return nil
  6288. }
  6289. func (e DraftOrderStatus) MarshalGQL(w io.Writer) {
  6290. fmt.Fprint(w, strconv.Quote(e.String()))
  6291. }
  6292. type EventSortKeys string
  6293. const (
  6294. EventSortKeysCreatedAt EventSortKeys = "CREATED_AT"
  6295. EventSortKeysID EventSortKeys = "ID"
  6296. EventSortKeysRelevance EventSortKeys = "RELEVANCE"
  6297. )
  6298. var AllEventSortKeys = []EventSortKeys{
  6299. EventSortKeysCreatedAt,
  6300. EventSortKeysID,
  6301. EventSortKeysRelevance,
  6302. }
  6303. func (e EventSortKeys) IsValid() bool {
  6304. switch e {
  6305. case EventSortKeysCreatedAt, EventSortKeysID, EventSortKeysRelevance:
  6306. return true
  6307. }
  6308. return false
  6309. }
  6310. func (e EventSortKeys) String() string {
  6311. return string(e)
  6312. }
  6313. func (e *EventSortKeys) UnmarshalGQL(v interface{}) error {
  6314. str, ok := v.(string)
  6315. if !ok {
  6316. return fmt.Errorf("enums must be strings")
  6317. }
  6318. *e = EventSortKeys(str)
  6319. if !e.IsValid() {
  6320. return fmt.Errorf("%s is not a valid EventSortKeys", str)
  6321. }
  6322. return nil
  6323. }
  6324. func (e EventSortKeys) MarshalGQL(w io.Writer) {
  6325. fmt.Fprint(w, strconv.Quote(e.String()))
  6326. }
  6327. type FileErrorCode string
  6328. const (
  6329. FileErrorCodeUnknown FileErrorCode = "UNKNOWN"
  6330. FileErrorCodeInvalidSignedURL FileErrorCode = "INVALID_SIGNED_URL"
  6331. FileErrorCodeImageDownloadFailure FileErrorCode = "IMAGE_DOWNLOAD_FAILURE"
  6332. FileErrorCodeImageProcessingFailure FileErrorCode = "IMAGE_PROCESSING_FAILURE"
  6333. FileErrorCodeMediaTimeoutError FileErrorCode = "MEDIA_TIMEOUT_ERROR"
  6334. FileErrorCodeExternalVideoNotFound FileErrorCode = "EXTERNAL_VIDEO_NOT_FOUND"
  6335. FileErrorCodeExternalVideoUnlisted FileErrorCode = "EXTERNAL_VIDEO_UNLISTED"
  6336. FileErrorCodeExternalVideoInvalidAspectRatio FileErrorCode = "EXTERNAL_VIDEO_INVALID_ASPECT_RATIO"
  6337. FileErrorCodeExternalVideoEmbedDisabled FileErrorCode = "EXTERNAL_VIDEO_EMBED_DISABLED"
  6338. FileErrorCodeExternalVideoEmbedNotFoundOrTranscoding FileErrorCode = "EXTERNAL_VIDEO_EMBED_NOT_FOUND_OR_TRANSCODING"
  6339. FileErrorCodeGenericFileDownloadFailure FileErrorCode = "GENERIC_FILE_DOWNLOAD_FAILURE"
  6340. FileErrorCodeGenericFileInvalidSize FileErrorCode = "GENERIC_FILE_INVALID_SIZE"
  6341. FileErrorCodeVideoMetadataReadError FileErrorCode = "VIDEO_METADATA_READ_ERROR"
  6342. FileErrorCodeVideoInvalidFiletypeError FileErrorCode = "VIDEO_INVALID_FILETYPE_ERROR"
  6343. FileErrorCodeVideoMinWidthError FileErrorCode = "VIDEO_MIN_WIDTH_ERROR"
  6344. FileErrorCodeVideoMaxWidthError FileErrorCode = "VIDEO_MAX_WIDTH_ERROR"
  6345. FileErrorCodeVideoMinHeightError FileErrorCode = "VIDEO_MIN_HEIGHT_ERROR"
  6346. FileErrorCodeVideoMaxHeightError FileErrorCode = "VIDEO_MAX_HEIGHT_ERROR"
  6347. FileErrorCodeVideoMinDurationError FileErrorCode = "VIDEO_MIN_DURATION_ERROR"
  6348. FileErrorCodeVideoMaxDurationError FileErrorCode = "VIDEO_MAX_DURATION_ERROR"
  6349. FileErrorCodeVideoValidationError FileErrorCode = "VIDEO_VALIDATION_ERROR"
  6350. FileErrorCodeModel3dValidationError FileErrorCode = "MODEL3D_VALIDATION_ERROR"
  6351. FileErrorCodeModel3dThumbnailGenerationError FileErrorCode = "MODEL3D_THUMBNAIL_GENERATION_ERROR"
  6352. FileErrorCodeModel3dGlbToUsdzConversionError FileErrorCode = "MODEL3D_GLB_TO_USDZ_CONVERSION_ERROR"
  6353. FileErrorCodeModel3dGlbOutputCreationError FileErrorCode = "MODEL3D_GLB_OUTPUT_CREATION_ERROR"
  6354. FileErrorCodeModel3dProcessingFailure FileErrorCode = "MODEL3D_PROCESSING_FAILURE"
  6355. FileErrorCodeUnsupportedImageFileType FileErrorCode = "UNSUPPORTED_IMAGE_FILE_TYPE"
  6356. FileErrorCodeInvalidImageFileSize FileErrorCode = "INVALID_IMAGE_FILE_SIZE"
  6357. FileErrorCodeInvalidImageAspectRatio FileErrorCode = "INVALID_IMAGE_ASPECT_RATIO"
  6358. FileErrorCodeInvalidImageResolution FileErrorCode = "INVALID_IMAGE_RESOLUTION"
  6359. FileErrorCodeFileStorageLimitExceeded FileErrorCode = "FILE_STORAGE_LIMIT_EXCEEDED"
  6360. )
  6361. var AllFileErrorCode = []FileErrorCode{
  6362. FileErrorCodeUnknown,
  6363. FileErrorCodeInvalidSignedURL,
  6364. FileErrorCodeImageDownloadFailure,
  6365. FileErrorCodeImageProcessingFailure,
  6366. FileErrorCodeMediaTimeoutError,
  6367. FileErrorCodeExternalVideoNotFound,
  6368. FileErrorCodeExternalVideoUnlisted,
  6369. FileErrorCodeExternalVideoInvalidAspectRatio,
  6370. FileErrorCodeExternalVideoEmbedDisabled,
  6371. FileErrorCodeExternalVideoEmbedNotFoundOrTranscoding,
  6372. FileErrorCodeGenericFileDownloadFailure,
  6373. FileErrorCodeGenericFileInvalidSize,
  6374. FileErrorCodeVideoMetadataReadError,
  6375. FileErrorCodeVideoInvalidFiletypeError,
  6376. FileErrorCodeVideoMinWidthError,
  6377. FileErrorCodeVideoMaxWidthError,
  6378. FileErrorCodeVideoMinHeightError,
  6379. FileErrorCodeVideoMaxHeightError,
  6380. FileErrorCodeVideoMinDurationError,
  6381. FileErrorCodeVideoMaxDurationError,
  6382. FileErrorCodeVideoValidationError,
  6383. FileErrorCodeModel3dValidationError,
  6384. FileErrorCodeModel3dThumbnailGenerationError,
  6385. FileErrorCodeModel3dGlbToUsdzConversionError,
  6386. FileErrorCodeModel3dGlbOutputCreationError,
  6387. FileErrorCodeModel3dProcessingFailure,
  6388. FileErrorCodeUnsupportedImageFileType,
  6389. FileErrorCodeInvalidImageFileSize,
  6390. FileErrorCodeInvalidImageAspectRatio,
  6391. FileErrorCodeInvalidImageResolution,
  6392. FileErrorCodeFileStorageLimitExceeded,
  6393. }
  6394. func (e FileErrorCode) IsValid() bool {
  6395. switch e {
  6396. case FileErrorCodeUnknown, FileErrorCodeInvalidSignedURL, FileErrorCodeImageDownloadFailure, FileErrorCodeImageProcessingFailure, FileErrorCodeMediaTimeoutError, FileErrorCodeExternalVideoNotFound, FileErrorCodeExternalVideoUnlisted, FileErrorCodeExternalVideoInvalidAspectRatio, FileErrorCodeExternalVideoEmbedDisabled, FileErrorCodeExternalVideoEmbedNotFoundOrTranscoding, FileErrorCodeGenericFileDownloadFailure, FileErrorCodeGenericFileInvalidSize, FileErrorCodeVideoMetadataReadError, FileErrorCodeVideoInvalidFiletypeError, FileErrorCodeVideoMinWidthError, FileErrorCodeVideoMaxWidthError, FileErrorCodeVideoMinHeightError, FileErrorCodeVideoMaxHeightError, FileErrorCodeVideoMinDurationError, FileErrorCodeVideoMaxDurationError, FileErrorCodeVideoValidationError, FileErrorCodeModel3dValidationError, FileErrorCodeModel3dThumbnailGenerationError, FileErrorCodeModel3dGlbToUsdzConversionError, FileErrorCodeModel3dGlbOutputCreationError, FileErrorCodeModel3dProcessingFailure, FileErrorCodeUnsupportedImageFileType, FileErrorCodeInvalidImageFileSize, FileErrorCodeInvalidImageAspectRatio, FileErrorCodeInvalidImageResolution, FileErrorCodeFileStorageLimitExceeded:
  6397. return true
  6398. }
  6399. return false
  6400. }
  6401. func (e FileErrorCode) String() string {
  6402. return string(e)
  6403. }
  6404. func (e *FileErrorCode) UnmarshalGQL(v interface{}) error {
  6405. str, ok := v.(string)
  6406. if !ok {
  6407. return fmt.Errorf("enums must be strings")
  6408. }
  6409. *e = FileErrorCode(str)
  6410. if !e.IsValid() {
  6411. return fmt.Errorf("%s is not a valid FileErrorCode", str)
  6412. }
  6413. return nil
  6414. }
  6415. func (e FileErrorCode) MarshalGQL(w io.Writer) {
  6416. fmt.Fprint(w, strconv.Quote(e.String()))
  6417. }
  6418. type FileStatus string
  6419. const (
  6420. FileStatusUploaded FileStatus = "UPLOADED"
  6421. FileStatusProcessing FileStatus = "PROCESSING"
  6422. FileStatusReady FileStatus = "READY"
  6423. FileStatusFailed FileStatus = "FAILED"
  6424. )
  6425. var AllFileStatus = []FileStatus{
  6426. FileStatusUploaded,
  6427. FileStatusProcessing,
  6428. FileStatusReady,
  6429. FileStatusFailed,
  6430. }
  6431. func (e FileStatus) IsValid() bool {
  6432. switch e {
  6433. case FileStatusUploaded, FileStatusProcessing, FileStatusReady, FileStatusFailed:
  6434. return true
  6435. }
  6436. return false
  6437. }
  6438. func (e FileStatus) String() string {
  6439. return string(e)
  6440. }
  6441. func (e *FileStatus) UnmarshalGQL(v interface{}) error {
  6442. str, ok := v.(string)
  6443. if !ok {
  6444. return fmt.Errorf("enums must be strings")
  6445. }
  6446. *e = FileStatus(str)
  6447. if !e.IsValid() {
  6448. return fmt.Errorf("%s is not a valid FileStatus", str)
  6449. }
  6450. return nil
  6451. }
  6452. func (e FileStatus) MarshalGQL(w io.Writer) {
  6453. fmt.Fprint(w, strconv.Quote(e.String()))
  6454. }
  6455. type FulfillmentDisplayStatus string
  6456. const (
  6457. FulfillmentDisplayStatusAttemptedDelivery FulfillmentDisplayStatus = "ATTEMPTED_DELIVERY"
  6458. FulfillmentDisplayStatusCanceled FulfillmentDisplayStatus = "CANCELED"
  6459. FulfillmentDisplayStatusConfirmed FulfillmentDisplayStatus = "CONFIRMED"
  6460. FulfillmentDisplayStatusDelivered FulfillmentDisplayStatus = "DELIVERED"
  6461. FulfillmentDisplayStatusFailure FulfillmentDisplayStatus = "FAILURE"
  6462. FulfillmentDisplayStatusFulfilled FulfillmentDisplayStatus = "FULFILLED"
  6463. FulfillmentDisplayStatusInTransit FulfillmentDisplayStatus = "IN_TRANSIT"
  6464. FulfillmentDisplayStatusLabelPrinted FulfillmentDisplayStatus = "LABEL_PRINTED"
  6465. FulfillmentDisplayStatusLabelPurchased FulfillmentDisplayStatus = "LABEL_PURCHASED"
  6466. FulfillmentDisplayStatusLabelVoided FulfillmentDisplayStatus = "LABEL_VOIDED"
  6467. FulfillmentDisplayStatusMarkedAsFulfilled FulfillmentDisplayStatus = "MARKED_AS_FULFILLED"
  6468. FulfillmentDisplayStatusNotDelivered FulfillmentDisplayStatus = "NOT_DELIVERED"
  6469. FulfillmentDisplayStatusOutForDelivery FulfillmentDisplayStatus = "OUT_FOR_DELIVERY"
  6470. FulfillmentDisplayStatusReadyForPickup FulfillmentDisplayStatus = "READY_FOR_PICKUP"
  6471. FulfillmentDisplayStatusPickedUp FulfillmentDisplayStatus = "PICKED_UP"
  6472. FulfillmentDisplayStatusSubmitted FulfillmentDisplayStatus = "SUBMITTED"
  6473. )
  6474. var AllFulfillmentDisplayStatus = []FulfillmentDisplayStatus{
  6475. FulfillmentDisplayStatusAttemptedDelivery,
  6476. FulfillmentDisplayStatusCanceled,
  6477. FulfillmentDisplayStatusConfirmed,
  6478. FulfillmentDisplayStatusDelivered,
  6479. FulfillmentDisplayStatusFailure,
  6480. FulfillmentDisplayStatusFulfilled,
  6481. FulfillmentDisplayStatusInTransit,
  6482. FulfillmentDisplayStatusLabelPrinted,
  6483. FulfillmentDisplayStatusLabelPurchased,
  6484. FulfillmentDisplayStatusLabelVoided,
  6485. FulfillmentDisplayStatusMarkedAsFulfilled,
  6486. FulfillmentDisplayStatusNotDelivered,
  6487. FulfillmentDisplayStatusOutForDelivery,
  6488. FulfillmentDisplayStatusReadyForPickup,
  6489. FulfillmentDisplayStatusPickedUp,
  6490. FulfillmentDisplayStatusSubmitted,
  6491. }
  6492. func (e FulfillmentDisplayStatus) IsValid() bool {
  6493. switch e {
  6494. case FulfillmentDisplayStatusAttemptedDelivery, FulfillmentDisplayStatusCanceled, FulfillmentDisplayStatusConfirmed, FulfillmentDisplayStatusDelivered, FulfillmentDisplayStatusFailure, FulfillmentDisplayStatusFulfilled, FulfillmentDisplayStatusInTransit, FulfillmentDisplayStatusLabelPrinted, FulfillmentDisplayStatusLabelPurchased, FulfillmentDisplayStatusLabelVoided, FulfillmentDisplayStatusMarkedAsFulfilled, FulfillmentDisplayStatusNotDelivered, FulfillmentDisplayStatusOutForDelivery, FulfillmentDisplayStatusReadyForPickup, FulfillmentDisplayStatusPickedUp, FulfillmentDisplayStatusSubmitted:
  6495. return true
  6496. }
  6497. return false
  6498. }
  6499. func (e FulfillmentDisplayStatus) String() string {
  6500. return string(e)
  6501. }
  6502. func (e *FulfillmentDisplayStatus) UnmarshalGQL(v interface{}) error {
  6503. str, ok := v.(string)
  6504. if !ok {
  6505. return fmt.Errorf("enums must be strings")
  6506. }
  6507. *e = FulfillmentDisplayStatus(str)
  6508. if !e.IsValid() {
  6509. return fmt.Errorf("%s is not a valid FulfillmentDisplayStatus", str)
  6510. }
  6511. return nil
  6512. }
  6513. func (e FulfillmentDisplayStatus) MarshalGQL(w io.Writer) {
  6514. fmt.Fprint(w, strconv.Quote(e.String()))
  6515. }
  6516. type FulfillmentEventSortKeys string
  6517. const (
  6518. FulfillmentEventSortKeysHappenedAt FulfillmentEventSortKeys = "HAPPENED_AT"
  6519. FulfillmentEventSortKeysID FulfillmentEventSortKeys = "ID"
  6520. FulfillmentEventSortKeysRelevance FulfillmentEventSortKeys = "RELEVANCE"
  6521. )
  6522. var AllFulfillmentEventSortKeys = []FulfillmentEventSortKeys{
  6523. FulfillmentEventSortKeysHappenedAt,
  6524. FulfillmentEventSortKeysID,
  6525. FulfillmentEventSortKeysRelevance,
  6526. }
  6527. func (e FulfillmentEventSortKeys) IsValid() bool {
  6528. switch e {
  6529. case FulfillmentEventSortKeysHappenedAt, FulfillmentEventSortKeysID, FulfillmentEventSortKeysRelevance:
  6530. return true
  6531. }
  6532. return false
  6533. }
  6534. func (e FulfillmentEventSortKeys) String() string {
  6535. return string(e)
  6536. }
  6537. func (e *FulfillmentEventSortKeys) UnmarshalGQL(v interface{}) error {
  6538. str, ok := v.(string)
  6539. if !ok {
  6540. return fmt.Errorf("enums must be strings")
  6541. }
  6542. *e = FulfillmentEventSortKeys(str)
  6543. if !e.IsValid() {
  6544. return fmt.Errorf("%s is not a valid FulfillmentEventSortKeys", str)
  6545. }
  6546. return nil
  6547. }
  6548. func (e FulfillmentEventSortKeys) MarshalGQL(w io.Writer) {
  6549. fmt.Fprint(w, strconv.Quote(e.String()))
  6550. }
  6551. type FulfillmentEventStatus string
  6552. const (
  6553. FulfillmentEventStatusLabelPurchased FulfillmentEventStatus = "LABEL_PURCHASED"
  6554. FulfillmentEventStatusLabelPrinted FulfillmentEventStatus = "LABEL_PRINTED"
  6555. FulfillmentEventStatusReadyForPickup FulfillmentEventStatus = "READY_FOR_PICKUP"
  6556. FulfillmentEventStatusConfirmed FulfillmentEventStatus = "CONFIRMED"
  6557. FulfillmentEventStatusInTransit FulfillmentEventStatus = "IN_TRANSIT"
  6558. FulfillmentEventStatusOutForDelivery FulfillmentEventStatus = "OUT_FOR_DELIVERY"
  6559. FulfillmentEventStatusAttemptedDelivery FulfillmentEventStatus = "ATTEMPTED_DELIVERY"
  6560. FulfillmentEventStatusDelivered FulfillmentEventStatus = "DELIVERED"
  6561. FulfillmentEventStatusFailure FulfillmentEventStatus = "FAILURE"
  6562. )
  6563. var AllFulfillmentEventStatus = []FulfillmentEventStatus{
  6564. FulfillmentEventStatusLabelPurchased,
  6565. FulfillmentEventStatusLabelPrinted,
  6566. FulfillmentEventStatusReadyForPickup,
  6567. FulfillmentEventStatusConfirmed,
  6568. FulfillmentEventStatusInTransit,
  6569. FulfillmentEventStatusOutForDelivery,
  6570. FulfillmentEventStatusAttemptedDelivery,
  6571. FulfillmentEventStatusDelivered,
  6572. FulfillmentEventStatusFailure,
  6573. }
  6574. func (e FulfillmentEventStatus) IsValid() bool {
  6575. switch e {
  6576. case FulfillmentEventStatusLabelPurchased, FulfillmentEventStatusLabelPrinted, FulfillmentEventStatusReadyForPickup, FulfillmentEventStatusConfirmed, FulfillmentEventStatusInTransit, FulfillmentEventStatusOutForDelivery, FulfillmentEventStatusAttemptedDelivery, FulfillmentEventStatusDelivered, FulfillmentEventStatusFailure:
  6577. return true
  6578. }
  6579. return false
  6580. }
  6581. func (e FulfillmentEventStatus) String() string {
  6582. return string(e)
  6583. }
  6584. func (e *FulfillmentEventStatus) UnmarshalGQL(v interface{}) error {
  6585. str, ok := v.(string)
  6586. if !ok {
  6587. return fmt.Errorf("enums must be strings")
  6588. }
  6589. *e = FulfillmentEventStatus(str)
  6590. if !e.IsValid() {
  6591. return fmt.Errorf("%s is not a valid FulfillmentEventStatus", str)
  6592. }
  6593. return nil
  6594. }
  6595. func (e FulfillmentEventStatus) MarshalGQL(w io.Writer) {
  6596. fmt.Fprint(w, strconv.Quote(e.String()))
  6597. }
  6598. type FulfillmentHoldReason string
  6599. const (
  6600. FulfillmentHoldReasonAwaitingPayment FulfillmentHoldReason = "AWAITING_PAYMENT"
  6601. FulfillmentHoldReasonHighRiskOfFraud FulfillmentHoldReason = "HIGH_RISK_OF_FRAUD"
  6602. FulfillmentHoldReasonIncorrectAddress FulfillmentHoldReason = "INCORRECT_ADDRESS"
  6603. FulfillmentHoldReasonInventoryOutOfStock FulfillmentHoldReason = "INVENTORY_OUT_OF_STOCK"
  6604. FulfillmentHoldReasonUnknownDeliveryDate FulfillmentHoldReason = "UNKNOWN_DELIVERY_DATE"
  6605. FulfillmentHoldReasonOther FulfillmentHoldReason = "OTHER"
  6606. )
  6607. var AllFulfillmentHoldReason = []FulfillmentHoldReason{
  6608. FulfillmentHoldReasonAwaitingPayment,
  6609. FulfillmentHoldReasonHighRiskOfFraud,
  6610. FulfillmentHoldReasonIncorrectAddress,
  6611. FulfillmentHoldReasonInventoryOutOfStock,
  6612. FulfillmentHoldReasonUnknownDeliveryDate,
  6613. FulfillmentHoldReasonOther,
  6614. }
  6615. func (e FulfillmentHoldReason) IsValid() bool {
  6616. switch e {
  6617. case FulfillmentHoldReasonAwaitingPayment, FulfillmentHoldReasonHighRiskOfFraud, FulfillmentHoldReasonIncorrectAddress, FulfillmentHoldReasonInventoryOutOfStock, FulfillmentHoldReasonUnknownDeliveryDate, FulfillmentHoldReasonOther:
  6618. return true
  6619. }
  6620. return false
  6621. }
  6622. func (e FulfillmentHoldReason) String() string {
  6623. return string(e)
  6624. }
  6625. func (e *FulfillmentHoldReason) UnmarshalGQL(v interface{}) error {
  6626. str, ok := v.(string)
  6627. if !ok {
  6628. return fmt.Errorf("enums must be strings")
  6629. }
  6630. *e = FulfillmentHoldReason(str)
  6631. if !e.IsValid() {
  6632. return fmt.Errorf("%s is not a valid FulfillmentHoldReason", str)
  6633. }
  6634. return nil
  6635. }
  6636. func (e FulfillmentHoldReason) MarshalGQL(w io.Writer) {
  6637. fmt.Fprint(w, strconv.Quote(e.String()))
  6638. }
  6639. type FulfillmentOrderAction string
  6640. const (
  6641. FulfillmentOrderActionCreateFulfillment FulfillmentOrderAction = "CREATE_FULFILLMENT"
  6642. FulfillmentOrderActionRequestFulfillment FulfillmentOrderAction = "REQUEST_FULFILLMENT"
  6643. FulfillmentOrderActionCancelFulfillmentOrder FulfillmentOrderAction = "CANCEL_FULFILLMENT_ORDER"
  6644. FulfillmentOrderActionMove FulfillmentOrderAction = "MOVE"
  6645. FulfillmentOrderActionRequestCancellation FulfillmentOrderAction = "REQUEST_CANCELLATION"
  6646. FulfillmentOrderActionMarkAsOpen FulfillmentOrderAction = "MARK_AS_OPEN"
  6647. FulfillmentOrderActionReleaseHold FulfillmentOrderAction = "RELEASE_HOLD"
  6648. FulfillmentOrderActionHold FulfillmentOrderAction = "HOLD"
  6649. FulfillmentOrderActionExternal FulfillmentOrderAction = "EXTERNAL"
  6650. )
  6651. var AllFulfillmentOrderAction = []FulfillmentOrderAction{
  6652. FulfillmentOrderActionCreateFulfillment,
  6653. FulfillmentOrderActionRequestFulfillment,
  6654. FulfillmentOrderActionCancelFulfillmentOrder,
  6655. FulfillmentOrderActionMove,
  6656. FulfillmentOrderActionRequestCancellation,
  6657. FulfillmentOrderActionMarkAsOpen,
  6658. FulfillmentOrderActionReleaseHold,
  6659. FulfillmentOrderActionHold,
  6660. FulfillmentOrderActionExternal,
  6661. }
  6662. func (e FulfillmentOrderAction) IsValid() bool {
  6663. switch e {
  6664. case FulfillmentOrderActionCreateFulfillment, FulfillmentOrderActionRequestFulfillment, FulfillmentOrderActionCancelFulfillmentOrder, FulfillmentOrderActionMove, FulfillmentOrderActionRequestCancellation, FulfillmentOrderActionMarkAsOpen, FulfillmentOrderActionReleaseHold, FulfillmentOrderActionHold, FulfillmentOrderActionExternal:
  6665. return true
  6666. }
  6667. return false
  6668. }
  6669. func (e FulfillmentOrderAction) String() string {
  6670. return string(e)
  6671. }
  6672. func (e *FulfillmentOrderAction) UnmarshalGQL(v interface{}) error {
  6673. str, ok := v.(string)
  6674. if !ok {
  6675. return fmt.Errorf("enums must be strings")
  6676. }
  6677. *e = FulfillmentOrderAction(str)
  6678. if !e.IsValid() {
  6679. return fmt.Errorf("%s is not a valid FulfillmentOrderAction", str)
  6680. }
  6681. return nil
  6682. }
  6683. func (e FulfillmentOrderAction) MarshalGQL(w io.Writer) {
  6684. fmt.Fprint(w, strconv.Quote(e.String()))
  6685. }
  6686. type FulfillmentOrderAssignmentStatus string
  6687. const (
  6688. FulfillmentOrderAssignmentStatusCancellationRequested FulfillmentOrderAssignmentStatus = "CANCELLATION_REQUESTED"
  6689. FulfillmentOrderAssignmentStatusFulfillmentRequested FulfillmentOrderAssignmentStatus = "FULFILLMENT_REQUESTED"
  6690. FulfillmentOrderAssignmentStatusFulfillmentAccepted FulfillmentOrderAssignmentStatus = "FULFILLMENT_ACCEPTED"
  6691. )
  6692. var AllFulfillmentOrderAssignmentStatus = []FulfillmentOrderAssignmentStatus{
  6693. FulfillmentOrderAssignmentStatusCancellationRequested,
  6694. FulfillmentOrderAssignmentStatusFulfillmentRequested,
  6695. FulfillmentOrderAssignmentStatusFulfillmentAccepted,
  6696. }
  6697. func (e FulfillmentOrderAssignmentStatus) IsValid() bool {
  6698. switch e {
  6699. case FulfillmentOrderAssignmentStatusCancellationRequested, FulfillmentOrderAssignmentStatusFulfillmentRequested, FulfillmentOrderAssignmentStatusFulfillmentAccepted:
  6700. return true
  6701. }
  6702. return false
  6703. }
  6704. func (e FulfillmentOrderAssignmentStatus) String() string {
  6705. return string(e)
  6706. }
  6707. func (e *FulfillmentOrderAssignmentStatus) UnmarshalGQL(v interface{}) error {
  6708. str, ok := v.(string)
  6709. if !ok {
  6710. return fmt.Errorf("enums must be strings")
  6711. }
  6712. *e = FulfillmentOrderAssignmentStatus(str)
  6713. if !e.IsValid() {
  6714. return fmt.Errorf("%s is not a valid FulfillmentOrderAssignmentStatus", str)
  6715. }
  6716. return nil
  6717. }
  6718. func (e FulfillmentOrderAssignmentStatus) MarshalGQL(w io.Writer) {
  6719. fmt.Fprint(w, strconv.Quote(e.String()))
  6720. }
  6721. type FulfillmentOrderMerchantRequestKind string
  6722. const (
  6723. FulfillmentOrderMerchantRequestKindFulfillmentRequest FulfillmentOrderMerchantRequestKind = "FULFILLMENT_REQUEST"
  6724. FulfillmentOrderMerchantRequestKindCancellationRequest FulfillmentOrderMerchantRequestKind = "CANCELLATION_REQUEST"
  6725. )
  6726. var AllFulfillmentOrderMerchantRequestKind = []FulfillmentOrderMerchantRequestKind{
  6727. FulfillmentOrderMerchantRequestKindFulfillmentRequest,
  6728. FulfillmentOrderMerchantRequestKindCancellationRequest,
  6729. }
  6730. func (e FulfillmentOrderMerchantRequestKind) IsValid() bool {
  6731. switch e {
  6732. case FulfillmentOrderMerchantRequestKindFulfillmentRequest, FulfillmentOrderMerchantRequestKindCancellationRequest:
  6733. return true
  6734. }
  6735. return false
  6736. }
  6737. func (e FulfillmentOrderMerchantRequestKind) String() string {
  6738. return string(e)
  6739. }
  6740. func (e *FulfillmentOrderMerchantRequestKind) UnmarshalGQL(v interface{}) error {
  6741. str, ok := v.(string)
  6742. if !ok {
  6743. return fmt.Errorf("enums must be strings")
  6744. }
  6745. *e = FulfillmentOrderMerchantRequestKind(str)
  6746. if !e.IsValid() {
  6747. return fmt.Errorf("%s is not a valid FulfillmentOrderMerchantRequestKind", str)
  6748. }
  6749. return nil
  6750. }
  6751. func (e FulfillmentOrderMerchantRequestKind) MarshalGQL(w io.Writer) {
  6752. fmt.Fprint(w, strconv.Quote(e.String()))
  6753. }
  6754. type FulfillmentOrderRequestStatus string
  6755. const (
  6756. FulfillmentOrderRequestStatusUnsubmitted FulfillmentOrderRequestStatus = "UNSUBMITTED"
  6757. FulfillmentOrderRequestStatusSubmitted FulfillmentOrderRequestStatus = "SUBMITTED"
  6758. FulfillmentOrderRequestStatusAccepted FulfillmentOrderRequestStatus = "ACCEPTED"
  6759. FulfillmentOrderRequestStatusRejected FulfillmentOrderRequestStatus = "REJECTED"
  6760. FulfillmentOrderRequestStatusCancellationRequested FulfillmentOrderRequestStatus = "CANCELLATION_REQUESTED"
  6761. FulfillmentOrderRequestStatusCancellationAccepted FulfillmentOrderRequestStatus = "CANCELLATION_ACCEPTED"
  6762. FulfillmentOrderRequestStatusCancellationRejected FulfillmentOrderRequestStatus = "CANCELLATION_REJECTED"
  6763. FulfillmentOrderRequestStatusClosed FulfillmentOrderRequestStatus = "CLOSED"
  6764. )
  6765. var AllFulfillmentOrderRequestStatus = []FulfillmentOrderRequestStatus{
  6766. FulfillmentOrderRequestStatusUnsubmitted,
  6767. FulfillmentOrderRequestStatusSubmitted,
  6768. FulfillmentOrderRequestStatusAccepted,
  6769. FulfillmentOrderRequestStatusRejected,
  6770. FulfillmentOrderRequestStatusCancellationRequested,
  6771. FulfillmentOrderRequestStatusCancellationAccepted,
  6772. FulfillmentOrderRequestStatusCancellationRejected,
  6773. FulfillmentOrderRequestStatusClosed,
  6774. }
  6775. func (e FulfillmentOrderRequestStatus) IsValid() bool {
  6776. switch e {
  6777. case FulfillmentOrderRequestStatusUnsubmitted, FulfillmentOrderRequestStatusSubmitted, FulfillmentOrderRequestStatusAccepted, FulfillmentOrderRequestStatusRejected, FulfillmentOrderRequestStatusCancellationRequested, FulfillmentOrderRequestStatusCancellationAccepted, FulfillmentOrderRequestStatusCancellationRejected, FulfillmentOrderRequestStatusClosed:
  6778. return true
  6779. }
  6780. return false
  6781. }
  6782. func (e FulfillmentOrderRequestStatus) String() string {
  6783. return string(e)
  6784. }
  6785. func (e *FulfillmentOrderRequestStatus) UnmarshalGQL(v interface{}) error {
  6786. str, ok := v.(string)
  6787. if !ok {
  6788. return fmt.Errorf("enums must be strings")
  6789. }
  6790. *e = FulfillmentOrderRequestStatus(str)
  6791. if !e.IsValid() {
  6792. return fmt.Errorf("%s is not a valid FulfillmentOrderRequestStatus", str)
  6793. }
  6794. return nil
  6795. }
  6796. func (e FulfillmentOrderRequestStatus) MarshalGQL(w io.Writer) {
  6797. fmt.Fprint(w, strconv.Quote(e.String()))
  6798. }
  6799. type FulfillmentOrderSortKeys string
  6800. const (
  6801. FulfillmentOrderSortKeysID FulfillmentOrderSortKeys = "ID"
  6802. FulfillmentOrderSortKeysRelevance FulfillmentOrderSortKeys = "RELEVANCE"
  6803. )
  6804. var AllFulfillmentOrderSortKeys = []FulfillmentOrderSortKeys{
  6805. FulfillmentOrderSortKeysID,
  6806. FulfillmentOrderSortKeysRelevance,
  6807. }
  6808. func (e FulfillmentOrderSortKeys) IsValid() bool {
  6809. switch e {
  6810. case FulfillmentOrderSortKeysID, FulfillmentOrderSortKeysRelevance:
  6811. return true
  6812. }
  6813. return false
  6814. }
  6815. func (e FulfillmentOrderSortKeys) String() string {
  6816. return string(e)
  6817. }
  6818. func (e *FulfillmentOrderSortKeys) UnmarshalGQL(v interface{}) error {
  6819. str, ok := v.(string)
  6820. if !ok {
  6821. return fmt.Errorf("enums must be strings")
  6822. }
  6823. *e = FulfillmentOrderSortKeys(str)
  6824. if !e.IsValid() {
  6825. return fmt.Errorf("%s is not a valid FulfillmentOrderSortKeys", str)
  6826. }
  6827. return nil
  6828. }
  6829. func (e FulfillmentOrderSortKeys) MarshalGQL(w io.Writer) {
  6830. fmt.Fprint(w, strconv.Quote(e.String()))
  6831. }
  6832. type FulfillmentOrderStatus string
  6833. const (
  6834. FulfillmentOrderStatusOpen FulfillmentOrderStatus = "OPEN"
  6835. FulfillmentOrderStatusInProgress FulfillmentOrderStatus = "IN_PROGRESS"
  6836. FulfillmentOrderStatusCancelled FulfillmentOrderStatus = "CANCELLED"
  6837. FulfillmentOrderStatusIncomplete FulfillmentOrderStatus = "INCOMPLETE"
  6838. FulfillmentOrderStatusClosed FulfillmentOrderStatus = "CLOSED"
  6839. FulfillmentOrderStatusScheduled FulfillmentOrderStatus = "SCHEDULED"
  6840. FulfillmentOrderStatusOnHold FulfillmentOrderStatus = "ON_HOLD"
  6841. )
  6842. var AllFulfillmentOrderStatus = []FulfillmentOrderStatus{
  6843. FulfillmentOrderStatusOpen,
  6844. FulfillmentOrderStatusInProgress,
  6845. FulfillmentOrderStatusCancelled,
  6846. FulfillmentOrderStatusIncomplete,
  6847. FulfillmentOrderStatusClosed,
  6848. FulfillmentOrderStatusScheduled,
  6849. FulfillmentOrderStatusOnHold,
  6850. }
  6851. func (e FulfillmentOrderStatus) IsValid() bool {
  6852. switch e {
  6853. case FulfillmentOrderStatusOpen, FulfillmentOrderStatusInProgress, FulfillmentOrderStatusCancelled, FulfillmentOrderStatusIncomplete, FulfillmentOrderStatusClosed, FulfillmentOrderStatusScheduled, FulfillmentOrderStatusOnHold:
  6854. return true
  6855. }
  6856. return false
  6857. }
  6858. func (e FulfillmentOrderStatus) String() string {
  6859. return string(e)
  6860. }
  6861. func (e *FulfillmentOrderStatus) UnmarshalGQL(v interface{}) error {
  6862. str, ok := v.(string)
  6863. if !ok {
  6864. return fmt.Errorf("enums must be strings")
  6865. }
  6866. *e = FulfillmentOrderStatus(str)
  6867. if !e.IsValid() {
  6868. return fmt.Errorf("%s is not a valid FulfillmentOrderStatus", str)
  6869. }
  6870. return nil
  6871. }
  6872. func (e FulfillmentOrderStatus) MarshalGQL(w io.Writer) {
  6873. fmt.Fprint(w, strconv.Quote(e.String()))
  6874. }
  6875. type FulfillmentServiceType string
  6876. const (
  6877. FulfillmentServiceTypeGiftCard FulfillmentServiceType = "GIFT_CARD"
  6878. FulfillmentServiceTypeManual FulfillmentServiceType = "MANUAL"
  6879. FulfillmentServiceTypeThirdParty FulfillmentServiceType = "THIRD_PARTY"
  6880. )
  6881. var AllFulfillmentServiceType = []FulfillmentServiceType{
  6882. FulfillmentServiceTypeGiftCard,
  6883. FulfillmentServiceTypeManual,
  6884. FulfillmentServiceTypeThirdParty,
  6885. }
  6886. func (e FulfillmentServiceType) IsValid() bool {
  6887. switch e {
  6888. case FulfillmentServiceTypeGiftCard, FulfillmentServiceTypeManual, FulfillmentServiceTypeThirdParty:
  6889. return true
  6890. }
  6891. return false
  6892. }
  6893. func (e FulfillmentServiceType) String() string {
  6894. return string(e)
  6895. }
  6896. func (e *FulfillmentServiceType) UnmarshalGQL(v interface{}) error {
  6897. str, ok := v.(string)
  6898. if !ok {
  6899. return fmt.Errorf("enums must be strings")
  6900. }
  6901. *e = FulfillmentServiceType(str)
  6902. if !e.IsValid() {
  6903. return fmt.Errorf("%s is not a valid FulfillmentServiceType", str)
  6904. }
  6905. return nil
  6906. }
  6907. func (e FulfillmentServiceType) MarshalGQL(w io.Writer) {
  6908. fmt.Fprint(w, strconv.Quote(e.String()))
  6909. }
  6910. type FulfillmentStatus string
  6911. const (
  6912. FulfillmentStatusSuccess FulfillmentStatus = "SUCCESS"
  6913. FulfillmentStatusCancelled FulfillmentStatus = "CANCELLED"
  6914. FulfillmentStatusError FulfillmentStatus = "ERROR"
  6915. FulfillmentStatusFailure FulfillmentStatus = "FAILURE"
  6916. )
  6917. var AllFulfillmentStatus = []FulfillmentStatus{
  6918. FulfillmentStatusSuccess,
  6919. FulfillmentStatusCancelled,
  6920. FulfillmentStatusError,
  6921. FulfillmentStatusFailure,
  6922. }
  6923. func (e FulfillmentStatus) IsValid() bool {
  6924. switch e {
  6925. case FulfillmentStatusSuccess, FulfillmentStatusCancelled, FulfillmentStatusError, FulfillmentStatusFailure:
  6926. return true
  6927. }
  6928. return false
  6929. }
  6930. func (e FulfillmentStatus) String() string {
  6931. return string(e)
  6932. }
  6933. func (e *FulfillmentStatus) UnmarshalGQL(v interface{}) error {
  6934. str, ok := v.(string)
  6935. if !ok {
  6936. return fmt.Errorf("enums must be strings")
  6937. }
  6938. *e = FulfillmentStatus(str)
  6939. if !e.IsValid() {
  6940. return fmt.Errorf("%s is not a valid FulfillmentStatus", str)
  6941. }
  6942. return nil
  6943. }
  6944. func (e FulfillmentStatus) MarshalGQL(w io.Writer) {
  6945. fmt.Fprint(w, strconv.Quote(e.String()))
  6946. }
  6947. type ImageContentType string
  6948. const (
  6949. ImageContentTypePng ImageContentType = "PNG"
  6950. ImageContentTypeJpg ImageContentType = "JPG"
  6951. ImageContentTypeWebp ImageContentType = "WEBP"
  6952. )
  6953. var AllImageContentType = []ImageContentType{
  6954. ImageContentTypePng,
  6955. ImageContentTypeJpg,
  6956. ImageContentTypeWebp,
  6957. }
  6958. func (e ImageContentType) IsValid() bool {
  6959. switch e {
  6960. case ImageContentTypePng, ImageContentTypeJpg, ImageContentTypeWebp:
  6961. return true
  6962. }
  6963. return false
  6964. }
  6965. func (e ImageContentType) String() string {
  6966. return string(e)
  6967. }
  6968. func (e *ImageContentType) UnmarshalGQL(v interface{}) error {
  6969. str, ok := v.(string)
  6970. if !ok {
  6971. return fmt.Errorf("enums must be strings")
  6972. }
  6973. *e = ImageContentType(str)
  6974. if !e.IsValid() {
  6975. return fmt.Errorf("%s is not a valid ImageContentType", str)
  6976. }
  6977. return nil
  6978. }
  6979. func (e ImageContentType) MarshalGQL(w io.Writer) {
  6980. fmt.Fprint(w, strconv.Quote(e.String()))
  6981. }
  6982. type LanguageCode string
  6983. const (
  6984. LanguageCodeAf LanguageCode = "AF"
  6985. LanguageCodeAk LanguageCode = "AK"
  6986. LanguageCodeAm LanguageCode = "AM"
  6987. LanguageCodeAr LanguageCode = "AR"
  6988. LanguageCodeAs LanguageCode = "AS"
  6989. LanguageCodeAz LanguageCode = "AZ"
  6990. LanguageCodeBe LanguageCode = "BE"
  6991. LanguageCodeBg LanguageCode = "BG"
  6992. LanguageCodeBm LanguageCode = "BM"
  6993. LanguageCodeBn LanguageCode = "BN"
  6994. LanguageCodeBo LanguageCode = "BO"
  6995. LanguageCodeBr LanguageCode = "BR"
  6996. LanguageCodeBs LanguageCode = "BS"
  6997. LanguageCodeCa LanguageCode = "CA"
  6998. LanguageCodeCe LanguageCode = "CE"
  6999. LanguageCodeCs LanguageCode = "CS"
  7000. LanguageCodeCu LanguageCode = "CU"
  7001. LanguageCodeCy LanguageCode = "CY"
  7002. LanguageCodeDa LanguageCode = "DA"
  7003. LanguageCodeDe LanguageCode = "DE"
  7004. LanguageCodeDz LanguageCode = "DZ"
  7005. LanguageCodeEe LanguageCode = "EE"
  7006. LanguageCodeEl LanguageCode = "EL"
  7007. LanguageCodeEn LanguageCode = "EN"
  7008. LanguageCodeEo LanguageCode = "EO"
  7009. LanguageCodeEs LanguageCode = "ES"
  7010. LanguageCodeEt LanguageCode = "ET"
  7011. LanguageCodeEu LanguageCode = "EU"
  7012. LanguageCodeFa LanguageCode = "FA"
  7013. LanguageCodeFf LanguageCode = "FF"
  7014. LanguageCodeFi LanguageCode = "FI"
  7015. LanguageCodeFo LanguageCode = "FO"
  7016. LanguageCodeFr LanguageCode = "FR"
  7017. LanguageCodeFy LanguageCode = "FY"
  7018. LanguageCodeGa LanguageCode = "GA"
  7019. LanguageCodeGd LanguageCode = "GD"
  7020. LanguageCodeGl LanguageCode = "GL"
  7021. LanguageCodeGu LanguageCode = "GU"
  7022. LanguageCodeGv LanguageCode = "GV"
  7023. LanguageCodeHa LanguageCode = "HA"
  7024. LanguageCodeHe LanguageCode = "HE"
  7025. LanguageCodeHi LanguageCode = "HI"
  7026. LanguageCodeHr LanguageCode = "HR"
  7027. LanguageCodeHu LanguageCode = "HU"
  7028. LanguageCodeHy LanguageCode = "HY"
  7029. LanguageCodeIa LanguageCode = "IA"
  7030. LanguageCodeID LanguageCode = "ID"
  7031. LanguageCodeIg LanguageCode = "IG"
  7032. LanguageCodeIi LanguageCode = "II"
  7033. LanguageCodeIs LanguageCode = "IS"
  7034. LanguageCodeIt LanguageCode = "IT"
  7035. LanguageCodeJa LanguageCode = "JA"
  7036. LanguageCodeJv LanguageCode = "JV"
  7037. LanguageCodeKa LanguageCode = "KA"
  7038. LanguageCodeKi LanguageCode = "KI"
  7039. LanguageCodeKk LanguageCode = "KK"
  7040. LanguageCodeKl LanguageCode = "KL"
  7041. LanguageCodeKm LanguageCode = "KM"
  7042. LanguageCodeKn LanguageCode = "KN"
  7043. LanguageCodeKo LanguageCode = "KO"
  7044. LanguageCodeKs LanguageCode = "KS"
  7045. LanguageCodeKu LanguageCode = "KU"
  7046. LanguageCodeKw LanguageCode = "KW"
  7047. LanguageCodeKy LanguageCode = "KY"
  7048. LanguageCodeLb LanguageCode = "LB"
  7049. LanguageCodeLg LanguageCode = "LG"
  7050. LanguageCodeLn LanguageCode = "LN"
  7051. LanguageCodeLo LanguageCode = "LO"
  7052. LanguageCodeLt LanguageCode = "LT"
  7053. LanguageCodeLu LanguageCode = "LU"
  7054. LanguageCodeLv LanguageCode = "LV"
  7055. LanguageCodeMg LanguageCode = "MG"
  7056. LanguageCodeMi LanguageCode = "MI"
  7057. LanguageCodeMk LanguageCode = "MK"
  7058. LanguageCodeMl LanguageCode = "ML"
  7059. LanguageCodeMn LanguageCode = "MN"
  7060. LanguageCodeMr LanguageCode = "MR"
  7061. LanguageCodeMs LanguageCode = "MS"
  7062. LanguageCodeMt LanguageCode = "MT"
  7063. LanguageCodeMy LanguageCode = "MY"
  7064. LanguageCodeNb LanguageCode = "NB"
  7065. LanguageCodeNd LanguageCode = "ND"
  7066. LanguageCodeNe LanguageCode = "NE"
  7067. LanguageCodeNl LanguageCode = "NL"
  7068. LanguageCodeNn LanguageCode = "NN"
  7069. LanguageCodeNo LanguageCode = "NO"
  7070. LanguageCodeOm LanguageCode = "OM"
  7071. LanguageCodeOr LanguageCode = "OR"
  7072. LanguageCodeOs LanguageCode = "OS"
  7073. LanguageCodePa LanguageCode = "PA"
  7074. LanguageCodePl LanguageCode = "PL"
  7075. LanguageCodePs LanguageCode = "PS"
  7076. LanguageCodePtBr LanguageCode = "PT_BR"
  7077. LanguageCodePtPt LanguageCode = "PT_PT"
  7078. LanguageCodeQu LanguageCode = "QU"
  7079. LanguageCodeRm LanguageCode = "RM"
  7080. LanguageCodeRn LanguageCode = "RN"
  7081. LanguageCodeRo LanguageCode = "RO"
  7082. LanguageCodeRu LanguageCode = "RU"
  7083. LanguageCodeRw LanguageCode = "RW"
  7084. LanguageCodeSd LanguageCode = "SD"
  7085. LanguageCodeSe LanguageCode = "SE"
  7086. LanguageCodeSg LanguageCode = "SG"
  7087. LanguageCodeSi LanguageCode = "SI"
  7088. LanguageCodeSk LanguageCode = "SK"
  7089. LanguageCodeSl LanguageCode = "SL"
  7090. LanguageCodeSn LanguageCode = "SN"
  7091. LanguageCodeSo LanguageCode = "SO"
  7092. LanguageCodeSq LanguageCode = "SQ"
  7093. LanguageCodeSr LanguageCode = "SR"
  7094. LanguageCodeSu LanguageCode = "SU"
  7095. LanguageCodeSv LanguageCode = "SV"
  7096. LanguageCodeSw LanguageCode = "SW"
  7097. LanguageCodeTa LanguageCode = "TA"
  7098. LanguageCodeTe LanguageCode = "TE"
  7099. LanguageCodeTg LanguageCode = "TG"
  7100. LanguageCodeTh LanguageCode = "TH"
  7101. LanguageCodeTi LanguageCode = "TI"
  7102. LanguageCodeTk LanguageCode = "TK"
  7103. LanguageCodeTo LanguageCode = "TO"
  7104. LanguageCodeTr LanguageCode = "TR"
  7105. LanguageCodeTt LanguageCode = "TT"
  7106. LanguageCodeUg LanguageCode = "UG"
  7107. LanguageCodeUk LanguageCode = "UK"
  7108. LanguageCodeUr LanguageCode = "UR"
  7109. LanguageCodeUz LanguageCode = "UZ"
  7110. LanguageCodeVi LanguageCode = "VI"
  7111. LanguageCodeWo LanguageCode = "WO"
  7112. LanguageCodeXh LanguageCode = "XH"
  7113. LanguageCodeYi LanguageCode = "YI"
  7114. LanguageCodeYo LanguageCode = "YO"
  7115. LanguageCodeZhCn LanguageCode = "ZH_CN"
  7116. LanguageCodeZhTw LanguageCode = "ZH_TW"
  7117. LanguageCodeZu LanguageCode = "ZU"
  7118. LanguageCodeZh LanguageCode = "ZH"
  7119. LanguageCodePt LanguageCode = "PT"
  7120. LanguageCodeVo LanguageCode = "VO"
  7121. )
  7122. var AllLanguageCode = []LanguageCode{
  7123. LanguageCodeAf,
  7124. LanguageCodeAk,
  7125. LanguageCodeAm,
  7126. LanguageCodeAr,
  7127. LanguageCodeAs,
  7128. LanguageCodeAz,
  7129. LanguageCodeBe,
  7130. LanguageCodeBg,
  7131. LanguageCodeBm,
  7132. LanguageCodeBn,
  7133. LanguageCodeBo,
  7134. LanguageCodeBr,
  7135. LanguageCodeBs,
  7136. LanguageCodeCa,
  7137. LanguageCodeCe,
  7138. LanguageCodeCs,
  7139. LanguageCodeCu,
  7140. LanguageCodeCy,
  7141. LanguageCodeDa,
  7142. LanguageCodeDe,
  7143. LanguageCodeDz,
  7144. LanguageCodeEe,
  7145. LanguageCodeEl,
  7146. LanguageCodeEn,
  7147. LanguageCodeEo,
  7148. LanguageCodeEs,
  7149. LanguageCodeEt,
  7150. LanguageCodeEu,
  7151. LanguageCodeFa,
  7152. LanguageCodeFf,
  7153. LanguageCodeFi,
  7154. LanguageCodeFo,
  7155. LanguageCodeFr,
  7156. LanguageCodeFy,
  7157. LanguageCodeGa,
  7158. LanguageCodeGd,
  7159. LanguageCodeGl,
  7160. LanguageCodeGu,
  7161. LanguageCodeGv,
  7162. LanguageCodeHa,
  7163. LanguageCodeHe,
  7164. LanguageCodeHi,
  7165. LanguageCodeHr,
  7166. LanguageCodeHu,
  7167. LanguageCodeHy,
  7168. LanguageCodeIa,
  7169. LanguageCodeID,
  7170. LanguageCodeIg,
  7171. LanguageCodeIi,
  7172. LanguageCodeIs,
  7173. LanguageCodeIt,
  7174. LanguageCodeJa,
  7175. LanguageCodeJv,
  7176. LanguageCodeKa,
  7177. LanguageCodeKi,
  7178. LanguageCodeKk,
  7179. LanguageCodeKl,
  7180. LanguageCodeKm,
  7181. LanguageCodeKn,
  7182. LanguageCodeKo,
  7183. LanguageCodeKs,
  7184. LanguageCodeKu,
  7185. LanguageCodeKw,
  7186. LanguageCodeKy,
  7187. LanguageCodeLb,
  7188. LanguageCodeLg,
  7189. LanguageCodeLn,
  7190. LanguageCodeLo,
  7191. LanguageCodeLt,
  7192. LanguageCodeLu,
  7193. LanguageCodeLv,
  7194. LanguageCodeMg,
  7195. LanguageCodeMi,
  7196. LanguageCodeMk,
  7197. LanguageCodeMl,
  7198. LanguageCodeMn,
  7199. LanguageCodeMr,
  7200. LanguageCodeMs,
  7201. LanguageCodeMt,
  7202. LanguageCodeMy,
  7203. LanguageCodeNb,
  7204. LanguageCodeNd,
  7205. LanguageCodeNe,
  7206. LanguageCodeNl,
  7207. LanguageCodeNn,
  7208. LanguageCodeNo,
  7209. LanguageCodeOm,
  7210. LanguageCodeOr,
  7211. LanguageCodeOs,
  7212. LanguageCodePa,
  7213. LanguageCodePl,
  7214. LanguageCodePs,
  7215. LanguageCodePtBr,
  7216. LanguageCodePtPt,
  7217. LanguageCodeQu,
  7218. LanguageCodeRm,
  7219. LanguageCodeRn,
  7220. LanguageCodeRo,
  7221. LanguageCodeRu,
  7222. LanguageCodeRw,
  7223. LanguageCodeSd,
  7224. LanguageCodeSe,
  7225. LanguageCodeSg,
  7226. LanguageCodeSi,
  7227. LanguageCodeSk,
  7228. LanguageCodeSl,
  7229. LanguageCodeSn,
  7230. LanguageCodeSo,
  7231. LanguageCodeSq,
  7232. LanguageCodeSr,
  7233. LanguageCodeSu,
  7234. LanguageCodeSv,
  7235. LanguageCodeSw,
  7236. LanguageCodeTa,
  7237. LanguageCodeTe,
  7238. LanguageCodeTg,
  7239. LanguageCodeTh,
  7240. LanguageCodeTi,
  7241. LanguageCodeTk,
  7242. LanguageCodeTo,
  7243. LanguageCodeTr,
  7244. LanguageCodeTt,
  7245. LanguageCodeUg,
  7246. LanguageCodeUk,
  7247. LanguageCodeUr,
  7248. LanguageCodeUz,
  7249. LanguageCodeVi,
  7250. LanguageCodeWo,
  7251. LanguageCodeXh,
  7252. LanguageCodeYi,
  7253. LanguageCodeYo,
  7254. LanguageCodeZhCn,
  7255. LanguageCodeZhTw,
  7256. LanguageCodeZu,
  7257. LanguageCodeZh,
  7258. LanguageCodePt,
  7259. LanguageCodeVo,
  7260. }
  7261. func (e LanguageCode) IsValid() bool {
  7262. switch e {
  7263. case LanguageCodeAf, LanguageCodeAk, LanguageCodeAm, LanguageCodeAr, LanguageCodeAs, LanguageCodeAz, LanguageCodeBe, LanguageCodeBg, LanguageCodeBm, LanguageCodeBn, LanguageCodeBo, LanguageCodeBr, LanguageCodeBs, LanguageCodeCa, LanguageCodeCe, LanguageCodeCs, LanguageCodeCu, LanguageCodeCy, LanguageCodeDa, LanguageCodeDe, LanguageCodeDz, LanguageCodeEe, LanguageCodeEl, LanguageCodeEn, LanguageCodeEo, LanguageCodeEs, LanguageCodeEt, LanguageCodeEu, LanguageCodeFa, LanguageCodeFf, LanguageCodeFi, LanguageCodeFo, LanguageCodeFr, LanguageCodeFy, LanguageCodeGa, LanguageCodeGd, LanguageCodeGl, LanguageCodeGu, LanguageCodeGv, LanguageCodeHa, LanguageCodeHe, LanguageCodeHi, LanguageCodeHr, LanguageCodeHu, LanguageCodeHy, LanguageCodeIa, LanguageCodeID, LanguageCodeIg, LanguageCodeIi, LanguageCodeIs, LanguageCodeIt, LanguageCodeJa, LanguageCodeJv, LanguageCodeKa, LanguageCodeKi, LanguageCodeKk, LanguageCodeKl, LanguageCodeKm, LanguageCodeKn, LanguageCodeKo, LanguageCodeKs, LanguageCodeKu, LanguageCodeKw, LanguageCodeKy, LanguageCodeLb, LanguageCodeLg, LanguageCodeLn, LanguageCodeLo, LanguageCodeLt, LanguageCodeLu, LanguageCodeLv, LanguageCodeMg, LanguageCodeMi, LanguageCodeMk, LanguageCodeMl, LanguageCodeMn, LanguageCodeMr, LanguageCodeMs, LanguageCodeMt, LanguageCodeMy, LanguageCodeNb, LanguageCodeNd, LanguageCodeNe, LanguageCodeNl, LanguageCodeNn, LanguageCodeNo, LanguageCodeOm, LanguageCodeOr, LanguageCodeOs, LanguageCodePa, LanguageCodePl, LanguageCodePs, LanguageCodePtBr, LanguageCodePtPt, LanguageCodeQu, LanguageCodeRm, LanguageCodeRn, LanguageCodeRo, LanguageCodeRu, LanguageCodeRw, LanguageCodeSd, LanguageCodeSe, LanguageCodeSg, LanguageCodeSi, LanguageCodeSk, LanguageCodeSl, LanguageCodeSn, LanguageCodeSo, LanguageCodeSq, LanguageCodeSr, LanguageCodeSu, LanguageCodeSv, LanguageCodeSw, LanguageCodeTa, LanguageCodeTe, LanguageCodeTg, LanguageCodeTh, LanguageCodeTi, LanguageCodeTk, LanguageCodeTo, LanguageCodeTr, LanguageCodeTt, LanguageCodeUg, LanguageCodeUk, LanguageCodeUr, LanguageCodeUz, LanguageCodeVi, LanguageCodeWo, LanguageCodeXh, LanguageCodeYi, LanguageCodeYo, LanguageCodeZhCn, LanguageCodeZhTw, LanguageCodeZu, LanguageCodeZh, LanguageCodePt, LanguageCodeVo:
  7264. return true
  7265. }
  7266. return false
  7267. }
  7268. func (e LanguageCode) String() string {
  7269. return string(e)
  7270. }
  7271. func (e *LanguageCode) UnmarshalGQL(v interface{}) error {
  7272. str, ok := v.(string)
  7273. if !ok {
  7274. return fmt.Errorf("enums must be strings")
  7275. }
  7276. *e = LanguageCode(str)
  7277. if !e.IsValid() {
  7278. return fmt.Errorf("%s is not a valid LanguageCode", str)
  7279. }
  7280. return nil
  7281. }
  7282. func (e LanguageCode) MarshalGQL(w io.Writer) {
  7283. fmt.Fprint(w, strconv.Quote(e.String()))
  7284. }
  7285. type LocalizationExtensionKey string
  7286. const (
  7287. LocalizationExtensionKeyTaxCredentialBr LocalizationExtensionKey = "TAX_CREDENTIAL_BR"
  7288. LocalizationExtensionKeyShippingCredentialBr LocalizationExtensionKey = "SHIPPING_CREDENTIAL_BR"
  7289. LocalizationExtensionKeyShippingCredentialCn LocalizationExtensionKey = "SHIPPING_CREDENTIAL_CN"
  7290. LocalizationExtensionKeyTaxCredentialIt LocalizationExtensionKey = "TAX_CREDENTIAL_IT"
  7291. LocalizationExtensionKeyTaxEmailIt LocalizationExtensionKey = "TAX_EMAIL_IT"
  7292. LocalizationExtensionKeyShippingCredentialKr LocalizationExtensionKey = "SHIPPING_CREDENTIAL_KR"
  7293. )
  7294. var AllLocalizationExtensionKey = []LocalizationExtensionKey{
  7295. LocalizationExtensionKeyTaxCredentialBr,
  7296. LocalizationExtensionKeyShippingCredentialBr,
  7297. LocalizationExtensionKeyShippingCredentialCn,
  7298. LocalizationExtensionKeyTaxCredentialIt,
  7299. LocalizationExtensionKeyTaxEmailIt,
  7300. LocalizationExtensionKeyShippingCredentialKr,
  7301. }
  7302. func (e LocalizationExtensionKey) IsValid() bool {
  7303. switch e {
  7304. case LocalizationExtensionKeyTaxCredentialBr, LocalizationExtensionKeyShippingCredentialBr, LocalizationExtensionKeyShippingCredentialCn, LocalizationExtensionKeyTaxCredentialIt, LocalizationExtensionKeyTaxEmailIt, LocalizationExtensionKeyShippingCredentialKr:
  7305. return true
  7306. }
  7307. return false
  7308. }
  7309. func (e LocalizationExtensionKey) String() string {
  7310. return string(e)
  7311. }
  7312. func (e *LocalizationExtensionKey) UnmarshalGQL(v interface{}) error {
  7313. str, ok := v.(string)
  7314. if !ok {
  7315. return fmt.Errorf("enums must be strings")
  7316. }
  7317. *e = LocalizationExtensionKey(str)
  7318. if !e.IsValid() {
  7319. return fmt.Errorf("%s is not a valid LocalizationExtensionKey", str)
  7320. }
  7321. return nil
  7322. }
  7323. func (e LocalizationExtensionKey) MarshalGQL(w io.Writer) {
  7324. fmt.Fprint(w, strconv.Quote(e.String()))
  7325. }
  7326. type LocalizationExtensionPurpose string
  7327. const (
  7328. LocalizationExtensionPurposeShipping LocalizationExtensionPurpose = "SHIPPING"
  7329. LocalizationExtensionPurposeTax LocalizationExtensionPurpose = "TAX"
  7330. )
  7331. var AllLocalizationExtensionPurpose = []LocalizationExtensionPurpose{
  7332. LocalizationExtensionPurposeShipping,
  7333. LocalizationExtensionPurposeTax,
  7334. }
  7335. func (e LocalizationExtensionPurpose) IsValid() bool {
  7336. switch e {
  7337. case LocalizationExtensionPurposeShipping, LocalizationExtensionPurposeTax:
  7338. return true
  7339. }
  7340. return false
  7341. }
  7342. func (e LocalizationExtensionPurpose) String() string {
  7343. return string(e)
  7344. }
  7345. func (e *LocalizationExtensionPurpose) UnmarshalGQL(v interface{}) error {
  7346. str, ok := v.(string)
  7347. if !ok {
  7348. return fmt.Errorf("enums must be strings")
  7349. }
  7350. *e = LocalizationExtensionPurpose(str)
  7351. if !e.IsValid() {
  7352. return fmt.Errorf("%s is not a valid LocalizationExtensionPurpose", str)
  7353. }
  7354. return nil
  7355. }
  7356. func (e LocalizationExtensionPurpose) MarshalGQL(w io.Writer) {
  7357. fmt.Fprint(w, strconv.Quote(e.String()))
  7358. }
  7359. type LocationSortKeys string
  7360. const (
  7361. LocationSortKeysName LocationSortKeys = "NAME"
  7362. LocationSortKeysID LocationSortKeys = "ID"
  7363. LocationSortKeysRelevance LocationSortKeys = "RELEVANCE"
  7364. )
  7365. var AllLocationSortKeys = []LocationSortKeys{
  7366. LocationSortKeysName,
  7367. LocationSortKeysID,
  7368. LocationSortKeysRelevance,
  7369. }
  7370. func (e LocationSortKeys) IsValid() bool {
  7371. switch e {
  7372. case LocationSortKeysName, LocationSortKeysID, LocationSortKeysRelevance:
  7373. return true
  7374. }
  7375. return false
  7376. }
  7377. func (e LocationSortKeys) String() string {
  7378. return string(e)
  7379. }
  7380. func (e *LocationSortKeys) UnmarshalGQL(v interface{}) error {
  7381. str, ok := v.(string)
  7382. if !ok {
  7383. return fmt.Errorf("enums must be strings")
  7384. }
  7385. *e = LocationSortKeys(str)
  7386. if !e.IsValid() {
  7387. return fmt.Errorf("%s is not a valid LocationSortKeys", str)
  7388. }
  7389. return nil
  7390. }
  7391. func (e LocationSortKeys) MarshalGQL(w io.Writer) {
  7392. fmt.Fprint(w, strconv.Quote(e.String()))
  7393. }
  7394. type MarketingChannel string
  7395. const (
  7396. MarketingChannelSearch MarketingChannel = "SEARCH"
  7397. MarketingChannelDisplay MarketingChannel = "DISPLAY"
  7398. MarketingChannelSocial MarketingChannel = "SOCIAL"
  7399. MarketingChannelEmail MarketingChannel = "EMAIL"
  7400. MarketingChannelReferral MarketingChannel = "REFERRAL"
  7401. )
  7402. var AllMarketingChannel = []MarketingChannel{
  7403. MarketingChannelSearch,
  7404. MarketingChannelDisplay,
  7405. MarketingChannelSocial,
  7406. MarketingChannelEmail,
  7407. MarketingChannelReferral,
  7408. }
  7409. func (e MarketingChannel) IsValid() bool {
  7410. switch e {
  7411. case MarketingChannelSearch, MarketingChannelDisplay, MarketingChannelSocial, MarketingChannelEmail, MarketingChannelReferral:
  7412. return true
  7413. }
  7414. return false
  7415. }
  7416. func (e MarketingChannel) String() string {
  7417. return string(e)
  7418. }
  7419. func (e *MarketingChannel) UnmarshalGQL(v interface{}) error {
  7420. str, ok := v.(string)
  7421. if !ok {
  7422. return fmt.Errorf("enums must be strings")
  7423. }
  7424. *e = MarketingChannel(str)
  7425. if !e.IsValid() {
  7426. return fmt.Errorf("%s is not a valid MarketingChannel", str)
  7427. }
  7428. return nil
  7429. }
  7430. func (e MarketingChannel) MarshalGQL(w io.Writer) {
  7431. fmt.Fprint(w, strconv.Quote(e.String()))
  7432. }
  7433. type MarketingTactic string
  7434. const (
  7435. MarketingTacticAbandonedCart MarketingTactic = "ABANDONED_CART"
  7436. MarketingTacticAd MarketingTactic = "AD"
  7437. MarketingTacticAffiliate MarketingTactic = "AFFILIATE"
  7438. MarketingTacticLink MarketingTactic = "LINK"
  7439. MarketingTacticLoyalty MarketingTactic = "LOYALTY"
  7440. MarketingTacticMessage MarketingTactic = "MESSAGE"
  7441. MarketingTacticNewsletter MarketingTactic = "NEWSLETTER"
  7442. MarketingTacticNotification MarketingTactic = "NOTIFICATION"
  7443. MarketingTacticPost MarketingTactic = "POST"
  7444. MarketingTacticRetargeting MarketingTactic = "RETARGETING"
  7445. MarketingTacticTransactional MarketingTactic = "TRANSACTIONAL"
  7446. MarketingTacticSeo MarketingTactic = "SEO"
  7447. MarketingTacticDirect MarketingTactic = "DIRECT"
  7448. MarketingTacticStorefrontApp MarketingTactic = "STOREFRONT_APP"
  7449. )
  7450. var AllMarketingTactic = []MarketingTactic{
  7451. MarketingTacticAbandonedCart,
  7452. MarketingTacticAd,
  7453. MarketingTacticAffiliate,
  7454. MarketingTacticLink,
  7455. MarketingTacticLoyalty,
  7456. MarketingTacticMessage,
  7457. MarketingTacticNewsletter,
  7458. MarketingTacticNotification,
  7459. MarketingTacticPost,
  7460. MarketingTacticRetargeting,
  7461. MarketingTacticTransactional,
  7462. MarketingTacticSeo,
  7463. MarketingTacticDirect,
  7464. MarketingTacticStorefrontApp,
  7465. }
  7466. func (e MarketingTactic) IsValid() bool {
  7467. switch e {
  7468. case MarketingTacticAbandonedCart, MarketingTacticAd, MarketingTacticAffiliate, MarketingTacticLink, MarketingTacticLoyalty, MarketingTacticMessage, MarketingTacticNewsletter, MarketingTacticNotification, MarketingTacticPost, MarketingTacticRetargeting, MarketingTacticTransactional, MarketingTacticSeo, MarketingTacticDirect, MarketingTacticStorefrontApp:
  7469. return true
  7470. }
  7471. return false
  7472. }
  7473. func (e MarketingTactic) String() string {
  7474. return string(e)
  7475. }
  7476. func (e *MarketingTactic) UnmarshalGQL(v interface{}) error {
  7477. str, ok := v.(string)
  7478. if !ok {
  7479. return fmt.Errorf("enums must be strings")
  7480. }
  7481. *e = MarketingTactic(str)
  7482. if !e.IsValid() {
  7483. return fmt.Errorf("%s is not a valid MarketingTactic", str)
  7484. }
  7485. return nil
  7486. }
  7487. func (e MarketingTactic) MarshalGQL(w io.Writer) {
  7488. fmt.Fprint(w, strconv.Quote(e.String()))
  7489. }
  7490. type MediaContentType string
  7491. const (
  7492. MediaContentTypeVideo MediaContentType = "VIDEO"
  7493. MediaContentTypeExternalVideo MediaContentType = "EXTERNAL_VIDEO"
  7494. MediaContentTypeModel3d MediaContentType = "MODEL_3D"
  7495. MediaContentTypeImage MediaContentType = "IMAGE"
  7496. )
  7497. var AllMediaContentType = []MediaContentType{
  7498. MediaContentTypeVideo,
  7499. MediaContentTypeExternalVideo,
  7500. MediaContentTypeModel3d,
  7501. MediaContentTypeImage,
  7502. }
  7503. func (e MediaContentType) IsValid() bool {
  7504. switch e {
  7505. case MediaContentTypeVideo, MediaContentTypeExternalVideo, MediaContentTypeModel3d, MediaContentTypeImage:
  7506. return true
  7507. }
  7508. return false
  7509. }
  7510. func (e MediaContentType) String() string {
  7511. return string(e)
  7512. }
  7513. func (e *MediaContentType) UnmarshalGQL(v interface{}) error {
  7514. str, ok := v.(string)
  7515. if !ok {
  7516. return fmt.Errorf("enums must be strings")
  7517. }
  7518. *e = MediaContentType(str)
  7519. if !e.IsValid() {
  7520. return fmt.Errorf("%s is not a valid MediaContentType", str)
  7521. }
  7522. return nil
  7523. }
  7524. func (e MediaContentType) MarshalGQL(w io.Writer) {
  7525. fmt.Fprint(w, strconv.Quote(e.String()))
  7526. }
  7527. type MediaErrorCode string
  7528. const (
  7529. MediaErrorCodeUnknown MediaErrorCode = "UNKNOWN"
  7530. MediaErrorCodeInvalidSignedURL MediaErrorCode = "INVALID_SIGNED_URL"
  7531. MediaErrorCodeImageDownloadFailure MediaErrorCode = "IMAGE_DOWNLOAD_FAILURE"
  7532. MediaErrorCodeImageProcessingFailure MediaErrorCode = "IMAGE_PROCESSING_FAILURE"
  7533. MediaErrorCodeMediaTimeoutError MediaErrorCode = "MEDIA_TIMEOUT_ERROR"
  7534. MediaErrorCodeExternalVideoNotFound MediaErrorCode = "EXTERNAL_VIDEO_NOT_FOUND"
  7535. MediaErrorCodeExternalVideoUnlisted MediaErrorCode = "EXTERNAL_VIDEO_UNLISTED"
  7536. MediaErrorCodeExternalVideoInvalidAspectRatio MediaErrorCode = "EXTERNAL_VIDEO_INVALID_ASPECT_RATIO"
  7537. MediaErrorCodeExternalVideoEmbedDisabled MediaErrorCode = "EXTERNAL_VIDEO_EMBED_DISABLED"
  7538. MediaErrorCodeExternalVideoEmbedNotFoundOrTranscoding MediaErrorCode = "EXTERNAL_VIDEO_EMBED_NOT_FOUND_OR_TRANSCODING"
  7539. MediaErrorCodeGenericFileDownloadFailure MediaErrorCode = "GENERIC_FILE_DOWNLOAD_FAILURE"
  7540. MediaErrorCodeGenericFileInvalidSize MediaErrorCode = "GENERIC_FILE_INVALID_SIZE"
  7541. MediaErrorCodeVideoMetadataReadError MediaErrorCode = "VIDEO_METADATA_READ_ERROR"
  7542. MediaErrorCodeVideoInvalidFiletypeError MediaErrorCode = "VIDEO_INVALID_FILETYPE_ERROR"
  7543. MediaErrorCodeVideoMinWidthError MediaErrorCode = "VIDEO_MIN_WIDTH_ERROR"
  7544. MediaErrorCodeVideoMaxWidthError MediaErrorCode = "VIDEO_MAX_WIDTH_ERROR"
  7545. MediaErrorCodeVideoMinHeightError MediaErrorCode = "VIDEO_MIN_HEIGHT_ERROR"
  7546. MediaErrorCodeVideoMaxHeightError MediaErrorCode = "VIDEO_MAX_HEIGHT_ERROR"
  7547. MediaErrorCodeVideoMinDurationError MediaErrorCode = "VIDEO_MIN_DURATION_ERROR"
  7548. MediaErrorCodeVideoMaxDurationError MediaErrorCode = "VIDEO_MAX_DURATION_ERROR"
  7549. MediaErrorCodeVideoValidationError MediaErrorCode = "VIDEO_VALIDATION_ERROR"
  7550. MediaErrorCodeModel3dValidationError MediaErrorCode = "MODEL3D_VALIDATION_ERROR"
  7551. MediaErrorCodeModel3dThumbnailGenerationError MediaErrorCode = "MODEL3D_THUMBNAIL_GENERATION_ERROR"
  7552. MediaErrorCodeModel3dGlbToUsdzConversionError MediaErrorCode = "MODEL3D_GLB_TO_USDZ_CONVERSION_ERROR"
  7553. MediaErrorCodeModel3dGlbOutputCreationError MediaErrorCode = "MODEL3D_GLB_OUTPUT_CREATION_ERROR"
  7554. MediaErrorCodeModel3dProcessingFailure MediaErrorCode = "MODEL3D_PROCESSING_FAILURE"
  7555. MediaErrorCodeUnsupportedImageFileType MediaErrorCode = "UNSUPPORTED_IMAGE_FILE_TYPE"
  7556. MediaErrorCodeInvalidImageFileSize MediaErrorCode = "INVALID_IMAGE_FILE_SIZE"
  7557. MediaErrorCodeInvalidImageAspectRatio MediaErrorCode = "INVALID_IMAGE_ASPECT_RATIO"
  7558. MediaErrorCodeInvalidImageResolution MediaErrorCode = "INVALID_IMAGE_RESOLUTION"
  7559. MediaErrorCodeFileStorageLimitExceeded MediaErrorCode = "FILE_STORAGE_LIMIT_EXCEEDED"
  7560. )
  7561. var AllMediaErrorCode = []MediaErrorCode{
  7562. MediaErrorCodeUnknown,
  7563. MediaErrorCodeInvalidSignedURL,
  7564. MediaErrorCodeImageDownloadFailure,
  7565. MediaErrorCodeImageProcessingFailure,
  7566. MediaErrorCodeMediaTimeoutError,
  7567. MediaErrorCodeExternalVideoNotFound,
  7568. MediaErrorCodeExternalVideoUnlisted,
  7569. MediaErrorCodeExternalVideoInvalidAspectRatio,
  7570. MediaErrorCodeExternalVideoEmbedDisabled,
  7571. MediaErrorCodeExternalVideoEmbedNotFoundOrTranscoding,
  7572. MediaErrorCodeGenericFileDownloadFailure,
  7573. MediaErrorCodeGenericFileInvalidSize,
  7574. MediaErrorCodeVideoMetadataReadError,
  7575. MediaErrorCodeVideoInvalidFiletypeError,
  7576. MediaErrorCodeVideoMinWidthError,
  7577. MediaErrorCodeVideoMaxWidthError,
  7578. MediaErrorCodeVideoMinHeightError,
  7579. MediaErrorCodeVideoMaxHeightError,
  7580. MediaErrorCodeVideoMinDurationError,
  7581. MediaErrorCodeVideoMaxDurationError,
  7582. MediaErrorCodeVideoValidationError,
  7583. MediaErrorCodeModel3dValidationError,
  7584. MediaErrorCodeModel3dThumbnailGenerationError,
  7585. MediaErrorCodeModel3dGlbToUsdzConversionError,
  7586. MediaErrorCodeModel3dGlbOutputCreationError,
  7587. MediaErrorCodeModel3dProcessingFailure,
  7588. MediaErrorCodeUnsupportedImageFileType,
  7589. MediaErrorCodeInvalidImageFileSize,
  7590. MediaErrorCodeInvalidImageAspectRatio,
  7591. MediaErrorCodeInvalidImageResolution,
  7592. MediaErrorCodeFileStorageLimitExceeded,
  7593. }
  7594. func (e MediaErrorCode) IsValid() bool {
  7595. switch e {
  7596. case MediaErrorCodeUnknown, MediaErrorCodeInvalidSignedURL, MediaErrorCodeImageDownloadFailure, MediaErrorCodeImageProcessingFailure, MediaErrorCodeMediaTimeoutError, MediaErrorCodeExternalVideoNotFound, MediaErrorCodeExternalVideoUnlisted, MediaErrorCodeExternalVideoInvalidAspectRatio, MediaErrorCodeExternalVideoEmbedDisabled, MediaErrorCodeExternalVideoEmbedNotFoundOrTranscoding, MediaErrorCodeGenericFileDownloadFailure, MediaErrorCodeGenericFileInvalidSize, MediaErrorCodeVideoMetadataReadError, MediaErrorCodeVideoInvalidFiletypeError, MediaErrorCodeVideoMinWidthError, MediaErrorCodeVideoMaxWidthError, MediaErrorCodeVideoMinHeightError, MediaErrorCodeVideoMaxHeightError, MediaErrorCodeVideoMinDurationError, MediaErrorCodeVideoMaxDurationError, MediaErrorCodeVideoValidationError, MediaErrorCodeModel3dValidationError, MediaErrorCodeModel3dThumbnailGenerationError, MediaErrorCodeModel3dGlbToUsdzConversionError, MediaErrorCodeModel3dGlbOutputCreationError, MediaErrorCodeModel3dProcessingFailure, MediaErrorCodeUnsupportedImageFileType, MediaErrorCodeInvalidImageFileSize, MediaErrorCodeInvalidImageAspectRatio, MediaErrorCodeInvalidImageResolution, MediaErrorCodeFileStorageLimitExceeded:
  7597. return true
  7598. }
  7599. return false
  7600. }
  7601. func (e MediaErrorCode) String() string {
  7602. return string(e)
  7603. }
  7604. func (e *MediaErrorCode) UnmarshalGQL(v interface{}) error {
  7605. str, ok := v.(string)
  7606. if !ok {
  7607. return fmt.Errorf("enums must be strings")
  7608. }
  7609. *e = MediaErrorCode(str)
  7610. if !e.IsValid() {
  7611. return fmt.Errorf("%s is not a valid MediaErrorCode", str)
  7612. }
  7613. return nil
  7614. }
  7615. func (e MediaErrorCode) MarshalGQL(w io.Writer) {
  7616. fmt.Fprint(w, strconv.Quote(e.String()))
  7617. }
  7618. type MediaPreviewImageStatus string
  7619. const (
  7620. MediaPreviewImageStatusUploaded MediaPreviewImageStatus = "UPLOADED"
  7621. MediaPreviewImageStatusProcessing MediaPreviewImageStatus = "PROCESSING"
  7622. MediaPreviewImageStatusReady MediaPreviewImageStatus = "READY"
  7623. MediaPreviewImageStatusFailed MediaPreviewImageStatus = "FAILED"
  7624. )
  7625. var AllMediaPreviewImageStatus = []MediaPreviewImageStatus{
  7626. MediaPreviewImageStatusUploaded,
  7627. MediaPreviewImageStatusProcessing,
  7628. MediaPreviewImageStatusReady,
  7629. MediaPreviewImageStatusFailed,
  7630. }
  7631. func (e MediaPreviewImageStatus) IsValid() bool {
  7632. switch e {
  7633. case MediaPreviewImageStatusUploaded, MediaPreviewImageStatusProcessing, MediaPreviewImageStatusReady, MediaPreviewImageStatusFailed:
  7634. return true
  7635. }
  7636. return false
  7637. }
  7638. func (e MediaPreviewImageStatus) String() string {
  7639. return string(e)
  7640. }
  7641. func (e *MediaPreviewImageStatus) UnmarshalGQL(v interface{}) error {
  7642. str, ok := v.(string)
  7643. if !ok {
  7644. return fmt.Errorf("enums must be strings")
  7645. }
  7646. *e = MediaPreviewImageStatus(str)
  7647. if !e.IsValid() {
  7648. return fmt.Errorf("%s is not a valid MediaPreviewImageStatus", str)
  7649. }
  7650. return nil
  7651. }
  7652. func (e MediaPreviewImageStatus) MarshalGQL(w io.Writer) {
  7653. fmt.Fprint(w, strconv.Quote(e.String()))
  7654. }
  7655. type MediaStatus string
  7656. const (
  7657. MediaStatusUploaded MediaStatus = "UPLOADED"
  7658. MediaStatusProcessing MediaStatus = "PROCESSING"
  7659. MediaStatusReady MediaStatus = "READY"
  7660. MediaStatusFailed MediaStatus = "FAILED"
  7661. )
  7662. var AllMediaStatus = []MediaStatus{
  7663. MediaStatusUploaded,
  7664. MediaStatusProcessing,
  7665. MediaStatusReady,
  7666. MediaStatusFailed,
  7667. }
  7668. func (e MediaStatus) IsValid() bool {
  7669. switch e {
  7670. case MediaStatusUploaded, MediaStatusProcessing, MediaStatusReady, MediaStatusFailed:
  7671. return true
  7672. }
  7673. return false
  7674. }
  7675. func (e MediaStatus) String() string {
  7676. return string(e)
  7677. }
  7678. func (e *MediaStatus) UnmarshalGQL(v interface{}) error {
  7679. str, ok := v.(string)
  7680. if !ok {
  7681. return fmt.Errorf("enums must be strings")
  7682. }
  7683. *e = MediaStatus(str)
  7684. if !e.IsValid() {
  7685. return fmt.Errorf("%s is not a valid MediaStatus", str)
  7686. }
  7687. return nil
  7688. }
  7689. func (e MediaStatus) MarshalGQL(w io.Writer) {
  7690. fmt.Fprint(w, strconv.Quote(e.String()))
  7691. }
  7692. type MediaUserErrorCode string
  7693. const (
  7694. MediaUserErrorCodeInvalid MediaUserErrorCode = "INVALID"
  7695. MediaUserErrorCodeBlank MediaUserErrorCode = "BLANK"
  7696. MediaUserErrorCodeVideoValidationError MediaUserErrorCode = "VIDEO_VALIDATION_ERROR"
  7697. MediaUserErrorCodeModel3dValidationError MediaUserErrorCode = "MODEL3D_VALIDATION_ERROR"
  7698. MediaUserErrorCodeVideoThrottleExceeded MediaUserErrorCode = "VIDEO_THROTTLE_EXCEEDED"
  7699. MediaUserErrorCodeModel3dThrottleExceeded MediaUserErrorCode = "MODEL3D_THROTTLE_EXCEEDED"
  7700. MediaUserErrorCodeProductMediaLimitExceeded MediaUserErrorCode = "PRODUCT_MEDIA_LIMIT_EXCEEDED"
  7701. MediaUserErrorCodeShopMediaLimitExceeded MediaUserErrorCode = "SHOP_MEDIA_LIMIT_EXCEEDED"
  7702. MediaUserErrorCodeProductDoesNotExist MediaUserErrorCode = "PRODUCT_DOES_NOT_EXIST"
  7703. MediaUserErrorCodeMediaDoesNotExist MediaUserErrorCode = "MEDIA_DOES_NOT_EXIST"
  7704. MediaUserErrorCodeMediaDoesNotExistOnProduct MediaUserErrorCode = "MEDIA_DOES_NOT_EXIST_ON_PRODUCT"
  7705. MediaUserErrorCodeTooManyMediaPerInputPair MediaUserErrorCode = "TOO_MANY_MEDIA_PER_INPUT_PAIR"
  7706. MediaUserErrorCodeMaximumVariantMediaPairsExceeded MediaUserErrorCode = "MAXIMUM_VARIANT_MEDIA_PAIRS_EXCEEDED"
  7707. MediaUserErrorCodeInvalidMediaType MediaUserErrorCode = "INVALID_MEDIA_TYPE"
  7708. MediaUserErrorCodeProductVariantSpecifiedMultipleTimes MediaUserErrorCode = "PRODUCT_VARIANT_SPECIFIED_MULTIPLE_TIMES"
  7709. MediaUserErrorCodeProductVariantDoesNotExistOnProduct MediaUserErrorCode = "PRODUCT_VARIANT_DOES_NOT_EXIST_ON_PRODUCT"
  7710. MediaUserErrorCodeNonReadyMedia MediaUserErrorCode = "NON_READY_MEDIA"
  7711. MediaUserErrorCodeProductVariantAlreadyHasMedia MediaUserErrorCode = "PRODUCT_VARIANT_ALREADY_HAS_MEDIA"
  7712. MediaUserErrorCodeMediaIsNotAttachedToVariant MediaUserErrorCode = "MEDIA_IS_NOT_ATTACHED_TO_VARIANT"
  7713. MediaUserErrorCodeMediaCannotBeModified MediaUserErrorCode = "MEDIA_CANNOT_BE_MODIFIED"
  7714. )
  7715. var AllMediaUserErrorCode = []MediaUserErrorCode{
  7716. MediaUserErrorCodeInvalid,
  7717. MediaUserErrorCodeBlank,
  7718. MediaUserErrorCodeVideoValidationError,
  7719. MediaUserErrorCodeModel3dValidationError,
  7720. MediaUserErrorCodeVideoThrottleExceeded,
  7721. MediaUserErrorCodeModel3dThrottleExceeded,
  7722. MediaUserErrorCodeProductMediaLimitExceeded,
  7723. MediaUserErrorCodeShopMediaLimitExceeded,
  7724. MediaUserErrorCodeProductDoesNotExist,
  7725. MediaUserErrorCodeMediaDoesNotExist,
  7726. MediaUserErrorCodeMediaDoesNotExistOnProduct,
  7727. MediaUserErrorCodeTooManyMediaPerInputPair,
  7728. MediaUserErrorCodeMaximumVariantMediaPairsExceeded,
  7729. MediaUserErrorCodeInvalidMediaType,
  7730. MediaUserErrorCodeProductVariantSpecifiedMultipleTimes,
  7731. MediaUserErrorCodeProductVariantDoesNotExistOnProduct,
  7732. MediaUserErrorCodeNonReadyMedia,
  7733. MediaUserErrorCodeProductVariantAlreadyHasMedia,
  7734. MediaUserErrorCodeMediaIsNotAttachedToVariant,
  7735. MediaUserErrorCodeMediaCannotBeModified,
  7736. }
  7737. func (e MediaUserErrorCode) IsValid() bool {
  7738. switch e {
  7739. case MediaUserErrorCodeInvalid, MediaUserErrorCodeBlank, MediaUserErrorCodeVideoValidationError, MediaUserErrorCodeModel3dValidationError, MediaUserErrorCodeVideoThrottleExceeded, MediaUserErrorCodeModel3dThrottleExceeded, MediaUserErrorCodeProductMediaLimitExceeded, MediaUserErrorCodeShopMediaLimitExceeded, MediaUserErrorCodeProductDoesNotExist, MediaUserErrorCodeMediaDoesNotExist, MediaUserErrorCodeMediaDoesNotExistOnProduct, MediaUserErrorCodeTooManyMediaPerInputPair, MediaUserErrorCodeMaximumVariantMediaPairsExceeded, MediaUserErrorCodeInvalidMediaType, MediaUserErrorCodeProductVariantSpecifiedMultipleTimes, MediaUserErrorCodeProductVariantDoesNotExistOnProduct, MediaUserErrorCodeNonReadyMedia, MediaUserErrorCodeProductVariantAlreadyHasMedia, MediaUserErrorCodeMediaIsNotAttachedToVariant, MediaUserErrorCodeMediaCannotBeModified:
  7740. return true
  7741. }
  7742. return false
  7743. }
  7744. func (e MediaUserErrorCode) String() string {
  7745. return string(e)
  7746. }
  7747. func (e *MediaUserErrorCode) UnmarshalGQL(v interface{}) error {
  7748. str, ok := v.(string)
  7749. if !ok {
  7750. return fmt.Errorf("enums must be strings")
  7751. }
  7752. *e = MediaUserErrorCode(str)
  7753. if !e.IsValid() {
  7754. return fmt.Errorf("%s is not a valid MediaUserErrorCode", str)
  7755. }
  7756. return nil
  7757. }
  7758. func (e MediaUserErrorCode) MarshalGQL(w io.Writer) {
  7759. fmt.Fprint(w, strconv.Quote(e.String()))
  7760. }
  7761. type MediaWarningCode string
  7762. const (
  7763. MediaWarningCodeModelSmallPhysicalSize MediaWarningCode = "MODEL_SMALL_PHYSICAL_SIZE"
  7764. MediaWarningCodeModelLargePhysicalSize MediaWarningCode = "MODEL_LARGE_PHYSICAL_SIZE"
  7765. )
  7766. var AllMediaWarningCode = []MediaWarningCode{
  7767. MediaWarningCodeModelSmallPhysicalSize,
  7768. MediaWarningCodeModelLargePhysicalSize,
  7769. }
  7770. func (e MediaWarningCode) IsValid() bool {
  7771. switch e {
  7772. case MediaWarningCodeModelSmallPhysicalSize, MediaWarningCodeModelLargePhysicalSize:
  7773. return true
  7774. }
  7775. return false
  7776. }
  7777. func (e MediaWarningCode) String() string {
  7778. return string(e)
  7779. }
  7780. func (e *MediaWarningCode) UnmarshalGQL(v interface{}) error {
  7781. str, ok := v.(string)
  7782. if !ok {
  7783. return fmt.Errorf("enums must be strings")
  7784. }
  7785. *e = MediaWarningCode(str)
  7786. if !e.IsValid() {
  7787. return fmt.Errorf("%s is not a valid MediaWarningCode", str)
  7788. }
  7789. return nil
  7790. }
  7791. func (e MediaWarningCode) MarshalGQL(w io.Writer) {
  7792. fmt.Fprint(w, strconv.Quote(e.String()))
  7793. }
  7794. type MetafieldDefinitionPinnedStatus string
  7795. const (
  7796. MetafieldDefinitionPinnedStatusAny MetafieldDefinitionPinnedStatus = "ANY"
  7797. MetafieldDefinitionPinnedStatusPinned MetafieldDefinitionPinnedStatus = "PINNED"
  7798. MetafieldDefinitionPinnedStatusUnpinned MetafieldDefinitionPinnedStatus = "UNPINNED"
  7799. )
  7800. var AllMetafieldDefinitionPinnedStatus = []MetafieldDefinitionPinnedStatus{
  7801. MetafieldDefinitionPinnedStatusAny,
  7802. MetafieldDefinitionPinnedStatusPinned,
  7803. MetafieldDefinitionPinnedStatusUnpinned,
  7804. }
  7805. func (e MetafieldDefinitionPinnedStatus) IsValid() bool {
  7806. switch e {
  7807. case MetafieldDefinitionPinnedStatusAny, MetafieldDefinitionPinnedStatusPinned, MetafieldDefinitionPinnedStatusUnpinned:
  7808. return true
  7809. }
  7810. return false
  7811. }
  7812. func (e MetafieldDefinitionPinnedStatus) String() string {
  7813. return string(e)
  7814. }
  7815. func (e *MetafieldDefinitionPinnedStatus) UnmarshalGQL(v interface{}) error {
  7816. str, ok := v.(string)
  7817. if !ok {
  7818. return fmt.Errorf("enums must be strings")
  7819. }
  7820. *e = MetafieldDefinitionPinnedStatus(str)
  7821. if !e.IsValid() {
  7822. return fmt.Errorf("%s is not a valid MetafieldDefinitionPinnedStatus", str)
  7823. }
  7824. return nil
  7825. }
  7826. func (e MetafieldDefinitionPinnedStatus) MarshalGQL(w io.Writer) {
  7827. fmt.Fprint(w, strconv.Quote(e.String()))
  7828. }
  7829. type MetafieldDefinitionSortKeys string
  7830. const (
  7831. MetafieldDefinitionSortKeysID MetafieldDefinitionSortKeys = "ID"
  7832. MetafieldDefinitionSortKeysName MetafieldDefinitionSortKeys = "NAME"
  7833. MetafieldDefinitionSortKeysPinnedPosition MetafieldDefinitionSortKeys = "PINNED_POSITION"
  7834. MetafieldDefinitionSortKeysRelevance MetafieldDefinitionSortKeys = "RELEVANCE"
  7835. )
  7836. var AllMetafieldDefinitionSortKeys = []MetafieldDefinitionSortKeys{
  7837. MetafieldDefinitionSortKeysID,
  7838. MetafieldDefinitionSortKeysName,
  7839. MetafieldDefinitionSortKeysPinnedPosition,
  7840. MetafieldDefinitionSortKeysRelevance,
  7841. }
  7842. func (e MetafieldDefinitionSortKeys) IsValid() bool {
  7843. switch e {
  7844. case MetafieldDefinitionSortKeysID, MetafieldDefinitionSortKeysName, MetafieldDefinitionSortKeysPinnedPosition, MetafieldDefinitionSortKeysRelevance:
  7845. return true
  7846. }
  7847. return false
  7848. }
  7849. func (e MetafieldDefinitionSortKeys) String() string {
  7850. return string(e)
  7851. }
  7852. func (e *MetafieldDefinitionSortKeys) UnmarshalGQL(v interface{}) error {
  7853. str, ok := v.(string)
  7854. if !ok {
  7855. return fmt.Errorf("enums must be strings")
  7856. }
  7857. *e = MetafieldDefinitionSortKeys(str)
  7858. if !e.IsValid() {
  7859. return fmt.Errorf("%s is not a valid MetafieldDefinitionSortKeys", str)
  7860. }
  7861. return nil
  7862. }
  7863. func (e MetafieldDefinitionSortKeys) MarshalGQL(w io.Writer) {
  7864. fmt.Fprint(w, strconv.Quote(e.String()))
  7865. }
  7866. type MetafieldDefinitionValidationStatus string
  7867. const (
  7868. MetafieldDefinitionValidationStatusAllValid MetafieldDefinitionValidationStatus = "ALL_VALID"
  7869. MetafieldDefinitionValidationStatusInProgress MetafieldDefinitionValidationStatus = "IN_PROGRESS"
  7870. MetafieldDefinitionValidationStatusSomeInvalid MetafieldDefinitionValidationStatus = "SOME_INVALID"
  7871. )
  7872. var AllMetafieldDefinitionValidationStatus = []MetafieldDefinitionValidationStatus{
  7873. MetafieldDefinitionValidationStatusAllValid,
  7874. MetafieldDefinitionValidationStatusInProgress,
  7875. MetafieldDefinitionValidationStatusSomeInvalid,
  7876. }
  7877. func (e MetafieldDefinitionValidationStatus) IsValid() bool {
  7878. switch e {
  7879. case MetafieldDefinitionValidationStatusAllValid, MetafieldDefinitionValidationStatusInProgress, MetafieldDefinitionValidationStatusSomeInvalid:
  7880. return true
  7881. }
  7882. return false
  7883. }
  7884. func (e MetafieldDefinitionValidationStatus) String() string {
  7885. return string(e)
  7886. }
  7887. func (e *MetafieldDefinitionValidationStatus) UnmarshalGQL(v interface{}) error {
  7888. str, ok := v.(string)
  7889. if !ok {
  7890. return fmt.Errorf("enums must be strings")
  7891. }
  7892. *e = MetafieldDefinitionValidationStatus(str)
  7893. if !e.IsValid() {
  7894. return fmt.Errorf("%s is not a valid MetafieldDefinitionValidationStatus", str)
  7895. }
  7896. return nil
  7897. }
  7898. func (e MetafieldDefinitionValidationStatus) MarshalGQL(w io.Writer) {
  7899. fmt.Fprint(w, strconv.Quote(e.String()))
  7900. }
  7901. type MetafieldOwnerType string
  7902. const (
  7903. MetafieldOwnerTypeAPIPermission MetafieldOwnerType = "API_PERMISSION"
  7904. MetafieldOwnerTypeArticle MetafieldOwnerType = "ARTICLE"
  7905. MetafieldOwnerTypeBlog MetafieldOwnerType = "BLOG"
  7906. MetafieldOwnerTypeCollection MetafieldOwnerType = "COLLECTION"
  7907. MetafieldOwnerTypeCustomer MetafieldOwnerType = "CUSTOMER"
  7908. MetafieldOwnerTypeDiscount MetafieldOwnerType = "DISCOUNT"
  7909. MetafieldOwnerTypeDraftorder MetafieldOwnerType = "DRAFTORDER"
  7910. MetafieldOwnerTypeLocation MetafieldOwnerType = "LOCATION"
  7911. MetafieldOwnerTypeOrder MetafieldOwnerType = "ORDER"
  7912. MetafieldOwnerTypePage MetafieldOwnerType = "PAGE"
  7913. MetafieldOwnerTypeProduct MetafieldOwnerType = "PRODUCT"
  7914. MetafieldOwnerTypeProductimage MetafieldOwnerType = "PRODUCTIMAGE"
  7915. MetafieldOwnerTypeProductvariant MetafieldOwnerType = "PRODUCTVARIANT"
  7916. MetafieldOwnerTypeShop MetafieldOwnerType = "SHOP"
  7917. )
  7918. var AllMetafieldOwnerType = []MetafieldOwnerType{
  7919. MetafieldOwnerTypeAPIPermission,
  7920. MetafieldOwnerTypeArticle,
  7921. MetafieldOwnerTypeBlog,
  7922. MetafieldOwnerTypeCollection,
  7923. MetafieldOwnerTypeCustomer,
  7924. MetafieldOwnerTypeDiscount,
  7925. MetafieldOwnerTypeDraftorder,
  7926. MetafieldOwnerTypeLocation,
  7927. MetafieldOwnerTypeOrder,
  7928. MetafieldOwnerTypePage,
  7929. MetafieldOwnerTypeProduct,
  7930. MetafieldOwnerTypeProductimage,
  7931. MetafieldOwnerTypeProductvariant,
  7932. MetafieldOwnerTypeShop,
  7933. }
  7934. func (e MetafieldOwnerType) IsValid() bool {
  7935. switch e {
  7936. case MetafieldOwnerTypeAPIPermission, MetafieldOwnerTypeArticle, MetafieldOwnerTypeBlog, MetafieldOwnerTypeCollection, MetafieldOwnerTypeCustomer, MetafieldOwnerTypeDiscount, MetafieldOwnerTypeDraftorder, MetafieldOwnerTypeLocation, MetafieldOwnerTypeOrder, MetafieldOwnerTypePage, MetafieldOwnerTypeProduct, MetafieldOwnerTypeProductimage, MetafieldOwnerTypeProductvariant, MetafieldOwnerTypeShop:
  7937. return true
  7938. }
  7939. return false
  7940. }
  7941. func (e MetafieldOwnerType) String() string {
  7942. return string(e)
  7943. }
  7944. func (e *MetafieldOwnerType) UnmarshalGQL(v interface{}) error {
  7945. str, ok := v.(string)
  7946. if !ok {
  7947. return fmt.Errorf("enums must be strings")
  7948. }
  7949. *e = MetafieldOwnerType(str)
  7950. if !e.IsValid() {
  7951. return fmt.Errorf("%s is not a valid MetafieldOwnerType", str)
  7952. }
  7953. return nil
  7954. }
  7955. func (e MetafieldOwnerType) MarshalGQL(w io.Writer) {
  7956. fmt.Fprint(w, strconv.Quote(e.String()))
  7957. }
  7958. type MetafieldValidationStatus string
  7959. const (
  7960. MetafieldValidationStatusAny MetafieldValidationStatus = "ANY"
  7961. MetafieldValidationStatusValid MetafieldValidationStatus = "VALID"
  7962. MetafieldValidationStatusInvalid MetafieldValidationStatus = "INVALID"
  7963. )
  7964. var AllMetafieldValidationStatus = []MetafieldValidationStatus{
  7965. MetafieldValidationStatusAny,
  7966. MetafieldValidationStatusValid,
  7967. MetafieldValidationStatusInvalid,
  7968. }
  7969. func (e MetafieldValidationStatus) IsValid() bool {
  7970. switch e {
  7971. case MetafieldValidationStatusAny, MetafieldValidationStatusValid, MetafieldValidationStatusInvalid:
  7972. return true
  7973. }
  7974. return false
  7975. }
  7976. func (e MetafieldValidationStatus) String() string {
  7977. return string(e)
  7978. }
  7979. func (e *MetafieldValidationStatus) UnmarshalGQL(v interface{}) error {
  7980. str, ok := v.(string)
  7981. if !ok {
  7982. return fmt.Errorf("enums must be strings")
  7983. }
  7984. *e = MetafieldValidationStatus(str)
  7985. if !e.IsValid() {
  7986. return fmt.Errorf("%s is not a valid MetafieldValidationStatus", str)
  7987. }
  7988. return nil
  7989. }
  7990. func (e MetafieldValidationStatus) MarshalGQL(w io.Writer) {
  7991. fmt.Fprint(w, strconv.Quote(e.String()))
  7992. }
  7993. type MethodDefinitionSortKeys string
  7994. const (
  7995. MethodDefinitionSortKeysRateProviderType MethodDefinitionSortKeys = "RATE_PROVIDER_TYPE"
  7996. MethodDefinitionSortKeysID MethodDefinitionSortKeys = "ID"
  7997. MethodDefinitionSortKeysRelevance MethodDefinitionSortKeys = "RELEVANCE"
  7998. )
  7999. var AllMethodDefinitionSortKeys = []MethodDefinitionSortKeys{
  8000. MethodDefinitionSortKeysRateProviderType,
  8001. MethodDefinitionSortKeysID,
  8002. MethodDefinitionSortKeysRelevance,
  8003. }
  8004. func (e MethodDefinitionSortKeys) IsValid() bool {
  8005. switch e {
  8006. case MethodDefinitionSortKeysRateProviderType, MethodDefinitionSortKeysID, MethodDefinitionSortKeysRelevance:
  8007. return true
  8008. }
  8009. return false
  8010. }
  8011. func (e MethodDefinitionSortKeys) String() string {
  8012. return string(e)
  8013. }
  8014. func (e *MethodDefinitionSortKeys) UnmarshalGQL(v interface{}) error {
  8015. str, ok := v.(string)
  8016. if !ok {
  8017. return fmt.Errorf("enums must be strings")
  8018. }
  8019. *e = MethodDefinitionSortKeys(str)
  8020. if !e.IsValid() {
  8021. return fmt.Errorf("%s is not a valid MethodDefinitionSortKeys", str)
  8022. }
  8023. return nil
  8024. }
  8025. func (e MethodDefinitionSortKeys) MarshalGQL(w io.Writer) {
  8026. fmt.Fprint(w, strconv.Quote(e.String()))
  8027. }
  8028. type OrderActionType string
  8029. const (
  8030. OrderActionTypeOrder OrderActionType = "ORDER"
  8031. OrderActionTypeOrderEdit OrderActionType = "ORDER_EDIT"
  8032. OrderActionTypeRefund OrderActionType = "REFUND"
  8033. OrderActionTypeUnknown OrderActionType = "UNKNOWN"
  8034. )
  8035. var AllOrderActionType = []OrderActionType{
  8036. OrderActionTypeOrder,
  8037. OrderActionTypeOrderEdit,
  8038. OrderActionTypeRefund,
  8039. OrderActionTypeUnknown,
  8040. }
  8041. func (e OrderActionType) IsValid() bool {
  8042. switch e {
  8043. case OrderActionTypeOrder, OrderActionTypeOrderEdit, OrderActionTypeRefund, OrderActionTypeUnknown:
  8044. return true
  8045. }
  8046. return false
  8047. }
  8048. func (e OrderActionType) String() string {
  8049. return string(e)
  8050. }
  8051. func (e *OrderActionType) UnmarshalGQL(v interface{}) error {
  8052. str, ok := v.(string)
  8053. if !ok {
  8054. return fmt.Errorf("enums must be strings")
  8055. }
  8056. *e = OrderActionType(str)
  8057. if !e.IsValid() {
  8058. return fmt.Errorf("%s is not a valid OrderActionType", str)
  8059. }
  8060. return nil
  8061. }
  8062. func (e OrderActionType) MarshalGQL(w io.Writer) {
  8063. fmt.Fprint(w, strconv.Quote(e.String()))
  8064. }
  8065. type OrderCancelReason string
  8066. const (
  8067. OrderCancelReasonCustomer OrderCancelReason = "CUSTOMER"
  8068. OrderCancelReasonFraud OrderCancelReason = "FRAUD"
  8069. OrderCancelReasonInventory OrderCancelReason = "INVENTORY"
  8070. OrderCancelReasonDeclined OrderCancelReason = "DECLINED"
  8071. OrderCancelReasonOther OrderCancelReason = "OTHER"
  8072. )
  8073. var AllOrderCancelReason = []OrderCancelReason{
  8074. OrderCancelReasonCustomer,
  8075. OrderCancelReasonFraud,
  8076. OrderCancelReasonInventory,
  8077. OrderCancelReasonDeclined,
  8078. OrderCancelReasonOther,
  8079. }
  8080. func (e OrderCancelReason) IsValid() bool {
  8081. switch e {
  8082. case OrderCancelReasonCustomer, OrderCancelReasonFraud, OrderCancelReasonInventory, OrderCancelReasonDeclined, OrderCancelReasonOther:
  8083. return true
  8084. }
  8085. return false
  8086. }
  8087. func (e OrderCancelReason) String() string {
  8088. return string(e)
  8089. }
  8090. func (e *OrderCancelReason) UnmarshalGQL(v interface{}) error {
  8091. str, ok := v.(string)
  8092. if !ok {
  8093. return fmt.Errorf("enums must be strings")
  8094. }
  8095. *e = OrderCancelReason(str)
  8096. if !e.IsValid() {
  8097. return fmt.Errorf("%s is not a valid OrderCancelReason", str)
  8098. }
  8099. return nil
  8100. }
  8101. func (e OrderCancelReason) MarshalGQL(w io.Writer) {
  8102. fmt.Fprint(w, strconv.Quote(e.String()))
  8103. }
  8104. type OrderDisplayFinancialStatus string
  8105. const (
  8106. OrderDisplayFinancialStatusPending OrderDisplayFinancialStatus = "PENDING"
  8107. OrderDisplayFinancialStatusAuthorized OrderDisplayFinancialStatus = "AUTHORIZED"
  8108. OrderDisplayFinancialStatusPartiallyPaid OrderDisplayFinancialStatus = "PARTIALLY_PAID"
  8109. OrderDisplayFinancialStatusPartiallyRefunded OrderDisplayFinancialStatus = "PARTIALLY_REFUNDED"
  8110. OrderDisplayFinancialStatusVoided OrderDisplayFinancialStatus = "VOIDED"
  8111. OrderDisplayFinancialStatusPaid OrderDisplayFinancialStatus = "PAID"
  8112. OrderDisplayFinancialStatusRefunded OrderDisplayFinancialStatus = "REFUNDED"
  8113. OrderDisplayFinancialStatusExpired OrderDisplayFinancialStatus = "EXPIRED"
  8114. )
  8115. var AllOrderDisplayFinancialStatus = []OrderDisplayFinancialStatus{
  8116. OrderDisplayFinancialStatusPending,
  8117. OrderDisplayFinancialStatusAuthorized,
  8118. OrderDisplayFinancialStatusPartiallyPaid,
  8119. OrderDisplayFinancialStatusPartiallyRefunded,
  8120. OrderDisplayFinancialStatusVoided,
  8121. OrderDisplayFinancialStatusPaid,
  8122. OrderDisplayFinancialStatusRefunded,
  8123. OrderDisplayFinancialStatusExpired,
  8124. }
  8125. func (e OrderDisplayFinancialStatus) IsValid() bool {
  8126. switch e {
  8127. case OrderDisplayFinancialStatusPending, OrderDisplayFinancialStatusAuthorized, OrderDisplayFinancialStatusPartiallyPaid, OrderDisplayFinancialStatusPartiallyRefunded, OrderDisplayFinancialStatusVoided, OrderDisplayFinancialStatusPaid, OrderDisplayFinancialStatusRefunded, OrderDisplayFinancialStatusExpired:
  8128. return true
  8129. }
  8130. return false
  8131. }
  8132. func (e OrderDisplayFinancialStatus) String() string {
  8133. return string(e)
  8134. }
  8135. func (e *OrderDisplayFinancialStatus) UnmarshalGQL(v interface{}) error {
  8136. str, ok := v.(string)
  8137. if !ok {
  8138. return fmt.Errorf("enums must be strings")
  8139. }
  8140. *e = OrderDisplayFinancialStatus(str)
  8141. if !e.IsValid() {
  8142. return fmt.Errorf("%s is not a valid OrderDisplayFinancialStatus", str)
  8143. }
  8144. return nil
  8145. }
  8146. func (e OrderDisplayFinancialStatus) MarshalGQL(w io.Writer) {
  8147. fmt.Fprint(w, strconv.Quote(e.String()))
  8148. }
  8149. type OrderDisplayFulfillmentStatus string
  8150. const (
  8151. OrderDisplayFulfillmentStatusUnfulfilled OrderDisplayFulfillmentStatus = "UNFULFILLED"
  8152. OrderDisplayFulfillmentStatusPartiallyFulfilled OrderDisplayFulfillmentStatus = "PARTIALLY_FULFILLED"
  8153. OrderDisplayFulfillmentStatusFulfilled OrderDisplayFulfillmentStatus = "FULFILLED"
  8154. OrderDisplayFulfillmentStatusRestocked OrderDisplayFulfillmentStatus = "RESTOCKED"
  8155. OrderDisplayFulfillmentStatusPendingFulfillment OrderDisplayFulfillmentStatus = "PENDING_FULFILLMENT"
  8156. OrderDisplayFulfillmentStatusOpen OrderDisplayFulfillmentStatus = "OPEN"
  8157. OrderDisplayFulfillmentStatusInProgress OrderDisplayFulfillmentStatus = "IN_PROGRESS"
  8158. OrderDisplayFulfillmentStatusOnHold OrderDisplayFulfillmentStatus = "ON_HOLD"
  8159. OrderDisplayFulfillmentStatusScheduled OrderDisplayFulfillmentStatus = "SCHEDULED"
  8160. )
  8161. var AllOrderDisplayFulfillmentStatus = []OrderDisplayFulfillmentStatus{
  8162. OrderDisplayFulfillmentStatusUnfulfilled,
  8163. OrderDisplayFulfillmentStatusPartiallyFulfilled,
  8164. OrderDisplayFulfillmentStatusFulfilled,
  8165. OrderDisplayFulfillmentStatusRestocked,
  8166. OrderDisplayFulfillmentStatusPendingFulfillment,
  8167. OrderDisplayFulfillmentStatusOpen,
  8168. OrderDisplayFulfillmentStatusInProgress,
  8169. OrderDisplayFulfillmentStatusOnHold,
  8170. OrderDisplayFulfillmentStatusScheduled,
  8171. }
  8172. func (e OrderDisplayFulfillmentStatus) IsValid() bool {
  8173. switch e {
  8174. case OrderDisplayFulfillmentStatusUnfulfilled, OrderDisplayFulfillmentStatusPartiallyFulfilled, OrderDisplayFulfillmentStatusFulfilled, OrderDisplayFulfillmentStatusRestocked, OrderDisplayFulfillmentStatusPendingFulfillment, OrderDisplayFulfillmentStatusOpen, OrderDisplayFulfillmentStatusInProgress, OrderDisplayFulfillmentStatusOnHold, OrderDisplayFulfillmentStatusScheduled:
  8175. return true
  8176. }
  8177. return false
  8178. }
  8179. func (e OrderDisplayFulfillmentStatus) String() string {
  8180. return string(e)
  8181. }
  8182. func (e *OrderDisplayFulfillmentStatus) UnmarshalGQL(v interface{}) error {
  8183. str, ok := v.(string)
  8184. if !ok {
  8185. return fmt.Errorf("enums must be strings")
  8186. }
  8187. *e = OrderDisplayFulfillmentStatus(str)
  8188. if !e.IsValid() {
  8189. return fmt.Errorf("%s is not a valid OrderDisplayFulfillmentStatus", str)
  8190. }
  8191. return nil
  8192. }
  8193. func (e OrderDisplayFulfillmentStatus) MarshalGQL(w io.Writer) {
  8194. fmt.Fprint(w, strconv.Quote(e.String()))
  8195. }
  8196. type OrderRiskLevel string
  8197. const (
  8198. OrderRiskLevelLow OrderRiskLevel = "LOW"
  8199. OrderRiskLevelMedium OrderRiskLevel = "MEDIUM"
  8200. OrderRiskLevelHigh OrderRiskLevel = "HIGH"
  8201. )
  8202. var AllOrderRiskLevel = []OrderRiskLevel{
  8203. OrderRiskLevelLow,
  8204. OrderRiskLevelMedium,
  8205. OrderRiskLevelHigh,
  8206. }
  8207. func (e OrderRiskLevel) IsValid() bool {
  8208. switch e {
  8209. case OrderRiskLevelLow, OrderRiskLevelMedium, OrderRiskLevelHigh:
  8210. return true
  8211. }
  8212. return false
  8213. }
  8214. func (e OrderRiskLevel) String() string {
  8215. return string(e)
  8216. }
  8217. func (e *OrderRiskLevel) UnmarshalGQL(v interface{}) error {
  8218. str, ok := v.(string)
  8219. if !ok {
  8220. return fmt.Errorf("enums must be strings")
  8221. }
  8222. *e = OrderRiskLevel(str)
  8223. if !e.IsValid() {
  8224. return fmt.Errorf("%s is not a valid OrderRiskLevel", str)
  8225. }
  8226. return nil
  8227. }
  8228. func (e OrderRiskLevel) MarshalGQL(w io.Writer) {
  8229. fmt.Fprint(w, strconv.Quote(e.String()))
  8230. }
  8231. type OrderSortKeys string
  8232. const (
  8233. OrderSortKeysCreatedAt OrderSortKeys = "CREATED_AT"
  8234. OrderSortKeysCustomerName OrderSortKeys = "CUSTOMER_NAME"
  8235. OrderSortKeysFinancialStatus OrderSortKeys = "FINANCIAL_STATUS"
  8236. OrderSortKeysFulfillmentStatus OrderSortKeys = "FULFILLMENT_STATUS"
  8237. OrderSortKeysOrderNumber OrderSortKeys = "ORDER_NUMBER"
  8238. OrderSortKeysProcessedAt OrderSortKeys = "PROCESSED_AT"
  8239. OrderSortKeysTotalPrice OrderSortKeys = "TOTAL_PRICE"
  8240. OrderSortKeysUpdatedAt OrderSortKeys = "UPDATED_AT"
  8241. OrderSortKeysID OrderSortKeys = "ID"
  8242. OrderSortKeysRelevance OrderSortKeys = "RELEVANCE"
  8243. )
  8244. var AllOrderSortKeys = []OrderSortKeys{
  8245. OrderSortKeysCreatedAt,
  8246. OrderSortKeysCustomerName,
  8247. OrderSortKeysFinancialStatus,
  8248. OrderSortKeysFulfillmentStatus,
  8249. OrderSortKeysOrderNumber,
  8250. OrderSortKeysProcessedAt,
  8251. OrderSortKeysTotalPrice,
  8252. OrderSortKeysUpdatedAt,
  8253. OrderSortKeysID,
  8254. OrderSortKeysRelevance,
  8255. }
  8256. func (e OrderSortKeys) IsValid() bool {
  8257. switch e {
  8258. case OrderSortKeysCreatedAt, OrderSortKeysCustomerName, OrderSortKeysFinancialStatus, OrderSortKeysFulfillmentStatus, OrderSortKeysOrderNumber, OrderSortKeysProcessedAt, OrderSortKeysTotalPrice, OrderSortKeysUpdatedAt, OrderSortKeysID, OrderSortKeysRelevance:
  8259. return true
  8260. }
  8261. return false
  8262. }
  8263. func (e OrderSortKeys) String() string {
  8264. return string(e)
  8265. }
  8266. func (e *OrderSortKeys) UnmarshalGQL(v interface{}) error {
  8267. str, ok := v.(string)
  8268. if !ok {
  8269. return fmt.Errorf("enums must be strings")
  8270. }
  8271. *e = OrderSortKeys(str)
  8272. if !e.IsValid() {
  8273. return fmt.Errorf("%s is not a valid OrderSortKeys", str)
  8274. }
  8275. return nil
  8276. }
  8277. func (e OrderSortKeys) MarshalGQL(w io.Writer) {
  8278. fmt.Fprint(w, strconv.Quote(e.String()))
  8279. }
  8280. type OrderTransactionErrorCode string
  8281. const (
  8282. OrderTransactionErrorCodeIncorrectNumber OrderTransactionErrorCode = "INCORRECT_NUMBER"
  8283. OrderTransactionErrorCodeInvalidNumber OrderTransactionErrorCode = "INVALID_NUMBER"
  8284. OrderTransactionErrorCodeInvalidExpiryDate OrderTransactionErrorCode = "INVALID_EXPIRY_DATE"
  8285. OrderTransactionErrorCodeInvalidCvc OrderTransactionErrorCode = "INVALID_CVC"
  8286. OrderTransactionErrorCodeExpiredCard OrderTransactionErrorCode = "EXPIRED_CARD"
  8287. OrderTransactionErrorCodeIncorrectCvc OrderTransactionErrorCode = "INCORRECT_CVC"
  8288. OrderTransactionErrorCodeIncorrectZip OrderTransactionErrorCode = "INCORRECT_ZIP"
  8289. OrderTransactionErrorCodeIncorrectAddress OrderTransactionErrorCode = "INCORRECT_ADDRESS"
  8290. OrderTransactionErrorCodeIncorrectPin OrderTransactionErrorCode = "INCORRECT_PIN"
  8291. OrderTransactionErrorCodeCardDeclined OrderTransactionErrorCode = "CARD_DECLINED"
  8292. OrderTransactionErrorCodeProcessingError OrderTransactionErrorCode = "PROCESSING_ERROR"
  8293. OrderTransactionErrorCodeCallIssuer OrderTransactionErrorCode = "CALL_ISSUER"
  8294. OrderTransactionErrorCodePickUpCard OrderTransactionErrorCode = "PICK_UP_CARD"
  8295. OrderTransactionErrorCodeConfigError OrderTransactionErrorCode = "CONFIG_ERROR"
  8296. OrderTransactionErrorCodeTestModeLiveCard OrderTransactionErrorCode = "TEST_MODE_LIVE_CARD"
  8297. OrderTransactionErrorCodeUnsupportedFeature OrderTransactionErrorCode = "UNSUPPORTED_FEATURE"
  8298. OrderTransactionErrorCodeGenericError OrderTransactionErrorCode = "GENERIC_ERROR"
  8299. OrderTransactionErrorCodeInvalidCountry OrderTransactionErrorCode = "INVALID_COUNTRY"
  8300. OrderTransactionErrorCodeInvalidAmount OrderTransactionErrorCode = "INVALID_AMOUNT"
  8301. OrderTransactionErrorCodePaymentMethodUnavailable OrderTransactionErrorCode = "PAYMENT_METHOD_UNAVAILABLE"
  8302. OrderTransactionErrorCodeAmazonPaymentsInvalidPaymentMethod OrderTransactionErrorCode = "AMAZON_PAYMENTS_INVALID_PAYMENT_METHOD"
  8303. OrderTransactionErrorCodeAmazonPaymentsMaxAmountCharged OrderTransactionErrorCode = "AMAZON_PAYMENTS_MAX_AMOUNT_CHARGED"
  8304. OrderTransactionErrorCodeAmazonPaymentsMaxAmountRefunded OrderTransactionErrorCode = "AMAZON_PAYMENTS_MAX_AMOUNT_REFUNDED"
  8305. OrderTransactionErrorCodeAmazonPaymentsMaxAuthorizationsCaptured OrderTransactionErrorCode = "AMAZON_PAYMENTS_MAX_AUTHORIZATIONS_CAPTURED"
  8306. OrderTransactionErrorCodeAmazonPaymentsMaxRefundsProcessed OrderTransactionErrorCode = "AMAZON_PAYMENTS_MAX_REFUNDS_PROCESSED"
  8307. OrderTransactionErrorCodeAmazonPaymentsOrderReferenceCanceled OrderTransactionErrorCode = "AMAZON_PAYMENTS_ORDER_REFERENCE_CANCELED"
  8308. OrderTransactionErrorCodeAmazonPaymentsStale OrderTransactionErrorCode = "AMAZON_PAYMENTS_STALE"
  8309. )
  8310. var AllOrderTransactionErrorCode = []OrderTransactionErrorCode{
  8311. OrderTransactionErrorCodeIncorrectNumber,
  8312. OrderTransactionErrorCodeInvalidNumber,
  8313. OrderTransactionErrorCodeInvalidExpiryDate,
  8314. OrderTransactionErrorCodeInvalidCvc,
  8315. OrderTransactionErrorCodeExpiredCard,
  8316. OrderTransactionErrorCodeIncorrectCvc,
  8317. OrderTransactionErrorCodeIncorrectZip,
  8318. OrderTransactionErrorCodeIncorrectAddress,
  8319. OrderTransactionErrorCodeIncorrectPin,
  8320. OrderTransactionErrorCodeCardDeclined,
  8321. OrderTransactionErrorCodeProcessingError,
  8322. OrderTransactionErrorCodeCallIssuer,
  8323. OrderTransactionErrorCodePickUpCard,
  8324. OrderTransactionErrorCodeConfigError,
  8325. OrderTransactionErrorCodeTestModeLiveCard,
  8326. OrderTransactionErrorCodeUnsupportedFeature,
  8327. OrderTransactionErrorCodeGenericError,
  8328. OrderTransactionErrorCodeInvalidCountry,
  8329. OrderTransactionErrorCodeInvalidAmount,
  8330. OrderTransactionErrorCodePaymentMethodUnavailable,
  8331. OrderTransactionErrorCodeAmazonPaymentsInvalidPaymentMethod,
  8332. OrderTransactionErrorCodeAmazonPaymentsMaxAmountCharged,
  8333. OrderTransactionErrorCodeAmazonPaymentsMaxAmountRefunded,
  8334. OrderTransactionErrorCodeAmazonPaymentsMaxAuthorizationsCaptured,
  8335. OrderTransactionErrorCodeAmazonPaymentsMaxRefundsProcessed,
  8336. OrderTransactionErrorCodeAmazonPaymentsOrderReferenceCanceled,
  8337. OrderTransactionErrorCodeAmazonPaymentsStale,
  8338. }
  8339. func (e OrderTransactionErrorCode) IsValid() bool {
  8340. switch e {
  8341. case OrderTransactionErrorCodeIncorrectNumber, OrderTransactionErrorCodeInvalidNumber, OrderTransactionErrorCodeInvalidExpiryDate, OrderTransactionErrorCodeInvalidCvc, OrderTransactionErrorCodeExpiredCard, OrderTransactionErrorCodeIncorrectCvc, OrderTransactionErrorCodeIncorrectZip, OrderTransactionErrorCodeIncorrectAddress, OrderTransactionErrorCodeIncorrectPin, OrderTransactionErrorCodeCardDeclined, OrderTransactionErrorCodeProcessingError, OrderTransactionErrorCodeCallIssuer, OrderTransactionErrorCodePickUpCard, OrderTransactionErrorCodeConfigError, OrderTransactionErrorCodeTestModeLiveCard, OrderTransactionErrorCodeUnsupportedFeature, OrderTransactionErrorCodeGenericError, OrderTransactionErrorCodeInvalidCountry, OrderTransactionErrorCodeInvalidAmount, OrderTransactionErrorCodePaymentMethodUnavailable, OrderTransactionErrorCodeAmazonPaymentsInvalidPaymentMethod, OrderTransactionErrorCodeAmazonPaymentsMaxAmountCharged, OrderTransactionErrorCodeAmazonPaymentsMaxAmountRefunded, OrderTransactionErrorCodeAmazonPaymentsMaxAuthorizationsCaptured, OrderTransactionErrorCodeAmazonPaymentsMaxRefundsProcessed, OrderTransactionErrorCodeAmazonPaymentsOrderReferenceCanceled, OrderTransactionErrorCodeAmazonPaymentsStale:
  8342. return true
  8343. }
  8344. return false
  8345. }
  8346. func (e OrderTransactionErrorCode) String() string {
  8347. return string(e)
  8348. }
  8349. func (e *OrderTransactionErrorCode) UnmarshalGQL(v interface{}) error {
  8350. str, ok := v.(string)
  8351. if !ok {
  8352. return fmt.Errorf("enums must be strings")
  8353. }
  8354. *e = OrderTransactionErrorCode(str)
  8355. if !e.IsValid() {
  8356. return fmt.Errorf("%s is not a valid OrderTransactionErrorCode", str)
  8357. }
  8358. return nil
  8359. }
  8360. func (e OrderTransactionErrorCode) MarshalGQL(w io.Writer) {
  8361. fmt.Fprint(w, strconv.Quote(e.String()))
  8362. }
  8363. type OrderTransactionKind string
  8364. const (
  8365. OrderTransactionKindSale OrderTransactionKind = "SALE"
  8366. OrderTransactionKindCapture OrderTransactionKind = "CAPTURE"
  8367. OrderTransactionKindAuthorization OrderTransactionKind = "AUTHORIZATION"
  8368. OrderTransactionKindVoid OrderTransactionKind = "VOID"
  8369. OrderTransactionKindRefund OrderTransactionKind = "REFUND"
  8370. OrderTransactionKindChange OrderTransactionKind = "CHANGE"
  8371. OrderTransactionKindEmvAuthorization OrderTransactionKind = "EMV_AUTHORIZATION"
  8372. OrderTransactionKindSuggestedRefund OrderTransactionKind = "SUGGESTED_REFUND"
  8373. )
  8374. var AllOrderTransactionKind = []OrderTransactionKind{
  8375. OrderTransactionKindSale,
  8376. OrderTransactionKindCapture,
  8377. OrderTransactionKindAuthorization,
  8378. OrderTransactionKindVoid,
  8379. OrderTransactionKindRefund,
  8380. OrderTransactionKindChange,
  8381. OrderTransactionKindEmvAuthorization,
  8382. OrderTransactionKindSuggestedRefund,
  8383. }
  8384. func (e OrderTransactionKind) IsValid() bool {
  8385. switch e {
  8386. case OrderTransactionKindSale, OrderTransactionKindCapture, OrderTransactionKindAuthorization, OrderTransactionKindVoid, OrderTransactionKindRefund, OrderTransactionKindChange, OrderTransactionKindEmvAuthorization, OrderTransactionKindSuggestedRefund:
  8387. return true
  8388. }
  8389. return false
  8390. }
  8391. func (e OrderTransactionKind) String() string {
  8392. return string(e)
  8393. }
  8394. func (e *OrderTransactionKind) UnmarshalGQL(v interface{}) error {
  8395. str, ok := v.(string)
  8396. if !ok {
  8397. return fmt.Errorf("enums must be strings")
  8398. }
  8399. *e = OrderTransactionKind(str)
  8400. if !e.IsValid() {
  8401. return fmt.Errorf("%s is not a valid OrderTransactionKind", str)
  8402. }
  8403. return nil
  8404. }
  8405. func (e OrderTransactionKind) MarshalGQL(w io.Writer) {
  8406. fmt.Fprint(w, strconv.Quote(e.String()))
  8407. }
  8408. type OrderTransactionStatus string
  8409. const (
  8410. OrderTransactionStatusSuccess OrderTransactionStatus = "SUCCESS"
  8411. OrderTransactionStatusFailure OrderTransactionStatus = "FAILURE"
  8412. OrderTransactionStatusPending OrderTransactionStatus = "PENDING"
  8413. OrderTransactionStatusError OrderTransactionStatus = "ERROR"
  8414. OrderTransactionStatusAwaitingResponse OrderTransactionStatus = "AWAITING_RESPONSE"
  8415. OrderTransactionStatusUnknown OrderTransactionStatus = "UNKNOWN"
  8416. )
  8417. var AllOrderTransactionStatus = []OrderTransactionStatus{
  8418. OrderTransactionStatusSuccess,
  8419. OrderTransactionStatusFailure,
  8420. OrderTransactionStatusPending,
  8421. OrderTransactionStatusError,
  8422. OrderTransactionStatusAwaitingResponse,
  8423. OrderTransactionStatusUnknown,
  8424. }
  8425. func (e OrderTransactionStatus) IsValid() bool {
  8426. switch e {
  8427. case OrderTransactionStatusSuccess, OrderTransactionStatusFailure, OrderTransactionStatusPending, OrderTransactionStatusError, OrderTransactionStatusAwaitingResponse, OrderTransactionStatusUnknown:
  8428. return true
  8429. }
  8430. return false
  8431. }
  8432. func (e OrderTransactionStatus) String() string {
  8433. return string(e)
  8434. }
  8435. func (e *OrderTransactionStatus) UnmarshalGQL(v interface{}) error {
  8436. str, ok := v.(string)
  8437. if !ok {
  8438. return fmt.Errorf("enums must be strings")
  8439. }
  8440. *e = OrderTransactionStatus(str)
  8441. if !e.IsValid() {
  8442. return fmt.Errorf("%s is not a valid OrderTransactionStatus", str)
  8443. }
  8444. return nil
  8445. }
  8446. func (e OrderTransactionStatus) MarshalGQL(w io.Writer) {
  8447. fmt.Fprint(w, strconv.Quote(e.String()))
  8448. }
  8449. type PaymentTermsType string
  8450. const (
  8451. PaymentTermsTypeReceipt PaymentTermsType = "RECEIPT"
  8452. PaymentTermsTypeNet PaymentTermsType = "NET"
  8453. PaymentTermsTypeFixed PaymentTermsType = "FIXED"
  8454. PaymentTermsTypeUnknown PaymentTermsType = "UNKNOWN"
  8455. )
  8456. var AllPaymentTermsType = []PaymentTermsType{
  8457. PaymentTermsTypeReceipt,
  8458. PaymentTermsTypeNet,
  8459. PaymentTermsTypeFixed,
  8460. PaymentTermsTypeUnknown,
  8461. }
  8462. func (e PaymentTermsType) IsValid() bool {
  8463. switch e {
  8464. case PaymentTermsTypeReceipt, PaymentTermsTypeNet, PaymentTermsTypeFixed, PaymentTermsTypeUnknown:
  8465. return true
  8466. }
  8467. return false
  8468. }
  8469. func (e PaymentTermsType) String() string {
  8470. return string(e)
  8471. }
  8472. func (e *PaymentTermsType) UnmarshalGQL(v interface{}) error {
  8473. str, ok := v.(string)
  8474. if !ok {
  8475. return fmt.Errorf("enums must be strings")
  8476. }
  8477. *e = PaymentTermsType(str)
  8478. if !e.IsValid() {
  8479. return fmt.Errorf("%s is not a valid PaymentTermsType", str)
  8480. }
  8481. return nil
  8482. }
  8483. func (e PaymentTermsType) MarshalGQL(w io.Writer) {
  8484. fmt.Fprint(w, strconv.Quote(e.String()))
  8485. }
  8486. type PaypalExpressSubscriptionsGatewayStatus string
  8487. const (
  8488. PaypalExpressSubscriptionsGatewayStatusEnabled PaypalExpressSubscriptionsGatewayStatus = "ENABLED"
  8489. PaypalExpressSubscriptionsGatewayStatusDisabled PaypalExpressSubscriptionsGatewayStatus = "DISABLED"
  8490. PaypalExpressSubscriptionsGatewayStatusPending PaypalExpressSubscriptionsGatewayStatus = "PENDING"
  8491. )
  8492. var AllPaypalExpressSubscriptionsGatewayStatus = []PaypalExpressSubscriptionsGatewayStatus{
  8493. PaypalExpressSubscriptionsGatewayStatusEnabled,
  8494. PaypalExpressSubscriptionsGatewayStatusDisabled,
  8495. PaypalExpressSubscriptionsGatewayStatusPending,
  8496. }
  8497. func (e PaypalExpressSubscriptionsGatewayStatus) IsValid() bool {
  8498. switch e {
  8499. case PaypalExpressSubscriptionsGatewayStatusEnabled, PaypalExpressSubscriptionsGatewayStatusDisabled, PaypalExpressSubscriptionsGatewayStatusPending:
  8500. return true
  8501. }
  8502. return false
  8503. }
  8504. func (e PaypalExpressSubscriptionsGatewayStatus) String() string {
  8505. return string(e)
  8506. }
  8507. func (e *PaypalExpressSubscriptionsGatewayStatus) UnmarshalGQL(v interface{}) error {
  8508. str, ok := v.(string)
  8509. if !ok {
  8510. return fmt.Errorf("enums must be strings")
  8511. }
  8512. *e = PaypalExpressSubscriptionsGatewayStatus(str)
  8513. if !e.IsValid() {
  8514. return fmt.Errorf("%s is not a valid PaypalExpressSubscriptionsGatewayStatus", str)
  8515. }
  8516. return nil
  8517. }
  8518. func (e PaypalExpressSubscriptionsGatewayStatus) MarshalGQL(w io.Writer) {
  8519. fmt.Fprint(w, strconv.Quote(e.String()))
  8520. }
  8521. type PriceListAdjustmentType string
  8522. const (
  8523. PriceListAdjustmentTypePercentageDecrease PriceListAdjustmentType = "PERCENTAGE_DECREASE"
  8524. PriceListAdjustmentTypePercentageIncrease PriceListAdjustmentType = "PERCENTAGE_INCREASE"
  8525. )
  8526. var AllPriceListAdjustmentType = []PriceListAdjustmentType{
  8527. PriceListAdjustmentTypePercentageDecrease,
  8528. PriceListAdjustmentTypePercentageIncrease,
  8529. }
  8530. func (e PriceListAdjustmentType) IsValid() bool {
  8531. switch e {
  8532. case PriceListAdjustmentTypePercentageDecrease, PriceListAdjustmentTypePercentageIncrease:
  8533. return true
  8534. }
  8535. return false
  8536. }
  8537. func (e PriceListAdjustmentType) String() string {
  8538. return string(e)
  8539. }
  8540. func (e *PriceListAdjustmentType) UnmarshalGQL(v interface{}) error {
  8541. str, ok := v.(string)
  8542. if !ok {
  8543. return fmt.Errorf("enums must be strings")
  8544. }
  8545. *e = PriceListAdjustmentType(str)
  8546. if !e.IsValid() {
  8547. return fmt.Errorf("%s is not a valid PriceListAdjustmentType", str)
  8548. }
  8549. return nil
  8550. }
  8551. func (e PriceListAdjustmentType) MarshalGQL(w io.Writer) {
  8552. fmt.Fprint(w, strconv.Quote(e.String()))
  8553. }
  8554. type PriceListPriceOriginType string
  8555. const (
  8556. PriceListPriceOriginTypeFixed PriceListPriceOriginType = "FIXED"
  8557. PriceListPriceOriginTypeRelative PriceListPriceOriginType = "RELATIVE"
  8558. )
  8559. var AllPriceListPriceOriginType = []PriceListPriceOriginType{
  8560. PriceListPriceOriginTypeFixed,
  8561. PriceListPriceOriginTypeRelative,
  8562. }
  8563. func (e PriceListPriceOriginType) IsValid() bool {
  8564. switch e {
  8565. case PriceListPriceOriginTypeFixed, PriceListPriceOriginTypeRelative:
  8566. return true
  8567. }
  8568. return false
  8569. }
  8570. func (e PriceListPriceOriginType) String() string {
  8571. return string(e)
  8572. }
  8573. func (e *PriceListPriceOriginType) UnmarshalGQL(v interface{}) error {
  8574. str, ok := v.(string)
  8575. if !ok {
  8576. return fmt.Errorf("enums must be strings")
  8577. }
  8578. *e = PriceListPriceOriginType(str)
  8579. if !e.IsValid() {
  8580. return fmt.Errorf("%s is not a valid PriceListPriceOriginType", str)
  8581. }
  8582. return nil
  8583. }
  8584. func (e PriceListPriceOriginType) MarshalGQL(w io.Writer) {
  8585. fmt.Fprint(w, strconv.Quote(e.String()))
  8586. }
  8587. type PrivateMetafieldValueType string
  8588. const (
  8589. PrivateMetafieldValueTypeString PrivateMetafieldValueType = "STRING"
  8590. PrivateMetafieldValueTypeInteger PrivateMetafieldValueType = "INTEGER"
  8591. PrivateMetafieldValueTypeJSONString PrivateMetafieldValueType = "JSON_STRING"
  8592. )
  8593. var AllPrivateMetafieldValueType = []PrivateMetafieldValueType{
  8594. PrivateMetafieldValueTypeString,
  8595. PrivateMetafieldValueTypeInteger,
  8596. PrivateMetafieldValueTypeJSONString,
  8597. }
  8598. func (e PrivateMetafieldValueType) IsValid() bool {
  8599. switch e {
  8600. case PrivateMetafieldValueTypeString, PrivateMetafieldValueTypeInteger, PrivateMetafieldValueTypeJSONString:
  8601. return true
  8602. }
  8603. return false
  8604. }
  8605. func (e PrivateMetafieldValueType) String() string {
  8606. return string(e)
  8607. }
  8608. func (e *PrivateMetafieldValueType) UnmarshalGQL(v interface{}) error {
  8609. str, ok := v.(string)
  8610. if !ok {
  8611. return fmt.Errorf("enums must be strings")
  8612. }
  8613. *e = PrivateMetafieldValueType(str)
  8614. if !e.IsValid() {
  8615. return fmt.Errorf("%s is not a valid PrivateMetafieldValueType", str)
  8616. }
  8617. return nil
  8618. }
  8619. func (e PrivateMetafieldValueType) MarshalGQL(w io.Writer) {
  8620. fmt.Fprint(w, strconv.Quote(e.String()))
  8621. }
  8622. type ProductChangeStatusUserErrorCode string
  8623. const (
  8624. ProductChangeStatusUserErrorCodeProductNotFound ProductChangeStatusUserErrorCode = "PRODUCT_NOT_FOUND"
  8625. )
  8626. var AllProductChangeStatusUserErrorCode = []ProductChangeStatusUserErrorCode{
  8627. ProductChangeStatusUserErrorCodeProductNotFound,
  8628. }
  8629. func (e ProductChangeStatusUserErrorCode) IsValid() bool {
  8630. switch e {
  8631. case ProductChangeStatusUserErrorCodeProductNotFound:
  8632. return true
  8633. }
  8634. return false
  8635. }
  8636. func (e ProductChangeStatusUserErrorCode) String() string {
  8637. return string(e)
  8638. }
  8639. func (e *ProductChangeStatusUserErrorCode) UnmarshalGQL(v interface{}) error {
  8640. str, ok := v.(string)
  8641. if !ok {
  8642. return fmt.Errorf("enums must be strings")
  8643. }
  8644. *e = ProductChangeStatusUserErrorCode(str)
  8645. if !e.IsValid() {
  8646. return fmt.Errorf("%s is not a valid ProductChangeStatusUserErrorCode", str)
  8647. }
  8648. return nil
  8649. }
  8650. func (e ProductChangeStatusUserErrorCode) MarshalGQL(w io.Writer) {
  8651. fmt.Fprint(w, strconv.Quote(e.String()))
  8652. }
  8653. type ProductCollectionSortKeys string
  8654. const (
  8655. ProductCollectionSortKeysTitle ProductCollectionSortKeys = "TITLE"
  8656. ProductCollectionSortKeysPrice ProductCollectionSortKeys = "PRICE"
  8657. ProductCollectionSortKeysBestSelling ProductCollectionSortKeys = "BEST_SELLING"
  8658. ProductCollectionSortKeysCreated ProductCollectionSortKeys = "CREATED"
  8659. ProductCollectionSortKeysID ProductCollectionSortKeys = "ID"
  8660. ProductCollectionSortKeysManual ProductCollectionSortKeys = "MANUAL"
  8661. ProductCollectionSortKeysCollectionDefault ProductCollectionSortKeys = "COLLECTION_DEFAULT"
  8662. ProductCollectionSortKeysRelevance ProductCollectionSortKeys = "RELEVANCE"
  8663. )
  8664. var AllProductCollectionSortKeys = []ProductCollectionSortKeys{
  8665. ProductCollectionSortKeysTitle,
  8666. ProductCollectionSortKeysPrice,
  8667. ProductCollectionSortKeysBestSelling,
  8668. ProductCollectionSortKeysCreated,
  8669. ProductCollectionSortKeysID,
  8670. ProductCollectionSortKeysManual,
  8671. ProductCollectionSortKeysCollectionDefault,
  8672. ProductCollectionSortKeysRelevance,
  8673. }
  8674. func (e ProductCollectionSortKeys) IsValid() bool {
  8675. switch e {
  8676. case ProductCollectionSortKeysTitle, ProductCollectionSortKeysPrice, ProductCollectionSortKeysBestSelling, ProductCollectionSortKeysCreated, ProductCollectionSortKeysID, ProductCollectionSortKeysManual, ProductCollectionSortKeysCollectionDefault, ProductCollectionSortKeysRelevance:
  8677. return true
  8678. }
  8679. return false
  8680. }
  8681. func (e ProductCollectionSortKeys) String() string {
  8682. return string(e)
  8683. }
  8684. func (e *ProductCollectionSortKeys) UnmarshalGQL(v interface{}) error {
  8685. str, ok := v.(string)
  8686. if !ok {
  8687. return fmt.Errorf("enums must be strings")
  8688. }
  8689. *e = ProductCollectionSortKeys(str)
  8690. if !e.IsValid() {
  8691. return fmt.Errorf("%s is not a valid ProductCollectionSortKeys", str)
  8692. }
  8693. return nil
  8694. }
  8695. func (e ProductCollectionSortKeys) MarshalGQL(w io.Writer) {
  8696. fmt.Fprint(w, strconv.Quote(e.String()))
  8697. }
  8698. type ProductImageSortKeys string
  8699. const (
  8700. ProductImageSortKeysCreatedAt ProductImageSortKeys = "CREATED_AT"
  8701. ProductImageSortKeysPosition ProductImageSortKeys = "POSITION"
  8702. ProductImageSortKeysID ProductImageSortKeys = "ID"
  8703. ProductImageSortKeysRelevance ProductImageSortKeys = "RELEVANCE"
  8704. )
  8705. var AllProductImageSortKeys = []ProductImageSortKeys{
  8706. ProductImageSortKeysCreatedAt,
  8707. ProductImageSortKeysPosition,
  8708. ProductImageSortKeysID,
  8709. ProductImageSortKeysRelevance,
  8710. }
  8711. func (e ProductImageSortKeys) IsValid() bool {
  8712. switch e {
  8713. case ProductImageSortKeysCreatedAt, ProductImageSortKeysPosition, ProductImageSortKeysID, ProductImageSortKeysRelevance:
  8714. return true
  8715. }
  8716. return false
  8717. }
  8718. func (e ProductImageSortKeys) String() string {
  8719. return string(e)
  8720. }
  8721. func (e *ProductImageSortKeys) UnmarshalGQL(v interface{}) error {
  8722. str, ok := v.(string)
  8723. if !ok {
  8724. return fmt.Errorf("enums must be strings")
  8725. }
  8726. *e = ProductImageSortKeys(str)
  8727. if !e.IsValid() {
  8728. return fmt.Errorf("%s is not a valid ProductImageSortKeys", str)
  8729. }
  8730. return nil
  8731. }
  8732. func (e ProductImageSortKeys) MarshalGQL(w io.Writer) {
  8733. fmt.Fprint(w, strconv.Quote(e.String()))
  8734. }
  8735. type ProductMediaSortKeys string
  8736. const (
  8737. ProductMediaSortKeysPosition ProductMediaSortKeys = "POSITION"
  8738. ProductMediaSortKeysID ProductMediaSortKeys = "ID"
  8739. ProductMediaSortKeysRelevance ProductMediaSortKeys = "RELEVANCE"
  8740. )
  8741. var AllProductMediaSortKeys = []ProductMediaSortKeys{
  8742. ProductMediaSortKeysPosition,
  8743. ProductMediaSortKeysID,
  8744. ProductMediaSortKeysRelevance,
  8745. }
  8746. func (e ProductMediaSortKeys) IsValid() bool {
  8747. switch e {
  8748. case ProductMediaSortKeysPosition, ProductMediaSortKeysID, ProductMediaSortKeysRelevance:
  8749. return true
  8750. }
  8751. return false
  8752. }
  8753. func (e ProductMediaSortKeys) String() string {
  8754. return string(e)
  8755. }
  8756. func (e *ProductMediaSortKeys) UnmarshalGQL(v interface{}) error {
  8757. str, ok := v.(string)
  8758. if !ok {
  8759. return fmt.Errorf("enums must be strings")
  8760. }
  8761. *e = ProductMediaSortKeys(str)
  8762. if !e.IsValid() {
  8763. return fmt.Errorf("%s is not a valid ProductMediaSortKeys", str)
  8764. }
  8765. return nil
  8766. }
  8767. func (e ProductMediaSortKeys) MarshalGQL(w io.Writer) {
  8768. fmt.Fprint(w, strconv.Quote(e.String()))
  8769. }
  8770. type ProductSortKeys string
  8771. const (
  8772. ProductSortKeysTitle ProductSortKeys = "TITLE"
  8773. ProductSortKeysProductType ProductSortKeys = "PRODUCT_TYPE"
  8774. ProductSortKeysVendor ProductSortKeys = "VENDOR"
  8775. ProductSortKeysInventoryTotal ProductSortKeys = "INVENTORY_TOTAL"
  8776. ProductSortKeysUpdatedAt ProductSortKeys = "UPDATED_AT"
  8777. ProductSortKeysCreatedAt ProductSortKeys = "CREATED_AT"
  8778. ProductSortKeysPublishedAt ProductSortKeys = "PUBLISHED_AT"
  8779. ProductSortKeysID ProductSortKeys = "ID"
  8780. ProductSortKeysRelevance ProductSortKeys = "RELEVANCE"
  8781. )
  8782. var AllProductSortKeys = []ProductSortKeys{
  8783. ProductSortKeysTitle,
  8784. ProductSortKeysProductType,
  8785. ProductSortKeysVendor,
  8786. ProductSortKeysInventoryTotal,
  8787. ProductSortKeysUpdatedAt,
  8788. ProductSortKeysCreatedAt,
  8789. ProductSortKeysPublishedAt,
  8790. ProductSortKeysID,
  8791. ProductSortKeysRelevance,
  8792. }
  8793. func (e ProductSortKeys) IsValid() bool {
  8794. switch e {
  8795. case ProductSortKeysTitle, ProductSortKeysProductType, ProductSortKeysVendor, ProductSortKeysInventoryTotal, ProductSortKeysUpdatedAt, ProductSortKeysCreatedAt, ProductSortKeysPublishedAt, ProductSortKeysID, ProductSortKeysRelevance:
  8796. return true
  8797. }
  8798. return false
  8799. }
  8800. func (e ProductSortKeys) String() string {
  8801. return string(e)
  8802. }
  8803. func (e *ProductSortKeys) UnmarshalGQL(v interface{}) error {
  8804. str, ok := v.(string)
  8805. if !ok {
  8806. return fmt.Errorf("enums must be strings")
  8807. }
  8808. *e = ProductSortKeys(str)
  8809. if !e.IsValid() {
  8810. return fmt.Errorf("%s is not a valid ProductSortKeys", str)
  8811. }
  8812. return nil
  8813. }
  8814. func (e ProductSortKeys) MarshalGQL(w io.Writer) {
  8815. fmt.Fprint(w, strconv.Quote(e.String()))
  8816. }
  8817. type ProductStatus string
  8818. const (
  8819. ProductStatusActive ProductStatus = "ACTIVE"
  8820. ProductStatusArchived ProductStatus = "ARCHIVED"
  8821. ProductStatusDraft ProductStatus = "DRAFT"
  8822. )
  8823. var AllProductStatus = []ProductStatus{
  8824. ProductStatusActive,
  8825. ProductStatusArchived,
  8826. ProductStatusDraft,
  8827. }
  8828. func (e ProductStatus) IsValid() bool {
  8829. switch e {
  8830. case ProductStatusActive, ProductStatusArchived, ProductStatusDraft:
  8831. return true
  8832. }
  8833. return false
  8834. }
  8835. func (e ProductStatus) String() string {
  8836. return string(e)
  8837. }
  8838. func (e *ProductStatus) UnmarshalGQL(v interface{}) error {
  8839. str, ok := v.(string)
  8840. if !ok {
  8841. return fmt.Errorf("enums must be strings")
  8842. }
  8843. *e = ProductStatus(str)
  8844. if !e.IsValid() {
  8845. return fmt.Errorf("%s is not a valid ProductStatus", str)
  8846. }
  8847. return nil
  8848. }
  8849. func (e ProductStatus) MarshalGQL(w io.Writer) {
  8850. fmt.Fprint(w, strconv.Quote(e.String()))
  8851. }
  8852. type ProductVariantInventoryPolicy string
  8853. const (
  8854. ProductVariantInventoryPolicyDeny ProductVariantInventoryPolicy = "DENY"
  8855. ProductVariantInventoryPolicyContinue ProductVariantInventoryPolicy = "CONTINUE"
  8856. )
  8857. var AllProductVariantInventoryPolicy = []ProductVariantInventoryPolicy{
  8858. ProductVariantInventoryPolicyDeny,
  8859. ProductVariantInventoryPolicyContinue,
  8860. }
  8861. func (e ProductVariantInventoryPolicy) IsValid() bool {
  8862. switch e {
  8863. case ProductVariantInventoryPolicyDeny, ProductVariantInventoryPolicyContinue:
  8864. return true
  8865. }
  8866. return false
  8867. }
  8868. func (e ProductVariantInventoryPolicy) String() string {
  8869. return string(e)
  8870. }
  8871. func (e *ProductVariantInventoryPolicy) UnmarshalGQL(v interface{}) error {
  8872. str, ok := v.(string)
  8873. if !ok {
  8874. return fmt.Errorf("enums must be strings")
  8875. }
  8876. *e = ProductVariantInventoryPolicy(str)
  8877. if !e.IsValid() {
  8878. return fmt.Errorf("%s is not a valid ProductVariantInventoryPolicy", str)
  8879. }
  8880. return nil
  8881. }
  8882. func (e ProductVariantInventoryPolicy) MarshalGQL(w io.Writer) {
  8883. fmt.Fprint(w, strconv.Quote(e.String()))
  8884. }
  8885. type ProductVariantSortKeys string
  8886. const (
  8887. ProductVariantSortKeysTitle ProductVariantSortKeys = "TITLE"
  8888. ProductVariantSortKeysName ProductVariantSortKeys = "NAME"
  8889. ProductVariantSortKeysSku ProductVariantSortKeys = "SKU"
  8890. ProductVariantSortKeysInventoryQuantity ProductVariantSortKeys = "INVENTORY_QUANTITY"
  8891. ProductVariantSortKeysInventoryManagement ProductVariantSortKeys = "INVENTORY_MANAGEMENT"
  8892. ProductVariantSortKeysInventoryLevelsAvailable ProductVariantSortKeys = "INVENTORY_LEVELS_AVAILABLE"
  8893. ProductVariantSortKeysInventoryPolicy ProductVariantSortKeys = "INVENTORY_POLICY"
  8894. ProductVariantSortKeysFullTitle ProductVariantSortKeys = "FULL_TITLE"
  8895. ProductVariantSortKeysPopular ProductVariantSortKeys = "POPULAR"
  8896. ProductVariantSortKeysPosition ProductVariantSortKeys = "POSITION"
  8897. ProductVariantSortKeysID ProductVariantSortKeys = "ID"
  8898. ProductVariantSortKeysRelevance ProductVariantSortKeys = "RELEVANCE"
  8899. )
  8900. var AllProductVariantSortKeys = []ProductVariantSortKeys{
  8901. ProductVariantSortKeysTitle,
  8902. ProductVariantSortKeysName,
  8903. ProductVariantSortKeysSku,
  8904. ProductVariantSortKeysInventoryQuantity,
  8905. ProductVariantSortKeysInventoryManagement,
  8906. ProductVariantSortKeysInventoryLevelsAvailable,
  8907. ProductVariantSortKeysInventoryPolicy,
  8908. ProductVariantSortKeysFullTitle,
  8909. ProductVariantSortKeysPopular,
  8910. ProductVariantSortKeysPosition,
  8911. ProductVariantSortKeysID,
  8912. ProductVariantSortKeysRelevance,
  8913. }
  8914. func (e ProductVariantSortKeys) IsValid() bool {
  8915. switch e {
  8916. case ProductVariantSortKeysTitle, ProductVariantSortKeysName, ProductVariantSortKeysSku, ProductVariantSortKeysInventoryQuantity, ProductVariantSortKeysInventoryManagement, ProductVariantSortKeysInventoryLevelsAvailable, ProductVariantSortKeysInventoryPolicy, ProductVariantSortKeysFullTitle, ProductVariantSortKeysPopular, ProductVariantSortKeysPosition, ProductVariantSortKeysID, ProductVariantSortKeysRelevance:
  8917. return true
  8918. }
  8919. return false
  8920. }
  8921. func (e ProductVariantSortKeys) String() string {
  8922. return string(e)
  8923. }
  8924. func (e *ProductVariantSortKeys) UnmarshalGQL(v interface{}) error {
  8925. str, ok := v.(string)
  8926. if !ok {
  8927. return fmt.Errorf("enums must be strings")
  8928. }
  8929. *e = ProductVariantSortKeys(str)
  8930. if !e.IsValid() {
  8931. return fmt.Errorf("%s is not a valid ProductVariantSortKeys", str)
  8932. }
  8933. return nil
  8934. }
  8935. func (e ProductVariantSortKeys) MarshalGQL(w io.Writer) {
  8936. fmt.Fprint(w, strconv.Quote(e.String()))
  8937. }
  8938. type ProductVariantsBulkCreateUserErrorCode string
  8939. const (
  8940. ProductVariantsBulkCreateUserErrorCodeProductDoesNotExist ProductVariantsBulkCreateUserErrorCode = "PRODUCT_DOES_NOT_EXIST"
  8941. ProductVariantsBulkCreateUserErrorCodeNoKeyOnCreate ProductVariantsBulkCreateUserErrorCode = "NO_KEY_ON_CREATE"
  8942. ProductVariantsBulkCreateUserErrorCodeVariantAlreadyExists ProductVariantsBulkCreateUserErrorCode = "VARIANT_ALREADY_EXISTS"
  8943. ProductVariantsBulkCreateUserErrorCodeGreaterThanOrEqualTo ProductVariantsBulkCreateUserErrorCode = "GREATER_THAN_OR_EQUAL_TO"
  8944. ProductVariantsBulkCreateUserErrorCodeNeedToAddOptionValues ProductVariantsBulkCreateUserErrorCode = "NEED_TO_ADD_OPTION_VALUES"
  8945. ProductVariantsBulkCreateUserErrorCodeOptionValuesForNumberOfUnknownOptions ProductVariantsBulkCreateUserErrorCode = "OPTION_VALUES_FOR_NUMBER_OF_UNKNOWN_OPTIONS"
  8946. ProductVariantsBulkCreateUserErrorCodeTooManyInventoryLocations ProductVariantsBulkCreateUserErrorCode = "TOO_MANY_INVENTORY_LOCATIONS"
  8947. ProductVariantsBulkCreateUserErrorCodeSubscriptionViolation ProductVariantsBulkCreateUserErrorCode = "SUBSCRIPTION_VIOLATION"
  8948. ProductVariantsBulkCreateUserErrorCodeVariantAlreadyExistsChangeOptionValue ProductVariantsBulkCreateUserErrorCode = "VARIANT_ALREADY_EXISTS_CHANGE_OPTION_VALUE"
  8949. ProductVariantsBulkCreateUserErrorCodeTrackedVariantLocationNotFound ProductVariantsBulkCreateUserErrorCode = "TRACKED_VARIANT_LOCATION_NOT_FOUND"
  8950. ProductVariantsBulkCreateUserErrorCodeMustBeForThisProduct ProductVariantsBulkCreateUserErrorCode = "MUST_BE_FOR_THIS_PRODUCT"
  8951. ProductVariantsBulkCreateUserErrorCodeNotDefinedForShop ProductVariantsBulkCreateUserErrorCode = "NOT_DEFINED_FOR_SHOP"
  8952. ProductVariantsBulkCreateUserErrorCodeInvalid ProductVariantsBulkCreateUserErrorCode = "INVALID"
  8953. ProductVariantsBulkCreateUserErrorCodeNegativePriceValue ProductVariantsBulkCreateUserErrorCode = "NEGATIVE_PRICE_VALUE"
  8954. )
  8955. var AllProductVariantsBulkCreateUserErrorCode = []ProductVariantsBulkCreateUserErrorCode{
  8956. ProductVariantsBulkCreateUserErrorCodeProductDoesNotExist,
  8957. ProductVariantsBulkCreateUserErrorCodeNoKeyOnCreate,
  8958. ProductVariantsBulkCreateUserErrorCodeVariantAlreadyExists,
  8959. ProductVariantsBulkCreateUserErrorCodeGreaterThanOrEqualTo,
  8960. ProductVariantsBulkCreateUserErrorCodeNeedToAddOptionValues,
  8961. ProductVariantsBulkCreateUserErrorCodeOptionValuesForNumberOfUnknownOptions,
  8962. ProductVariantsBulkCreateUserErrorCodeTooManyInventoryLocations,
  8963. ProductVariantsBulkCreateUserErrorCodeSubscriptionViolation,
  8964. ProductVariantsBulkCreateUserErrorCodeVariantAlreadyExistsChangeOptionValue,
  8965. ProductVariantsBulkCreateUserErrorCodeTrackedVariantLocationNotFound,
  8966. ProductVariantsBulkCreateUserErrorCodeMustBeForThisProduct,
  8967. ProductVariantsBulkCreateUserErrorCodeNotDefinedForShop,
  8968. ProductVariantsBulkCreateUserErrorCodeInvalid,
  8969. ProductVariantsBulkCreateUserErrorCodeNegativePriceValue,
  8970. }
  8971. func (e ProductVariantsBulkCreateUserErrorCode) IsValid() bool {
  8972. switch e {
  8973. case ProductVariantsBulkCreateUserErrorCodeProductDoesNotExist, ProductVariantsBulkCreateUserErrorCodeNoKeyOnCreate, ProductVariantsBulkCreateUserErrorCodeVariantAlreadyExists, ProductVariantsBulkCreateUserErrorCodeGreaterThanOrEqualTo, ProductVariantsBulkCreateUserErrorCodeNeedToAddOptionValues, ProductVariantsBulkCreateUserErrorCodeOptionValuesForNumberOfUnknownOptions, ProductVariantsBulkCreateUserErrorCodeTooManyInventoryLocations, ProductVariantsBulkCreateUserErrorCodeSubscriptionViolation, ProductVariantsBulkCreateUserErrorCodeVariantAlreadyExistsChangeOptionValue, ProductVariantsBulkCreateUserErrorCodeTrackedVariantLocationNotFound, ProductVariantsBulkCreateUserErrorCodeMustBeForThisProduct, ProductVariantsBulkCreateUserErrorCodeNotDefinedForShop, ProductVariantsBulkCreateUserErrorCodeInvalid, ProductVariantsBulkCreateUserErrorCodeNegativePriceValue:
  8974. return true
  8975. }
  8976. return false
  8977. }
  8978. func (e ProductVariantsBulkCreateUserErrorCode) String() string {
  8979. return string(e)
  8980. }
  8981. func (e *ProductVariantsBulkCreateUserErrorCode) UnmarshalGQL(v interface{}) error {
  8982. str, ok := v.(string)
  8983. if !ok {
  8984. return fmt.Errorf("enums must be strings")
  8985. }
  8986. *e = ProductVariantsBulkCreateUserErrorCode(str)
  8987. if !e.IsValid() {
  8988. return fmt.Errorf("%s is not a valid ProductVariantsBulkCreateUserErrorCode", str)
  8989. }
  8990. return nil
  8991. }
  8992. func (e ProductVariantsBulkCreateUserErrorCode) MarshalGQL(w io.Writer) {
  8993. fmt.Fprint(w, strconv.Quote(e.String()))
  8994. }
  8995. type ProductVariantsBulkDeleteUserErrorCode string
  8996. const (
  8997. ProductVariantsBulkDeleteUserErrorCodeProductDoesNotExist ProductVariantsBulkDeleteUserErrorCode = "PRODUCT_DOES_NOT_EXIST"
  8998. ProductVariantsBulkDeleteUserErrorCodeCannotDeleteLastVariant ProductVariantsBulkDeleteUserErrorCode = "CANNOT_DELETE_LAST_VARIANT"
  8999. ProductVariantsBulkDeleteUserErrorCodeAtLeastOneVariantDoesNotBelongToTheProduct ProductVariantsBulkDeleteUserErrorCode = "AT_LEAST_ONE_VARIANT_DOES_NOT_BELONG_TO_THE_PRODUCT"
  9000. )
  9001. var AllProductVariantsBulkDeleteUserErrorCode = []ProductVariantsBulkDeleteUserErrorCode{
  9002. ProductVariantsBulkDeleteUserErrorCodeProductDoesNotExist,
  9003. ProductVariantsBulkDeleteUserErrorCodeCannotDeleteLastVariant,
  9004. ProductVariantsBulkDeleteUserErrorCodeAtLeastOneVariantDoesNotBelongToTheProduct,
  9005. }
  9006. func (e ProductVariantsBulkDeleteUserErrorCode) IsValid() bool {
  9007. switch e {
  9008. case ProductVariantsBulkDeleteUserErrorCodeProductDoesNotExist, ProductVariantsBulkDeleteUserErrorCodeCannotDeleteLastVariant, ProductVariantsBulkDeleteUserErrorCodeAtLeastOneVariantDoesNotBelongToTheProduct:
  9009. return true
  9010. }
  9011. return false
  9012. }
  9013. func (e ProductVariantsBulkDeleteUserErrorCode) String() string {
  9014. return string(e)
  9015. }
  9016. func (e *ProductVariantsBulkDeleteUserErrorCode) UnmarshalGQL(v interface{}) error {
  9017. str, ok := v.(string)
  9018. if !ok {
  9019. return fmt.Errorf("enums must be strings")
  9020. }
  9021. *e = ProductVariantsBulkDeleteUserErrorCode(str)
  9022. if !e.IsValid() {
  9023. return fmt.Errorf("%s is not a valid ProductVariantsBulkDeleteUserErrorCode", str)
  9024. }
  9025. return nil
  9026. }
  9027. func (e ProductVariantsBulkDeleteUserErrorCode) MarshalGQL(w io.Writer) {
  9028. fmt.Fprint(w, strconv.Quote(e.String()))
  9029. }
  9030. type ProductVariantsBulkReorderUserErrorCode string
  9031. const (
  9032. ProductVariantsBulkReorderUserErrorCodeProductDoesNotExist ProductVariantsBulkReorderUserErrorCode = "PRODUCT_DOES_NOT_EXIST"
  9033. ProductVariantsBulkReorderUserErrorCodeMissingVariant ProductVariantsBulkReorderUserErrorCode = "MISSING_VARIANT"
  9034. ProductVariantsBulkReorderUserErrorCodeInvalidPosition ProductVariantsBulkReorderUserErrorCode = "INVALID_POSITION"
  9035. ProductVariantsBulkReorderUserErrorCodeDuplicatedVariantID ProductVariantsBulkReorderUserErrorCode = "DUPLICATED_VARIANT_ID"
  9036. )
  9037. var AllProductVariantsBulkReorderUserErrorCode = []ProductVariantsBulkReorderUserErrorCode{
  9038. ProductVariantsBulkReorderUserErrorCodeProductDoesNotExist,
  9039. ProductVariantsBulkReorderUserErrorCodeMissingVariant,
  9040. ProductVariantsBulkReorderUserErrorCodeInvalidPosition,
  9041. ProductVariantsBulkReorderUserErrorCodeDuplicatedVariantID,
  9042. }
  9043. func (e ProductVariantsBulkReorderUserErrorCode) IsValid() bool {
  9044. switch e {
  9045. case ProductVariantsBulkReorderUserErrorCodeProductDoesNotExist, ProductVariantsBulkReorderUserErrorCodeMissingVariant, ProductVariantsBulkReorderUserErrorCodeInvalidPosition, ProductVariantsBulkReorderUserErrorCodeDuplicatedVariantID:
  9046. return true
  9047. }
  9048. return false
  9049. }
  9050. func (e ProductVariantsBulkReorderUserErrorCode) String() string {
  9051. return string(e)
  9052. }
  9053. func (e *ProductVariantsBulkReorderUserErrorCode) UnmarshalGQL(v interface{}) error {
  9054. str, ok := v.(string)
  9055. if !ok {
  9056. return fmt.Errorf("enums must be strings")
  9057. }
  9058. *e = ProductVariantsBulkReorderUserErrorCode(str)
  9059. if !e.IsValid() {
  9060. return fmt.Errorf("%s is not a valid ProductVariantsBulkReorderUserErrorCode", str)
  9061. }
  9062. return nil
  9063. }
  9064. func (e ProductVariantsBulkReorderUserErrorCode) MarshalGQL(w io.Writer) {
  9065. fmt.Fprint(w, strconv.Quote(e.String()))
  9066. }
  9067. type ProductVariantsBulkUpdateUserErrorCode string
  9068. const (
  9069. ProductVariantsBulkUpdateUserErrorCodeProductDoesNotExist ProductVariantsBulkUpdateUserErrorCode = "PRODUCT_DOES_NOT_EXIST"
  9070. ProductVariantsBulkUpdateUserErrorCodeProductVariantIDMissing ProductVariantsBulkUpdateUserErrorCode = "PRODUCT_VARIANT_ID_MISSING"
  9071. ProductVariantsBulkUpdateUserErrorCodeProductVariantDoesNotExist ProductVariantsBulkUpdateUserErrorCode = "PRODUCT_VARIANT_DOES_NOT_EXIST"
  9072. ProductVariantsBulkUpdateUserErrorCodeNoInventoryQuantitiesOnVariantsUpdate ProductVariantsBulkUpdateUserErrorCode = "NO_INVENTORY_QUANTITIES_ON_VARIANTS_UPDATE"
  9073. ProductVariantsBulkUpdateUserErrorCodeVariantAlreadyExists ProductVariantsBulkUpdateUserErrorCode = "VARIANT_ALREADY_EXISTS"
  9074. ProductVariantsBulkUpdateUserErrorCodeGreaterThanOrEqualTo ProductVariantsBulkUpdateUserErrorCode = "GREATER_THAN_OR_EQUAL_TO"
  9075. ProductVariantsBulkUpdateUserErrorCodeNeedToAddOptionValues ProductVariantsBulkUpdateUserErrorCode = "NEED_TO_ADD_OPTION_VALUES"
  9076. ProductVariantsBulkUpdateUserErrorCodeOptionValuesForNumberOfUnknownOptions ProductVariantsBulkUpdateUserErrorCode = "OPTION_VALUES_FOR_NUMBER_OF_UNKNOWN_OPTIONS"
  9077. ProductVariantsBulkUpdateUserErrorCodeSubscriptionViolation ProductVariantsBulkUpdateUserErrorCode = "SUBSCRIPTION_VIOLATION"
  9078. ProductVariantsBulkUpdateUserErrorCodeNoInventoryQuantitesDuringUpdate ProductVariantsBulkUpdateUserErrorCode = "NO_INVENTORY_QUANTITES_DURING_UPDATE"
  9079. ProductVariantsBulkUpdateUserErrorCodeNegativePriceValue ProductVariantsBulkUpdateUserErrorCode = "NEGATIVE_PRICE_VALUE"
  9080. )
  9081. var AllProductVariantsBulkUpdateUserErrorCode = []ProductVariantsBulkUpdateUserErrorCode{
  9082. ProductVariantsBulkUpdateUserErrorCodeProductDoesNotExist,
  9083. ProductVariantsBulkUpdateUserErrorCodeProductVariantIDMissing,
  9084. ProductVariantsBulkUpdateUserErrorCodeProductVariantDoesNotExist,
  9085. ProductVariantsBulkUpdateUserErrorCodeNoInventoryQuantitiesOnVariantsUpdate,
  9086. ProductVariantsBulkUpdateUserErrorCodeVariantAlreadyExists,
  9087. ProductVariantsBulkUpdateUserErrorCodeGreaterThanOrEqualTo,
  9088. ProductVariantsBulkUpdateUserErrorCodeNeedToAddOptionValues,
  9089. ProductVariantsBulkUpdateUserErrorCodeOptionValuesForNumberOfUnknownOptions,
  9090. ProductVariantsBulkUpdateUserErrorCodeSubscriptionViolation,
  9091. ProductVariantsBulkUpdateUserErrorCodeNoInventoryQuantitesDuringUpdate,
  9092. ProductVariantsBulkUpdateUserErrorCodeNegativePriceValue,
  9093. }
  9094. func (e ProductVariantsBulkUpdateUserErrorCode) IsValid() bool {
  9095. switch e {
  9096. case ProductVariantsBulkUpdateUserErrorCodeProductDoesNotExist, ProductVariantsBulkUpdateUserErrorCodeProductVariantIDMissing, ProductVariantsBulkUpdateUserErrorCodeProductVariantDoesNotExist, ProductVariantsBulkUpdateUserErrorCodeNoInventoryQuantitiesOnVariantsUpdate, ProductVariantsBulkUpdateUserErrorCodeVariantAlreadyExists, ProductVariantsBulkUpdateUserErrorCodeGreaterThanOrEqualTo, ProductVariantsBulkUpdateUserErrorCodeNeedToAddOptionValues, ProductVariantsBulkUpdateUserErrorCodeOptionValuesForNumberOfUnknownOptions, ProductVariantsBulkUpdateUserErrorCodeSubscriptionViolation, ProductVariantsBulkUpdateUserErrorCodeNoInventoryQuantitesDuringUpdate, ProductVariantsBulkUpdateUserErrorCodeNegativePriceValue:
  9097. return true
  9098. }
  9099. return false
  9100. }
  9101. func (e ProductVariantsBulkUpdateUserErrorCode) String() string {
  9102. return string(e)
  9103. }
  9104. func (e *ProductVariantsBulkUpdateUserErrorCode) UnmarshalGQL(v interface{}) error {
  9105. str, ok := v.(string)
  9106. if !ok {
  9107. return fmt.Errorf("enums must be strings")
  9108. }
  9109. *e = ProductVariantsBulkUpdateUserErrorCode(str)
  9110. if !e.IsValid() {
  9111. return fmt.Errorf("%s is not a valid ProductVariantsBulkUpdateUserErrorCode", str)
  9112. }
  9113. return nil
  9114. }
  9115. func (e ProductVariantsBulkUpdateUserErrorCode) MarshalGQL(w io.Writer) {
  9116. fmt.Fprint(w, strconv.Quote(e.String()))
  9117. }
  9118. type RefundDutyRefundType string
  9119. const (
  9120. RefundDutyRefundTypeProportional RefundDutyRefundType = "PROPORTIONAL"
  9121. RefundDutyRefundTypeFull RefundDutyRefundType = "FULL"
  9122. )
  9123. var AllRefundDutyRefundType = []RefundDutyRefundType{
  9124. RefundDutyRefundTypeProportional,
  9125. RefundDutyRefundTypeFull,
  9126. }
  9127. func (e RefundDutyRefundType) IsValid() bool {
  9128. switch e {
  9129. case RefundDutyRefundTypeProportional, RefundDutyRefundTypeFull:
  9130. return true
  9131. }
  9132. return false
  9133. }
  9134. func (e RefundDutyRefundType) String() string {
  9135. return string(e)
  9136. }
  9137. func (e *RefundDutyRefundType) UnmarshalGQL(v interface{}) error {
  9138. str, ok := v.(string)
  9139. if !ok {
  9140. return fmt.Errorf("enums must be strings")
  9141. }
  9142. *e = RefundDutyRefundType(str)
  9143. if !e.IsValid() {
  9144. return fmt.Errorf("%s is not a valid RefundDutyRefundType", str)
  9145. }
  9146. return nil
  9147. }
  9148. func (e RefundDutyRefundType) MarshalGQL(w io.Writer) {
  9149. fmt.Fprint(w, strconv.Quote(e.String()))
  9150. }
  9151. type RefundLineItemRestockType string
  9152. const (
  9153. RefundLineItemRestockTypeReturn RefundLineItemRestockType = "RETURN"
  9154. RefundLineItemRestockTypeCancel RefundLineItemRestockType = "CANCEL"
  9155. RefundLineItemRestockTypeLegacyRestock RefundLineItemRestockType = "LEGACY_RESTOCK"
  9156. RefundLineItemRestockTypeNoRestock RefundLineItemRestockType = "NO_RESTOCK"
  9157. )
  9158. var AllRefundLineItemRestockType = []RefundLineItemRestockType{
  9159. RefundLineItemRestockTypeReturn,
  9160. RefundLineItemRestockTypeCancel,
  9161. RefundLineItemRestockTypeLegacyRestock,
  9162. RefundLineItemRestockTypeNoRestock,
  9163. }
  9164. func (e RefundLineItemRestockType) IsValid() bool {
  9165. switch e {
  9166. case RefundLineItemRestockTypeReturn, RefundLineItemRestockTypeCancel, RefundLineItemRestockTypeLegacyRestock, RefundLineItemRestockTypeNoRestock:
  9167. return true
  9168. }
  9169. return false
  9170. }
  9171. func (e RefundLineItemRestockType) String() string {
  9172. return string(e)
  9173. }
  9174. func (e *RefundLineItemRestockType) UnmarshalGQL(v interface{}) error {
  9175. str, ok := v.(string)
  9176. if !ok {
  9177. return fmt.Errorf("enums must be strings")
  9178. }
  9179. *e = RefundLineItemRestockType(str)
  9180. if !e.IsValid() {
  9181. return fmt.Errorf("%s is not a valid RefundLineItemRestockType", str)
  9182. }
  9183. return nil
  9184. }
  9185. func (e RefundLineItemRestockType) MarshalGQL(w io.Writer) {
  9186. fmt.Fprint(w, strconv.Quote(e.String()))
  9187. }
  9188. type ResourceAlertIcon string
  9189. const (
  9190. ResourceAlertIconCheckmarkCircle ResourceAlertIcon = "CHECKMARK_CIRCLE"
  9191. ResourceAlertIconInformationCircle ResourceAlertIcon = "INFORMATION_CIRCLE"
  9192. )
  9193. var AllResourceAlertIcon = []ResourceAlertIcon{
  9194. ResourceAlertIconCheckmarkCircle,
  9195. ResourceAlertIconInformationCircle,
  9196. }
  9197. func (e ResourceAlertIcon) IsValid() bool {
  9198. switch e {
  9199. case ResourceAlertIconCheckmarkCircle, ResourceAlertIconInformationCircle:
  9200. return true
  9201. }
  9202. return false
  9203. }
  9204. func (e ResourceAlertIcon) String() string {
  9205. return string(e)
  9206. }
  9207. func (e *ResourceAlertIcon) UnmarshalGQL(v interface{}) error {
  9208. str, ok := v.(string)
  9209. if !ok {
  9210. return fmt.Errorf("enums must be strings")
  9211. }
  9212. *e = ResourceAlertIcon(str)
  9213. if !e.IsValid() {
  9214. return fmt.Errorf("%s is not a valid ResourceAlertIcon", str)
  9215. }
  9216. return nil
  9217. }
  9218. func (e ResourceAlertIcon) MarshalGQL(w io.Writer) {
  9219. fmt.Fprint(w, strconv.Quote(e.String()))
  9220. }
  9221. type ResourceAlertSeverity string
  9222. const (
  9223. ResourceAlertSeverityDefault ResourceAlertSeverity = "DEFAULT"
  9224. ResourceAlertSeverityInfo ResourceAlertSeverity = "INFO"
  9225. ResourceAlertSeverityWarning ResourceAlertSeverity = "WARNING"
  9226. ResourceAlertSeveritySuccess ResourceAlertSeverity = "SUCCESS"
  9227. ResourceAlertSeverityCritical ResourceAlertSeverity = "CRITICAL"
  9228. )
  9229. var AllResourceAlertSeverity = []ResourceAlertSeverity{
  9230. ResourceAlertSeverityDefault,
  9231. ResourceAlertSeverityInfo,
  9232. ResourceAlertSeverityWarning,
  9233. ResourceAlertSeveritySuccess,
  9234. ResourceAlertSeverityCritical,
  9235. }
  9236. func (e ResourceAlertSeverity) IsValid() bool {
  9237. switch e {
  9238. case ResourceAlertSeverityDefault, ResourceAlertSeverityInfo, ResourceAlertSeverityWarning, ResourceAlertSeveritySuccess, ResourceAlertSeverityCritical:
  9239. return true
  9240. }
  9241. return false
  9242. }
  9243. func (e ResourceAlertSeverity) String() string {
  9244. return string(e)
  9245. }
  9246. func (e *ResourceAlertSeverity) UnmarshalGQL(v interface{}) error {
  9247. str, ok := v.(string)
  9248. if !ok {
  9249. return fmt.Errorf("enums must be strings")
  9250. }
  9251. *e = ResourceAlertSeverity(str)
  9252. if !e.IsValid() {
  9253. return fmt.Errorf("%s is not a valid ResourceAlertSeverity", str)
  9254. }
  9255. return nil
  9256. }
  9257. func (e ResourceAlertSeverity) MarshalGQL(w io.Writer) {
  9258. fmt.Fprint(w, strconv.Quote(e.String()))
  9259. }
  9260. type ResourceFeedbackState string
  9261. const (
  9262. ResourceFeedbackStateAccepted ResourceFeedbackState = "ACCEPTED"
  9263. ResourceFeedbackStateRequiresAction ResourceFeedbackState = "REQUIRES_ACTION"
  9264. )
  9265. var AllResourceFeedbackState = []ResourceFeedbackState{
  9266. ResourceFeedbackStateAccepted,
  9267. ResourceFeedbackStateRequiresAction,
  9268. }
  9269. func (e ResourceFeedbackState) IsValid() bool {
  9270. switch e {
  9271. case ResourceFeedbackStateAccepted, ResourceFeedbackStateRequiresAction:
  9272. return true
  9273. }
  9274. return false
  9275. }
  9276. func (e ResourceFeedbackState) String() string {
  9277. return string(e)
  9278. }
  9279. func (e *ResourceFeedbackState) UnmarshalGQL(v interface{}) error {
  9280. str, ok := v.(string)
  9281. if !ok {
  9282. return fmt.Errorf("enums must be strings")
  9283. }
  9284. *e = ResourceFeedbackState(str)
  9285. if !e.IsValid() {
  9286. return fmt.Errorf("%s is not a valid ResourceFeedbackState", str)
  9287. }
  9288. return nil
  9289. }
  9290. func (e ResourceFeedbackState) MarshalGQL(w io.Writer) {
  9291. fmt.Fprint(w, strconv.Quote(e.String()))
  9292. }
  9293. type SaleActionType string
  9294. const (
  9295. SaleActionTypeOrder SaleActionType = "ORDER"
  9296. SaleActionTypeReturn SaleActionType = "RETURN"
  9297. SaleActionTypeUpdate SaleActionType = "UPDATE"
  9298. SaleActionTypeUnknown SaleActionType = "UNKNOWN"
  9299. )
  9300. var AllSaleActionType = []SaleActionType{
  9301. SaleActionTypeOrder,
  9302. SaleActionTypeReturn,
  9303. SaleActionTypeUpdate,
  9304. SaleActionTypeUnknown,
  9305. }
  9306. func (e SaleActionType) IsValid() bool {
  9307. switch e {
  9308. case SaleActionTypeOrder, SaleActionTypeReturn, SaleActionTypeUpdate, SaleActionTypeUnknown:
  9309. return true
  9310. }
  9311. return false
  9312. }
  9313. func (e SaleActionType) String() string {
  9314. return string(e)
  9315. }
  9316. func (e *SaleActionType) UnmarshalGQL(v interface{}) error {
  9317. str, ok := v.(string)
  9318. if !ok {
  9319. return fmt.Errorf("enums must be strings")
  9320. }
  9321. *e = SaleActionType(str)
  9322. if !e.IsValid() {
  9323. return fmt.Errorf("%s is not a valid SaleActionType", str)
  9324. }
  9325. return nil
  9326. }
  9327. func (e SaleActionType) MarshalGQL(w io.Writer) {
  9328. fmt.Fprint(w, strconv.Quote(e.String()))
  9329. }
  9330. type SaleLineType string
  9331. const (
  9332. SaleLineTypeProduct SaleLineType = "PRODUCT"
  9333. SaleLineTypeTip SaleLineType = "TIP"
  9334. SaleLineTypeGiftCard SaleLineType = "GIFT_CARD"
  9335. SaleLineTypeShipping SaleLineType = "SHIPPING"
  9336. SaleLineTypeDuty SaleLineType = "DUTY"
  9337. SaleLineTypeUnknown SaleLineType = "UNKNOWN"
  9338. SaleLineTypeAdjustment SaleLineType = "ADJUSTMENT"
  9339. )
  9340. var AllSaleLineType = []SaleLineType{
  9341. SaleLineTypeProduct,
  9342. SaleLineTypeTip,
  9343. SaleLineTypeGiftCard,
  9344. SaleLineTypeShipping,
  9345. SaleLineTypeDuty,
  9346. SaleLineTypeUnknown,
  9347. SaleLineTypeAdjustment,
  9348. }
  9349. func (e SaleLineType) IsValid() bool {
  9350. switch e {
  9351. case SaleLineTypeProduct, SaleLineTypeTip, SaleLineTypeGiftCard, SaleLineTypeShipping, SaleLineTypeDuty, SaleLineTypeUnknown, SaleLineTypeAdjustment:
  9352. return true
  9353. }
  9354. return false
  9355. }
  9356. func (e SaleLineType) String() string {
  9357. return string(e)
  9358. }
  9359. func (e *SaleLineType) UnmarshalGQL(v interface{}) error {
  9360. str, ok := v.(string)
  9361. if !ok {
  9362. return fmt.Errorf("enums must be strings")
  9363. }
  9364. *e = SaleLineType(str)
  9365. if !e.IsValid() {
  9366. return fmt.Errorf("%s is not a valid SaleLineType", str)
  9367. }
  9368. return nil
  9369. }
  9370. func (e SaleLineType) MarshalGQL(w io.Writer) {
  9371. fmt.Fprint(w, strconv.Quote(e.String()))
  9372. }
  9373. type SearchResultType string
  9374. const (
  9375. SearchResultTypeCustomer SearchResultType = "CUSTOMER"
  9376. SearchResultTypeDraftOrder SearchResultType = "DRAFT_ORDER"
  9377. SearchResultTypeProduct SearchResultType = "PRODUCT"
  9378. SearchResultTypeCollection SearchResultType = "COLLECTION"
  9379. SearchResultTypeFile SearchResultType = "FILE"
  9380. SearchResultTypeOnlineStorePage SearchResultType = "ONLINE_STORE_PAGE"
  9381. SearchResultTypeOnlineStoreBlog SearchResultType = "ONLINE_STORE_BLOG"
  9382. SearchResultTypeOnlineStoreArticle SearchResultType = "ONLINE_STORE_ARTICLE"
  9383. SearchResultTypeURLRedirect SearchResultType = "URL_REDIRECT"
  9384. SearchResultTypePriceRule SearchResultType = "PRICE_RULE"
  9385. SearchResultTypeDiscountRedeemCode SearchResultType = "DISCOUNT_REDEEM_CODE"
  9386. SearchResultTypeOrder SearchResultType = "ORDER"
  9387. )
  9388. var AllSearchResultType = []SearchResultType{
  9389. SearchResultTypeCustomer,
  9390. SearchResultTypeDraftOrder,
  9391. SearchResultTypeProduct,
  9392. SearchResultTypeCollection,
  9393. SearchResultTypeFile,
  9394. SearchResultTypeOnlineStorePage,
  9395. SearchResultTypeOnlineStoreBlog,
  9396. SearchResultTypeOnlineStoreArticle,
  9397. SearchResultTypeURLRedirect,
  9398. SearchResultTypePriceRule,
  9399. SearchResultTypeDiscountRedeemCode,
  9400. SearchResultTypeOrder,
  9401. }
  9402. func (e SearchResultType) IsValid() bool {
  9403. switch e {
  9404. case SearchResultTypeCustomer, SearchResultTypeDraftOrder, SearchResultTypeProduct, SearchResultTypeCollection, SearchResultTypeFile, SearchResultTypeOnlineStorePage, SearchResultTypeOnlineStoreBlog, SearchResultTypeOnlineStoreArticle, SearchResultTypeURLRedirect, SearchResultTypePriceRule, SearchResultTypeDiscountRedeemCode, SearchResultTypeOrder:
  9405. return true
  9406. }
  9407. return false
  9408. }
  9409. func (e SearchResultType) String() string {
  9410. return string(e)
  9411. }
  9412. func (e *SearchResultType) UnmarshalGQL(v interface{}) error {
  9413. str, ok := v.(string)
  9414. if !ok {
  9415. return fmt.Errorf("enums must be strings")
  9416. }
  9417. *e = SearchResultType(str)
  9418. if !e.IsValid() {
  9419. return fmt.Errorf("%s is not a valid SearchResultType", str)
  9420. }
  9421. return nil
  9422. }
  9423. func (e SearchResultType) MarshalGQL(w io.Writer) {
  9424. fmt.Fprint(w, strconv.Quote(e.String()))
  9425. }
  9426. type SellingPlanAnchorType string
  9427. const (
  9428. SellingPlanAnchorTypeWeekday SellingPlanAnchorType = "WEEKDAY"
  9429. SellingPlanAnchorTypeMonthday SellingPlanAnchorType = "MONTHDAY"
  9430. SellingPlanAnchorTypeYearday SellingPlanAnchorType = "YEARDAY"
  9431. )
  9432. var AllSellingPlanAnchorType = []SellingPlanAnchorType{
  9433. SellingPlanAnchorTypeWeekday,
  9434. SellingPlanAnchorTypeMonthday,
  9435. SellingPlanAnchorTypeYearday,
  9436. }
  9437. func (e SellingPlanAnchorType) IsValid() bool {
  9438. switch e {
  9439. case SellingPlanAnchorTypeWeekday, SellingPlanAnchorTypeMonthday, SellingPlanAnchorTypeYearday:
  9440. return true
  9441. }
  9442. return false
  9443. }
  9444. func (e SellingPlanAnchorType) String() string {
  9445. return string(e)
  9446. }
  9447. func (e *SellingPlanAnchorType) UnmarshalGQL(v interface{}) error {
  9448. str, ok := v.(string)
  9449. if !ok {
  9450. return fmt.Errorf("enums must be strings")
  9451. }
  9452. *e = SellingPlanAnchorType(str)
  9453. if !e.IsValid() {
  9454. return fmt.Errorf("%s is not a valid SellingPlanAnchorType", str)
  9455. }
  9456. return nil
  9457. }
  9458. func (e SellingPlanAnchorType) MarshalGQL(w io.Writer) {
  9459. fmt.Fprint(w, strconv.Quote(e.String()))
  9460. }
  9461. type SellingPlanCategory string
  9462. const (
  9463. SellingPlanCategoryOther SellingPlanCategory = "OTHER"
  9464. SellingPlanCategoryPreOrder SellingPlanCategory = "PRE_ORDER"
  9465. SellingPlanCategorySubscription SellingPlanCategory = "SUBSCRIPTION"
  9466. SellingPlanCategoryTryBeforeYouBuy SellingPlanCategory = "TRY_BEFORE_YOU_BUY"
  9467. )
  9468. var AllSellingPlanCategory = []SellingPlanCategory{
  9469. SellingPlanCategoryOther,
  9470. SellingPlanCategoryPreOrder,
  9471. SellingPlanCategorySubscription,
  9472. SellingPlanCategoryTryBeforeYouBuy,
  9473. }
  9474. func (e SellingPlanCategory) IsValid() bool {
  9475. switch e {
  9476. case SellingPlanCategoryOther, SellingPlanCategoryPreOrder, SellingPlanCategorySubscription, SellingPlanCategoryTryBeforeYouBuy:
  9477. return true
  9478. }
  9479. return false
  9480. }
  9481. func (e SellingPlanCategory) String() string {
  9482. return string(e)
  9483. }
  9484. func (e *SellingPlanCategory) UnmarshalGQL(v interface{}) error {
  9485. str, ok := v.(string)
  9486. if !ok {
  9487. return fmt.Errorf("enums must be strings")
  9488. }
  9489. *e = SellingPlanCategory(str)
  9490. if !e.IsValid() {
  9491. return fmt.Errorf("%s is not a valid SellingPlanCategory", str)
  9492. }
  9493. return nil
  9494. }
  9495. func (e SellingPlanCategory) MarshalGQL(w io.Writer) {
  9496. fmt.Fprint(w, strconv.Quote(e.String()))
  9497. }
  9498. type SellingPlanCheckoutChargeType string
  9499. const (
  9500. SellingPlanCheckoutChargeTypePercentage SellingPlanCheckoutChargeType = "PERCENTAGE"
  9501. SellingPlanCheckoutChargeTypePrice SellingPlanCheckoutChargeType = "PRICE"
  9502. )
  9503. var AllSellingPlanCheckoutChargeType = []SellingPlanCheckoutChargeType{
  9504. SellingPlanCheckoutChargeTypePercentage,
  9505. SellingPlanCheckoutChargeTypePrice,
  9506. }
  9507. func (e SellingPlanCheckoutChargeType) IsValid() bool {
  9508. switch e {
  9509. case SellingPlanCheckoutChargeTypePercentage, SellingPlanCheckoutChargeTypePrice:
  9510. return true
  9511. }
  9512. return false
  9513. }
  9514. func (e SellingPlanCheckoutChargeType) String() string {
  9515. return string(e)
  9516. }
  9517. func (e *SellingPlanCheckoutChargeType) UnmarshalGQL(v interface{}) error {
  9518. str, ok := v.(string)
  9519. if !ok {
  9520. return fmt.Errorf("enums must be strings")
  9521. }
  9522. *e = SellingPlanCheckoutChargeType(str)
  9523. if !e.IsValid() {
  9524. return fmt.Errorf("%s is not a valid SellingPlanCheckoutChargeType", str)
  9525. }
  9526. return nil
  9527. }
  9528. func (e SellingPlanCheckoutChargeType) MarshalGQL(w io.Writer) {
  9529. fmt.Fprint(w, strconv.Quote(e.String()))
  9530. }
  9531. type SellingPlanFixedDeliveryPolicyIntent string
  9532. const (
  9533. SellingPlanFixedDeliveryPolicyIntentFulfillmentBegin SellingPlanFixedDeliveryPolicyIntent = "FULFILLMENT_BEGIN"
  9534. )
  9535. var AllSellingPlanFixedDeliveryPolicyIntent = []SellingPlanFixedDeliveryPolicyIntent{
  9536. SellingPlanFixedDeliveryPolicyIntentFulfillmentBegin,
  9537. }
  9538. func (e SellingPlanFixedDeliveryPolicyIntent) IsValid() bool {
  9539. switch e {
  9540. case SellingPlanFixedDeliveryPolicyIntentFulfillmentBegin:
  9541. return true
  9542. }
  9543. return false
  9544. }
  9545. func (e SellingPlanFixedDeliveryPolicyIntent) String() string {
  9546. return string(e)
  9547. }
  9548. func (e *SellingPlanFixedDeliveryPolicyIntent) UnmarshalGQL(v interface{}) error {
  9549. str, ok := v.(string)
  9550. if !ok {
  9551. return fmt.Errorf("enums must be strings")
  9552. }
  9553. *e = SellingPlanFixedDeliveryPolicyIntent(str)
  9554. if !e.IsValid() {
  9555. return fmt.Errorf("%s is not a valid SellingPlanFixedDeliveryPolicyIntent", str)
  9556. }
  9557. return nil
  9558. }
  9559. func (e SellingPlanFixedDeliveryPolicyIntent) MarshalGQL(w io.Writer) {
  9560. fmt.Fprint(w, strconv.Quote(e.String()))
  9561. }
  9562. type SellingPlanFixedDeliveryPolicyPreAnchorBehavior string
  9563. const (
  9564. SellingPlanFixedDeliveryPolicyPreAnchorBehaviorAsap SellingPlanFixedDeliveryPolicyPreAnchorBehavior = "ASAP"
  9565. SellingPlanFixedDeliveryPolicyPreAnchorBehaviorNext SellingPlanFixedDeliveryPolicyPreAnchorBehavior = "NEXT"
  9566. )
  9567. var AllSellingPlanFixedDeliveryPolicyPreAnchorBehavior = []SellingPlanFixedDeliveryPolicyPreAnchorBehavior{
  9568. SellingPlanFixedDeliveryPolicyPreAnchorBehaviorAsap,
  9569. SellingPlanFixedDeliveryPolicyPreAnchorBehaviorNext,
  9570. }
  9571. func (e SellingPlanFixedDeliveryPolicyPreAnchorBehavior) IsValid() bool {
  9572. switch e {
  9573. case SellingPlanFixedDeliveryPolicyPreAnchorBehaviorAsap, SellingPlanFixedDeliveryPolicyPreAnchorBehaviorNext:
  9574. return true
  9575. }
  9576. return false
  9577. }
  9578. func (e SellingPlanFixedDeliveryPolicyPreAnchorBehavior) String() string {
  9579. return string(e)
  9580. }
  9581. func (e *SellingPlanFixedDeliveryPolicyPreAnchorBehavior) UnmarshalGQL(v interface{}) error {
  9582. str, ok := v.(string)
  9583. if !ok {
  9584. return fmt.Errorf("enums must be strings")
  9585. }
  9586. *e = SellingPlanFixedDeliveryPolicyPreAnchorBehavior(str)
  9587. if !e.IsValid() {
  9588. return fmt.Errorf("%s is not a valid SellingPlanFixedDeliveryPolicyPreAnchorBehavior", str)
  9589. }
  9590. return nil
  9591. }
  9592. func (e SellingPlanFixedDeliveryPolicyPreAnchorBehavior) MarshalGQL(w io.Writer) {
  9593. fmt.Fprint(w, strconv.Quote(e.String()))
  9594. }
  9595. type SellingPlanFulfillmentTrigger string
  9596. const (
  9597. SellingPlanFulfillmentTriggerAnchor SellingPlanFulfillmentTrigger = "ANCHOR"
  9598. SellingPlanFulfillmentTriggerAsap SellingPlanFulfillmentTrigger = "ASAP"
  9599. SellingPlanFulfillmentTriggerExactTime SellingPlanFulfillmentTrigger = "EXACT_TIME"
  9600. SellingPlanFulfillmentTriggerUnknown SellingPlanFulfillmentTrigger = "UNKNOWN"
  9601. )
  9602. var AllSellingPlanFulfillmentTrigger = []SellingPlanFulfillmentTrigger{
  9603. SellingPlanFulfillmentTriggerAnchor,
  9604. SellingPlanFulfillmentTriggerAsap,
  9605. SellingPlanFulfillmentTriggerExactTime,
  9606. SellingPlanFulfillmentTriggerUnknown,
  9607. }
  9608. func (e SellingPlanFulfillmentTrigger) IsValid() bool {
  9609. switch e {
  9610. case SellingPlanFulfillmentTriggerAnchor, SellingPlanFulfillmentTriggerAsap, SellingPlanFulfillmentTriggerExactTime, SellingPlanFulfillmentTriggerUnknown:
  9611. return true
  9612. }
  9613. return false
  9614. }
  9615. func (e SellingPlanFulfillmentTrigger) String() string {
  9616. return string(e)
  9617. }
  9618. func (e *SellingPlanFulfillmentTrigger) UnmarshalGQL(v interface{}) error {
  9619. str, ok := v.(string)
  9620. if !ok {
  9621. return fmt.Errorf("enums must be strings")
  9622. }
  9623. *e = SellingPlanFulfillmentTrigger(str)
  9624. if !e.IsValid() {
  9625. return fmt.Errorf("%s is not a valid SellingPlanFulfillmentTrigger", str)
  9626. }
  9627. return nil
  9628. }
  9629. func (e SellingPlanFulfillmentTrigger) MarshalGQL(w io.Writer) {
  9630. fmt.Fprint(w, strconv.Quote(e.String()))
  9631. }
  9632. type SellingPlanGroupUserErrorCode string
  9633. const (
  9634. SellingPlanGroupUserErrorCodeBlank SellingPlanGroupUserErrorCode = "BLANK"
  9635. SellingPlanGroupUserErrorCodeEqualTo SellingPlanGroupUserErrorCode = "EQUAL_TO"
  9636. SellingPlanGroupUserErrorCodeGreaterThan SellingPlanGroupUserErrorCode = "GREATER_THAN"
  9637. SellingPlanGroupUserErrorCodeGreaterThanOrEqualTo SellingPlanGroupUserErrorCode = "GREATER_THAN_OR_EQUAL_TO"
  9638. SellingPlanGroupUserErrorCodeInclusion SellingPlanGroupUserErrorCode = "INCLUSION"
  9639. SellingPlanGroupUserErrorCodeInvalid SellingPlanGroupUserErrorCode = "INVALID"
  9640. SellingPlanGroupUserErrorCodeLessThan SellingPlanGroupUserErrorCode = "LESS_THAN"
  9641. SellingPlanGroupUserErrorCodeLessThanOrEqualTo SellingPlanGroupUserErrorCode = "LESS_THAN_OR_EQUAL_TO"
  9642. SellingPlanGroupUserErrorCodeNotANumber SellingPlanGroupUserErrorCode = "NOT_A_NUMBER"
  9643. SellingPlanGroupUserErrorCodeNotFound SellingPlanGroupUserErrorCode = "NOT_FOUND"
  9644. SellingPlanGroupUserErrorCodePresent SellingPlanGroupUserErrorCode = "PRESENT"
  9645. SellingPlanGroupUserErrorCodeTaken SellingPlanGroupUserErrorCode = "TAKEN"
  9646. SellingPlanGroupUserErrorCodeTooBig SellingPlanGroupUserErrorCode = "TOO_BIG"
  9647. SellingPlanGroupUserErrorCodeTooLong SellingPlanGroupUserErrorCode = "TOO_LONG"
  9648. SellingPlanGroupUserErrorCodeTooShort SellingPlanGroupUserErrorCode = "TOO_SHORT"
  9649. SellingPlanGroupUserErrorCodeWrongLength SellingPlanGroupUserErrorCode = "WRONG_LENGTH"
  9650. SellingPlanGroupUserErrorCodeSellingPlanCountUpperBound SellingPlanGroupUserErrorCode = "SELLING_PLAN_COUNT_UPPER_BOUND"
  9651. SellingPlanGroupUserErrorCodeSellingPlanCountLowerBound SellingPlanGroupUserErrorCode = "SELLING_PLAN_COUNT_LOWER_BOUND"
  9652. SellingPlanGroupUserErrorCodeSellingPlanMaxCyclesMustBeGreaterThanMinCycles SellingPlanGroupUserErrorCode = "SELLING_PLAN_MAX_CYCLES_MUST_BE_GREATER_THAN_MIN_CYCLES"
  9653. SellingPlanGroupUserErrorCodeSellingPlanBillingAndDeliveryPolicyAnchorsMustBeEqual SellingPlanGroupUserErrorCode = "SELLING_PLAN_BILLING_AND_DELIVERY_POLICY_ANCHORS_MUST_BE_EQUAL"
  9654. SellingPlanGroupUserErrorCodeSellingPlanBillingCycleMustBeAMultipleOfDeliveryCycle SellingPlanGroupUserErrorCode = "SELLING_PLAN_BILLING_CYCLE_MUST_BE_A_MULTIPLE_OF_DELIVERY_CYCLE"
  9655. SellingPlanGroupUserErrorCodeSellingPlanPricingPoliciesMustContainAFixedPricingPolicy SellingPlanGroupUserErrorCode = "SELLING_PLAN_PRICING_POLICIES_MUST_CONTAIN_A_FIXED_PRICING_POLICY"
  9656. SellingPlanGroupUserErrorCodeSellingPlanMissingOption2LabelOnParentGroup SellingPlanGroupUserErrorCode = "SELLING_PLAN_MISSING_OPTION2_LABEL_ON_PARENT_GROUP"
  9657. SellingPlanGroupUserErrorCodeSellingPlanMissingOption3LabelOnParentGroup SellingPlanGroupUserErrorCode = "SELLING_PLAN_MISSING_OPTION3_LABEL_ON_PARENT_GROUP"
  9658. SellingPlanGroupUserErrorCodeSellingPlanOption2RequiredAsDefinedOnParentGroup SellingPlanGroupUserErrorCode = "SELLING_PLAN_OPTION2_REQUIRED_AS_DEFINED_ON_PARENT_GROUP"
  9659. SellingPlanGroupUserErrorCodeSellingPlanOption3RequiredAsDefinedOnParentGroup SellingPlanGroupUserErrorCode = "SELLING_PLAN_OPTION3_REQUIRED_AS_DEFINED_ON_PARENT_GROUP"
  9660. SellingPlanGroupUserErrorCodeSellingPlanPricingPoliciesLimit SellingPlanGroupUserErrorCode = "SELLING_PLAN_PRICING_POLICIES_LIMIT"
  9661. SellingPlanGroupUserErrorCodeResourceListContainsInvalidIDS SellingPlanGroupUserErrorCode = "RESOURCE_LIST_CONTAINS_INVALID_IDS"
  9662. SellingPlanGroupUserErrorCodeProductVariantDoesNotExist SellingPlanGroupUserErrorCode = "PRODUCT_VARIANT_DOES_NOT_EXIST"
  9663. SellingPlanGroupUserErrorCodeProductDoesNotExist SellingPlanGroupUserErrorCode = "PRODUCT_DOES_NOT_EXIST"
  9664. SellingPlanGroupUserErrorCodeGroupDoesNotExist SellingPlanGroupUserErrorCode = "GROUP_DOES_NOT_EXIST"
  9665. SellingPlanGroupUserErrorCodeGroupCouldNotBeDeleted SellingPlanGroupUserErrorCode = "GROUP_COULD_NOT_BE_DELETED"
  9666. SellingPlanGroupUserErrorCodeErrorAddingResourceToGroup SellingPlanGroupUserErrorCode = "ERROR_ADDING_RESOURCE_TO_GROUP"
  9667. SellingPlanGroupUserErrorCodeSellingPlanDeliveryPolicyMissing SellingPlanGroupUserErrorCode = "SELLING_PLAN_DELIVERY_POLICY_MISSING"
  9668. SellingPlanGroupUserErrorCodeSellingPlanBillingPolicyMissing SellingPlanGroupUserErrorCode = "SELLING_PLAN_BILLING_POLICY_MISSING"
  9669. SellingPlanGroupUserErrorCodePlanDoesNotExist SellingPlanGroupUserErrorCode = "PLAN_DOES_NOT_EXIST"
  9670. SellingPlanGroupUserErrorCodePlanIDMustBeSpecifiedToUpdate SellingPlanGroupUserErrorCode = "PLAN_ID_MUST_BE_SPECIFIED_TO_UPDATE"
  9671. SellingPlanGroupUserErrorCodeOnlyNeedOneBillingPolicyType SellingPlanGroupUserErrorCode = "ONLY_NEED_ONE_BILLING_POLICY_TYPE"
  9672. SellingPlanGroupUserErrorCodeOnlyNeedOneDeliveryPolicyType SellingPlanGroupUserErrorCode = "ONLY_NEED_ONE_DELIVERY_POLICY_TYPE"
  9673. SellingPlanGroupUserErrorCodeOnlyNeedOnePricingPolicyType SellingPlanGroupUserErrorCode = "ONLY_NEED_ONE_PRICING_POLICY_TYPE"
  9674. SellingPlanGroupUserErrorCodeBillingAndDeliveryPolicyTypesMustBeTheSame SellingPlanGroupUserErrorCode = "BILLING_AND_DELIVERY_POLICY_TYPES_MUST_BE_THE_SAME"
  9675. SellingPlanGroupUserErrorCodeOnlyNeedOnePricingPolicyValue SellingPlanGroupUserErrorCode = "ONLY_NEED_ONE_PRICING_POLICY_VALUE"
  9676. SellingPlanGroupUserErrorCodePricingPolicyAdjustmentValueAndTypeMustMatch SellingPlanGroupUserErrorCode = "PRICING_POLICY_ADJUSTMENT_VALUE_AND_TYPE_MUST_MATCH"
  9677. SellingPlanGroupUserErrorCodeSellingPlanDuplicateName SellingPlanGroupUserErrorCode = "SELLING_PLAN_DUPLICATE_NAME"
  9678. SellingPlanGroupUserErrorCodeSellingPlanDuplicateOptions SellingPlanGroupUserErrorCode = "SELLING_PLAN_DUPLICATE_OPTIONS"
  9679. SellingPlanGroupUserErrorCodeSellingPlanFixedPricingPoliciesLimit SellingPlanGroupUserErrorCode = "SELLING_PLAN_FIXED_PRICING_POLICIES_LIMIT"
  9680. SellingPlanGroupUserErrorCodeRemainingBalanceChargeExactTimeRequired SellingPlanGroupUserErrorCode = "REMAINING_BALANCE_CHARGE_EXACT_TIME_REQUIRED"
  9681. SellingPlanGroupUserErrorCodeCheckoutChargeValueAndTypeMustMatch SellingPlanGroupUserErrorCode = "CHECKOUT_CHARGE_VALUE_AND_TYPE_MUST_MATCH"
  9682. SellingPlanGroupUserErrorCodeOnlyNeedOneCheckoutChargeValue SellingPlanGroupUserErrorCode = "ONLY_NEED_ONE_CHECKOUT_CHARGE_VALUE"
  9683. SellingPlanGroupUserErrorCodeRemainingBalanceChargeExactTimeNotAllowed SellingPlanGroupUserErrorCode = "REMAINING_BALANCE_CHARGE_EXACT_TIME_NOT_ALLOWED"
  9684. SellingPlanGroupUserErrorCodeRemainingBalanceChargeTimeAfterCheckoutMustBeGreaterThanZero SellingPlanGroupUserErrorCode = "REMAINING_BALANCE_CHARGE_TIME_AFTER_CHECKOUT_MUST_BE_GREATER_THAN_ZERO"
  9685. SellingPlanGroupUserErrorCodeRemainingBalanceChargeTriggerOnFullCheckout SellingPlanGroupUserErrorCode = "REMAINING_BALANCE_CHARGE_TRIGGER_ON_FULL_CHECKOUT"
  9686. SellingPlanGroupUserErrorCodeRemainingBalanceChargeTriggerNoRemainingBalanceOnPartialPercentageCheckoutCharge SellingPlanGroupUserErrorCode = "REMAINING_BALANCE_CHARGE_TRIGGER_NO_REMAINING_BALANCE_ON_PARTIAL_PERCENTAGE_CHECKOUT_CHARGE"
  9687. SellingPlanGroupUserErrorCodeRemainingBalanceChargeTriggerNoRemainingBalanceOnPriceCheckoutCharge SellingPlanGroupUserErrorCode = "REMAINING_BALANCE_CHARGE_TRIGGER_NO_REMAINING_BALANCE_ON_PRICE_CHECKOUT_CHARGE"
  9688. SellingPlanGroupUserErrorCodeFulfillmentExactTimeRequired SellingPlanGroupUserErrorCode = "FULFILLMENT_EXACT_TIME_REQUIRED"
  9689. SellingPlanGroupUserErrorCodeFulfillmentExactTimeNotAllowed SellingPlanGroupUserErrorCode = "FULFILLMENT_EXACT_TIME_NOT_ALLOWED"
  9690. SellingPlanGroupUserErrorCodeSellingPlanAnchorsNotAllowed SellingPlanGroupUserErrorCode = "SELLING_PLAN_ANCHORS_NOT_ALLOWED"
  9691. SellingPlanGroupUserErrorCodeSellingPlanAnchorsRequired SellingPlanGroupUserErrorCode = "SELLING_PLAN_ANCHORS_REQUIRED"
  9692. SellingPlanGroupUserErrorCodeOnlyOneOfFixedOrRecurringBilling SellingPlanGroupUserErrorCode = "ONLY_ONE_OF_FIXED_OR_RECURRING_BILLING"
  9693. SellingPlanGroupUserErrorCodeOnlyOneOfFixedOrRecurringDelivery SellingPlanGroupUserErrorCode = "ONLY_ONE_OF_FIXED_OR_RECURRING_DELIVERY"
  9694. )
  9695. var AllSellingPlanGroupUserErrorCode = []SellingPlanGroupUserErrorCode{
  9696. SellingPlanGroupUserErrorCodeBlank,
  9697. SellingPlanGroupUserErrorCodeEqualTo,
  9698. SellingPlanGroupUserErrorCodeGreaterThan,
  9699. SellingPlanGroupUserErrorCodeGreaterThanOrEqualTo,
  9700. SellingPlanGroupUserErrorCodeInclusion,
  9701. SellingPlanGroupUserErrorCodeInvalid,
  9702. SellingPlanGroupUserErrorCodeLessThan,
  9703. SellingPlanGroupUserErrorCodeLessThanOrEqualTo,
  9704. SellingPlanGroupUserErrorCodeNotANumber,
  9705. SellingPlanGroupUserErrorCodeNotFound,
  9706. SellingPlanGroupUserErrorCodePresent,
  9707. SellingPlanGroupUserErrorCodeTaken,
  9708. SellingPlanGroupUserErrorCodeTooBig,
  9709. SellingPlanGroupUserErrorCodeTooLong,
  9710. SellingPlanGroupUserErrorCodeTooShort,
  9711. SellingPlanGroupUserErrorCodeWrongLength,
  9712. SellingPlanGroupUserErrorCodeSellingPlanCountUpperBound,
  9713. SellingPlanGroupUserErrorCodeSellingPlanCountLowerBound,
  9714. SellingPlanGroupUserErrorCodeSellingPlanMaxCyclesMustBeGreaterThanMinCycles,
  9715. SellingPlanGroupUserErrorCodeSellingPlanBillingAndDeliveryPolicyAnchorsMustBeEqual,
  9716. SellingPlanGroupUserErrorCodeSellingPlanBillingCycleMustBeAMultipleOfDeliveryCycle,
  9717. SellingPlanGroupUserErrorCodeSellingPlanPricingPoliciesMustContainAFixedPricingPolicy,
  9718. SellingPlanGroupUserErrorCodeSellingPlanMissingOption2LabelOnParentGroup,
  9719. SellingPlanGroupUserErrorCodeSellingPlanMissingOption3LabelOnParentGroup,
  9720. SellingPlanGroupUserErrorCodeSellingPlanOption2RequiredAsDefinedOnParentGroup,
  9721. SellingPlanGroupUserErrorCodeSellingPlanOption3RequiredAsDefinedOnParentGroup,
  9722. SellingPlanGroupUserErrorCodeSellingPlanPricingPoliciesLimit,
  9723. SellingPlanGroupUserErrorCodeResourceListContainsInvalidIDS,
  9724. SellingPlanGroupUserErrorCodeProductVariantDoesNotExist,
  9725. SellingPlanGroupUserErrorCodeProductDoesNotExist,
  9726. SellingPlanGroupUserErrorCodeGroupDoesNotExist,
  9727. SellingPlanGroupUserErrorCodeGroupCouldNotBeDeleted,
  9728. SellingPlanGroupUserErrorCodeErrorAddingResourceToGroup,
  9729. SellingPlanGroupUserErrorCodeSellingPlanDeliveryPolicyMissing,
  9730. SellingPlanGroupUserErrorCodeSellingPlanBillingPolicyMissing,
  9731. SellingPlanGroupUserErrorCodePlanDoesNotExist,
  9732. SellingPlanGroupUserErrorCodePlanIDMustBeSpecifiedToUpdate,
  9733. SellingPlanGroupUserErrorCodeOnlyNeedOneBillingPolicyType,
  9734. SellingPlanGroupUserErrorCodeOnlyNeedOneDeliveryPolicyType,
  9735. SellingPlanGroupUserErrorCodeOnlyNeedOnePricingPolicyType,
  9736. SellingPlanGroupUserErrorCodeBillingAndDeliveryPolicyTypesMustBeTheSame,
  9737. SellingPlanGroupUserErrorCodeOnlyNeedOnePricingPolicyValue,
  9738. SellingPlanGroupUserErrorCodePricingPolicyAdjustmentValueAndTypeMustMatch,
  9739. SellingPlanGroupUserErrorCodeSellingPlanDuplicateName,
  9740. SellingPlanGroupUserErrorCodeSellingPlanDuplicateOptions,
  9741. SellingPlanGroupUserErrorCodeSellingPlanFixedPricingPoliciesLimit,
  9742. SellingPlanGroupUserErrorCodeRemainingBalanceChargeExactTimeRequired,
  9743. SellingPlanGroupUserErrorCodeCheckoutChargeValueAndTypeMustMatch,
  9744. SellingPlanGroupUserErrorCodeOnlyNeedOneCheckoutChargeValue,
  9745. SellingPlanGroupUserErrorCodeRemainingBalanceChargeExactTimeNotAllowed,
  9746. SellingPlanGroupUserErrorCodeRemainingBalanceChargeTimeAfterCheckoutMustBeGreaterThanZero,
  9747. SellingPlanGroupUserErrorCodeRemainingBalanceChargeTriggerOnFullCheckout,
  9748. SellingPlanGroupUserErrorCodeRemainingBalanceChargeTriggerNoRemainingBalanceOnPartialPercentageCheckoutCharge,
  9749. SellingPlanGroupUserErrorCodeRemainingBalanceChargeTriggerNoRemainingBalanceOnPriceCheckoutCharge,
  9750. SellingPlanGroupUserErrorCodeFulfillmentExactTimeRequired,
  9751. SellingPlanGroupUserErrorCodeFulfillmentExactTimeNotAllowed,
  9752. SellingPlanGroupUserErrorCodeSellingPlanAnchorsNotAllowed,
  9753. SellingPlanGroupUserErrorCodeSellingPlanAnchorsRequired,
  9754. SellingPlanGroupUserErrorCodeOnlyOneOfFixedOrRecurringBilling,
  9755. SellingPlanGroupUserErrorCodeOnlyOneOfFixedOrRecurringDelivery,
  9756. }
  9757. func (e SellingPlanGroupUserErrorCode) IsValid() bool {
  9758. switch e {
  9759. case SellingPlanGroupUserErrorCodeBlank, SellingPlanGroupUserErrorCodeEqualTo, SellingPlanGroupUserErrorCodeGreaterThan, SellingPlanGroupUserErrorCodeGreaterThanOrEqualTo, SellingPlanGroupUserErrorCodeInclusion, SellingPlanGroupUserErrorCodeInvalid, SellingPlanGroupUserErrorCodeLessThan, SellingPlanGroupUserErrorCodeLessThanOrEqualTo, SellingPlanGroupUserErrorCodeNotANumber, SellingPlanGroupUserErrorCodeNotFound, SellingPlanGroupUserErrorCodePresent, SellingPlanGroupUserErrorCodeTaken, SellingPlanGroupUserErrorCodeTooBig, SellingPlanGroupUserErrorCodeTooLong, SellingPlanGroupUserErrorCodeTooShort, SellingPlanGroupUserErrorCodeWrongLength, SellingPlanGroupUserErrorCodeSellingPlanCountUpperBound, SellingPlanGroupUserErrorCodeSellingPlanCountLowerBound, SellingPlanGroupUserErrorCodeSellingPlanMaxCyclesMustBeGreaterThanMinCycles, SellingPlanGroupUserErrorCodeSellingPlanBillingAndDeliveryPolicyAnchorsMustBeEqual, SellingPlanGroupUserErrorCodeSellingPlanBillingCycleMustBeAMultipleOfDeliveryCycle, SellingPlanGroupUserErrorCodeSellingPlanPricingPoliciesMustContainAFixedPricingPolicy, SellingPlanGroupUserErrorCodeSellingPlanMissingOption2LabelOnParentGroup, SellingPlanGroupUserErrorCodeSellingPlanMissingOption3LabelOnParentGroup, SellingPlanGroupUserErrorCodeSellingPlanOption2RequiredAsDefinedOnParentGroup, SellingPlanGroupUserErrorCodeSellingPlanOption3RequiredAsDefinedOnParentGroup, SellingPlanGroupUserErrorCodeSellingPlanPricingPoliciesLimit, SellingPlanGroupUserErrorCodeResourceListContainsInvalidIDS, SellingPlanGroupUserErrorCodeProductVariantDoesNotExist, SellingPlanGroupUserErrorCodeProductDoesNotExist, SellingPlanGroupUserErrorCodeGroupDoesNotExist, SellingPlanGroupUserErrorCodeGroupCouldNotBeDeleted, SellingPlanGroupUserErrorCodeErrorAddingResourceToGroup, SellingPlanGroupUserErrorCodeSellingPlanDeliveryPolicyMissing, SellingPlanGroupUserErrorCodeSellingPlanBillingPolicyMissing, SellingPlanGroupUserErrorCodePlanDoesNotExist, SellingPlanGroupUserErrorCodePlanIDMustBeSpecifiedToUpdate, SellingPlanGroupUserErrorCodeOnlyNeedOneBillingPolicyType, SellingPlanGroupUserErrorCodeOnlyNeedOneDeliveryPolicyType, SellingPlanGroupUserErrorCodeOnlyNeedOnePricingPolicyType, SellingPlanGroupUserErrorCodeBillingAndDeliveryPolicyTypesMustBeTheSame, SellingPlanGroupUserErrorCodeOnlyNeedOnePricingPolicyValue, SellingPlanGroupUserErrorCodePricingPolicyAdjustmentValueAndTypeMustMatch, SellingPlanGroupUserErrorCodeSellingPlanDuplicateName, SellingPlanGroupUserErrorCodeSellingPlanDuplicateOptions, SellingPlanGroupUserErrorCodeSellingPlanFixedPricingPoliciesLimit, SellingPlanGroupUserErrorCodeRemainingBalanceChargeExactTimeRequired, SellingPlanGroupUserErrorCodeCheckoutChargeValueAndTypeMustMatch, SellingPlanGroupUserErrorCodeOnlyNeedOneCheckoutChargeValue, SellingPlanGroupUserErrorCodeRemainingBalanceChargeExactTimeNotAllowed, SellingPlanGroupUserErrorCodeRemainingBalanceChargeTimeAfterCheckoutMustBeGreaterThanZero, SellingPlanGroupUserErrorCodeRemainingBalanceChargeTriggerOnFullCheckout, SellingPlanGroupUserErrorCodeRemainingBalanceChargeTriggerNoRemainingBalanceOnPartialPercentageCheckoutCharge, SellingPlanGroupUserErrorCodeRemainingBalanceChargeTriggerNoRemainingBalanceOnPriceCheckoutCharge, SellingPlanGroupUserErrorCodeFulfillmentExactTimeRequired, SellingPlanGroupUserErrorCodeFulfillmentExactTimeNotAllowed, SellingPlanGroupUserErrorCodeSellingPlanAnchorsNotAllowed, SellingPlanGroupUserErrorCodeSellingPlanAnchorsRequired, SellingPlanGroupUserErrorCodeOnlyOneOfFixedOrRecurringBilling, SellingPlanGroupUserErrorCodeOnlyOneOfFixedOrRecurringDelivery:
  9760. return true
  9761. }
  9762. return false
  9763. }
  9764. func (e SellingPlanGroupUserErrorCode) String() string {
  9765. return string(e)
  9766. }
  9767. func (e *SellingPlanGroupUserErrorCode) UnmarshalGQL(v interface{}) error {
  9768. str, ok := v.(string)
  9769. if !ok {
  9770. return fmt.Errorf("enums must be strings")
  9771. }
  9772. *e = SellingPlanGroupUserErrorCode(str)
  9773. if !e.IsValid() {
  9774. return fmt.Errorf("%s is not a valid SellingPlanGroupUserErrorCode", str)
  9775. }
  9776. return nil
  9777. }
  9778. func (e SellingPlanGroupUserErrorCode) MarshalGQL(w io.Writer) {
  9779. fmt.Fprint(w, strconv.Quote(e.String()))
  9780. }
  9781. type SellingPlanInterval string
  9782. const (
  9783. SellingPlanIntervalDay SellingPlanInterval = "DAY"
  9784. SellingPlanIntervalWeek SellingPlanInterval = "WEEK"
  9785. SellingPlanIntervalMonth SellingPlanInterval = "MONTH"
  9786. SellingPlanIntervalYear SellingPlanInterval = "YEAR"
  9787. )
  9788. var AllSellingPlanInterval = []SellingPlanInterval{
  9789. SellingPlanIntervalDay,
  9790. SellingPlanIntervalWeek,
  9791. SellingPlanIntervalMonth,
  9792. SellingPlanIntervalYear,
  9793. }
  9794. func (e SellingPlanInterval) IsValid() bool {
  9795. switch e {
  9796. case SellingPlanIntervalDay, SellingPlanIntervalWeek, SellingPlanIntervalMonth, SellingPlanIntervalYear:
  9797. return true
  9798. }
  9799. return false
  9800. }
  9801. func (e SellingPlanInterval) String() string {
  9802. return string(e)
  9803. }
  9804. func (e *SellingPlanInterval) UnmarshalGQL(v interface{}) error {
  9805. str, ok := v.(string)
  9806. if !ok {
  9807. return fmt.Errorf("enums must be strings")
  9808. }
  9809. *e = SellingPlanInterval(str)
  9810. if !e.IsValid() {
  9811. return fmt.Errorf("%s is not a valid SellingPlanInterval", str)
  9812. }
  9813. return nil
  9814. }
  9815. func (e SellingPlanInterval) MarshalGQL(w io.Writer) {
  9816. fmt.Fprint(w, strconv.Quote(e.String()))
  9817. }
  9818. type SellingPlanPricingPolicyAdjustmentType string
  9819. const (
  9820. SellingPlanPricingPolicyAdjustmentTypePercentage SellingPlanPricingPolicyAdjustmentType = "PERCENTAGE"
  9821. SellingPlanPricingPolicyAdjustmentTypeFixedAmount SellingPlanPricingPolicyAdjustmentType = "FIXED_AMOUNT"
  9822. SellingPlanPricingPolicyAdjustmentTypePrice SellingPlanPricingPolicyAdjustmentType = "PRICE"
  9823. )
  9824. var AllSellingPlanPricingPolicyAdjustmentType = []SellingPlanPricingPolicyAdjustmentType{
  9825. SellingPlanPricingPolicyAdjustmentTypePercentage,
  9826. SellingPlanPricingPolicyAdjustmentTypeFixedAmount,
  9827. SellingPlanPricingPolicyAdjustmentTypePrice,
  9828. }
  9829. func (e SellingPlanPricingPolicyAdjustmentType) IsValid() bool {
  9830. switch e {
  9831. case SellingPlanPricingPolicyAdjustmentTypePercentage, SellingPlanPricingPolicyAdjustmentTypeFixedAmount, SellingPlanPricingPolicyAdjustmentTypePrice:
  9832. return true
  9833. }
  9834. return false
  9835. }
  9836. func (e SellingPlanPricingPolicyAdjustmentType) String() string {
  9837. return string(e)
  9838. }
  9839. func (e *SellingPlanPricingPolicyAdjustmentType) UnmarshalGQL(v interface{}) error {
  9840. str, ok := v.(string)
  9841. if !ok {
  9842. return fmt.Errorf("enums must be strings")
  9843. }
  9844. *e = SellingPlanPricingPolicyAdjustmentType(str)
  9845. if !e.IsValid() {
  9846. return fmt.Errorf("%s is not a valid SellingPlanPricingPolicyAdjustmentType", str)
  9847. }
  9848. return nil
  9849. }
  9850. func (e SellingPlanPricingPolicyAdjustmentType) MarshalGQL(w io.Writer) {
  9851. fmt.Fprint(w, strconv.Quote(e.String()))
  9852. }
  9853. type SellingPlanRecurringDeliveryPolicyIntent string
  9854. const (
  9855. SellingPlanRecurringDeliveryPolicyIntentFulfillmentBegin SellingPlanRecurringDeliveryPolicyIntent = "FULFILLMENT_BEGIN"
  9856. )
  9857. var AllSellingPlanRecurringDeliveryPolicyIntent = []SellingPlanRecurringDeliveryPolicyIntent{
  9858. SellingPlanRecurringDeliveryPolicyIntentFulfillmentBegin,
  9859. }
  9860. func (e SellingPlanRecurringDeliveryPolicyIntent) IsValid() bool {
  9861. switch e {
  9862. case SellingPlanRecurringDeliveryPolicyIntentFulfillmentBegin:
  9863. return true
  9864. }
  9865. return false
  9866. }
  9867. func (e SellingPlanRecurringDeliveryPolicyIntent) String() string {
  9868. return string(e)
  9869. }
  9870. func (e *SellingPlanRecurringDeliveryPolicyIntent) UnmarshalGQL(v interface{}) error {
  9871. str, ok := v.(string)
  9872. if !ok {
  9873. return fmt.Errorf("enums must be strings")
  9874. }
  9875. *e = SellingPlanRecurringDeliveryPolicyIntent(str)
  9876. if !e.IsValid() {
  9877. return fmt.Errorf("%s is not a valid SellingPlanRecurringDeliveryPolicyIntent", str)
  9878. }
  9879. return nil
  9880. }
  9881. func (e SellingPlanRecurringDeliveryPolicyIntent) MarshalGQL(w io.Writer) {
  9882. fmt.Fprint(w, strconv.Quote(e.String()))
  9883. }
  9884. type SellingPlanRecurringDeliveryPolicyPreAnchorBehavior string
  9885. const (
  9886. SellingPlanRecurringDeliveryPolicyPreAnchorBehaviorAsap SellingPlanRecurringDeliveryPolicyPreAnchorBehavior = "ASAP"
  9887. SellingPlanRecurringDeliveryPolicyPreAnchorBehaviorNext SellingPlanRecurringDeliveryPolicyPreAnchorBehavior = "NEXT"
  9888. )
  9889. var AllSellingPlanRecurringDeliveryPolicyPreAnchorBehavior = []SellingPlanRecurringDeliveryPolicyPreAnchorBehavior{
  9890. SellingPlanRecurringDeliveryPolicyPreAnchorBehaviorAsap,
  9891. SellingPlanRecurringDeliveryPolicyPreAnchorBehaviorNext,
  9892. }
  9893. func (e SellingPlanRecurringDeliveryPolicyPreAnchorBehavior) IsValid() bool {
  9894. switch e {
  9895. case SellingPlanRecurringDeliveryPolicyPreAnchorBehaviorAsap, SellingPlanRecurringDeliveryPolicyPreAnchorBehaviorNext:
  9896. return true
  9897. }
  9898. return false
  9899. }
  9900. func (e SellingPlanRecurringDeliveryPolicyPreAnchorBehavior) String() string {
  9901. return string(e)
  9902. }
  9903. func (e *SellingPlanRecurringDeliveryPolicyPreAnchorBehavior) UnmarshalGQL(v interface{}) error {
  9904. str, ok := v.(string)
  9905. if !ok {
  9906. return fmt.Errorf("enums must be strings")
  9907. }
  9908. *e = SellingPlanRecurringDeliveryPolicyPreAnchorBehavior(str)
  9909. if !e.IsValid() {
  9910. return fmt.Errorf("%s is not a valid SellingPlanRecurringDeliveryPolicyPreAnchorBehavior", str)
  9911. }
  9912. return nil
  9913. }
  9914. func (e SellingPlanRecurringDeliveryPolicyPreAnchorBehavior) MarshalGQL(w io.Writer) {
  9915. fmt.Fprint(w, strconv.Quote(e.String()))
  9916. }
  9917. type SellingPlanRemainingBalanceChargeTrigger string
  9918. const (
  9919. SellingPlanRemainingBalanceChargeTriggerNoRemainingBalance SellingPlanRemainingBalanceChargeTrigger = "NO_REMAINING_BALANCE"
  9920. SellingPlanRemainingBalanceChargeTriggerExactTime SellingPlanRemainingBalanceChargeTrigger = "EXACT_TIME"
  9921. SellingPlanRemainingBalanceChargeTriggerTimeAfterCheckout SellingPlanRemainingBalanceChargeTrigger = "TIME_AFTER_CHECKOUT"
  9922. )
  9923. var AllSellingPlanRemainingBalanceChargeTrigger = []SellingPlanRemainingBalanceChargeTrigger{
  9924. SellingPlanRemainingBalanceChargeTriggerNoRemainingBalance,
  9925. SellingPlanRemainingBalanceChargeTriggerExactTime,
  9926. SellingPlanRemainingBalanceChargeTriggerTimeAfterCheckout,
  9927. }
  9928. func (e SellingPlanRemainingBalanceChargeTrigger) IsValid() bool {
  9929. switch e {
  9930. case SellingPlanRemainingBalanceChargeTriggerNoRemainingBalance, SellingPlanRemainingBalanceChargeTriggerExactTime, SellingPlanRemainingBalanceChargeTriggerTimeAfterCheckout:
  9931. return true
  9932. }
  9933. return false
  9934. }
  9935. func (e SellingPlanRemainingBalanceChargeTrigger) String() string {
  9936. return string(e)
  9937. }
  9938. func (e *SellingPlanRemainingBalanceChargeTrigger) UnmarshalGQL(v interface{}) error {
  9939. str, ok := v.(string)
  9940. if !ok {
  9941. return fmt.Errorf("enums must be strings")
  9942. }
  9943. *e = SellingPlanRemainingBalanceChargeTrigger(str)
  9944. if !e.IsValid() {
  9945. return fmt.Errorf("%s is not a valid SellingPlanRemainingBalanceChargeTrigger", str)
  9946. }
  9947. return nil
  9948. }
  9949. func (e SellingPlanRemainingBalanceChargeTrigger) MarshalGQL(w io.Writer) {
  9950. fmt.Fprint(w, strconv.Quote(e.String()))
  9951. }
  9952. type SellingPlanReserve string
  9953. const (
  9954. SellingPlanReserveOnFulfillment SellingPlanReserve = "ON_FULFILLMENT"
  9955. SellingPlanReserveOnSale SellingPlanReserve = "ON_SALE"
  9956. )
  9957. var AllSellingPlanReserve = []SellingPlanReserve{
  9958. SellingPlanReserveOnFulfillment,
  9959. SellingPlanReserveOnSale,
  9960. }
  9961. func (e SellingPlanReserve) IsValid() bool {
  9962. switch e {
  9963. case SellingPlanReserveOnFulfillment, SellingPlanReserveOnSale:
  9964. return true
  9965. }
  9966. return false
  9967. }
  9968. func (e SellingPlanReserve) String() string {
  9969. return string(e)
  9970. }
  9971. func (e *SellingPlanReserve) UnmarshalGQL(v interface{}) error {
  9972. str, ok := v.(string)
  9973. if !ok {
  9974. return fmt.Errorf("enums must be strings")
  9975. }
  9976. *e = SellingPlanReserve(str)
  9977. if !e.IsValid() {
  9978. return fmt.Errorf("%s is not a valid SellingPlanReserve", str)
  9979. }
  9980. return nil
  9981. }
  9982. func (e SellingPlanReserve) MarshalGQL(w io.Writer) {
  9983. fmt.Fprint(w, strconv.Quote(e.String()))
  9984. }
  9985. type ShopBranding string
  9986. const (
  9987. ShopBrandingShopifyGold ShopBranding = "SHOPIFY_GOLD"
  9988. ShopBrandingShopifyPlus ShopBranding = "SHOPIFY_PLUS"
  9989. ShopBrandingRogers ShopBranding = "ROGERS"
  9990. ShopBrandingShopify ShopBranding = "SHOPIFY"
  9991. )
  9992. var AllShopBranding = []ShopBranding{
  9993. ShopBrandingShopifyGold,
  9994. ShopBrandingShopifyPlus,
  9995. ShopBrandingRogers,
  9996. ShopBrandingShopify,
  9997. }
  9998. func (e ShopBranding) IsValid() bool {
  9999. switch e {
  10000. case ShopBrandingShopifyGold, ShopBrandingShopifyPlus, ShopBrandingRogers, ShopBrandingShopify:
  10001. return true
  10002. }
  10003. return false
  10004. }
  10005. func (e ShopBranding) String() string {
  10006. return string(e)
  10007. }
  10008. func (e *ShopBranding) UnmarshalGQL(v interface{}) error {
  10009. str, ok := v.(string)
  10010. if !ok {
  10011. return fmt.Errorf("enums must be strings")
  10012. }
  10013. *e = ShopBranding(str)
  10014. if !e.IsValid() {
  10015. return fmt.Errorf("%s is not a valid ShopBranding", str)
  10016. }
  10017. return nil
  10018. }
  10019. func (e ShopBranding) MarshalGQL(w io.Writer) {
  10020. fmt.Fprint(w, strconv.Quote(e.String()))
  10021. }
  10022. type ShopCustomerAccountsSetting string
  10023. const (
  10024. ShopCustomerAccountsSettingRequired ShopCustomerAccountsSetting = "REQUIRED"
  10025. ShopCustomerAccountsSettingOptional ShopCustomerAccountsSetting = "OPTIONAL"
  10026. ShopCustomerAccountsSettingDisabled ShopCustomerAccountsSetting = "DISABLED"
  10027. )
  10028. var AllShopCustomerAccountsSetting = []ShopCustomerAccountsSetting{
  10029. ShopCustomerAccountsSettingRequired,
  10030. ShopCustomerAccountsSettingOptional,
  10031. ShopCustomerAccountsSettingDisabled,
  10032. }
  10033. func (e ShopCustomerAccountsSetting) IsValid() bool {
  10034. switch e {
  10035. case ShopCustomerAccountsSettingRequired, ShopCustomerAccountsSettingOptional, ShopCustomerAccountsSettingDisabled:
  10036. return true
  10037. }
  10038. return false
  10039. }
  10040. func (e ShopCustomerAccountsSetting) String() string {
  10041. return string(e)
  10042. }
  10043. func (e *ShopCustomerAccountsSetting) UnmarshalGQL(v interface{}) error {
  10044. str, ok := v.(string)
  10045. if !ok {
  10046. return fmt.Errorf("enums must be strings")
  10047. }
  10048. *e = ShopCustomerAccountsSetting(str)
  10049. if !e.IsValid() {
  10050. return fmt.Errorf("%s is not a valid ShopCustomerAccountsSetting", str)
  10051. }
  10052. return nil
  10053. }
  10054. func (e ShopCustomerAccountsSetting) MarshalGQL(w io.Writer) {
  10055. fmt.Fprint(w, strconv.Quote(e.String()))
  10056. }
  10057. type ShopPolicyType string
  10058. const (
  10059. ShopPolicyTypeRefundPolicy ShopPolicyType = "REFUND_POLICY"
  10060. ShopPolicyTypeShippingPolicy ShopPolicyType = "SHIPPING_POLICY"
  10061. ShopPolicyTypePrivacyPolicy ShopPolicyType = "PRIVACY_POLICY"
  10062. ShopPolicyTypeTermsOfService ShopPolicyType = "TERMS_OF_SERVICE"
  10063. ShopPolicyTypeTermsOfSale ShopPolicyType = "TERMS_OF_SALE"
  10064. ShopPolicyTypeLegalNotice ShopPolicyType = "LEGAL_NOTICE"
  10065. ShopPolicyTypeSubscriptionPolicy ShopPolicyType = "SUBSCRIPTION_POLICY"
  10066. )
  10067. var AllShopPolicyType = []ShopPolicyType{
  10068. ShopPolicyTypeRefundPolicy,
  10069. ShopPolicyTypeShippingPolicy,
  10070. ShopPolicyTypePrivacyPolicy,
  10071. ShopPolicyTypeTermsOfService,
  10072. ShopPolicyTypeTermsOfSale,
  10073. ShopPolicyTypeLegalNotice,
  10074. ShopPolicyTypeSubscriptionPolicy,
  10075. }
  10076. func (e ShopPolicyType) IsValid() bool {
  10077. switch e {
  10078. case ShopPolicyTypeRefundPolicy, ShopPolicyTypeShippingPolicy, ShopPolicyTypePrivacyPolicy, ShopPolicyTypeTermsOfService, ShopPolicyTypeTermsOfSale, ShopPolicyTypeLegalNotice, ShopPolicyTypeSubscriptionPolicy:
  10079. return true
  10080. }
  10081. return false
  10082. }
  10083. func (e ShopPolicyType) String() string {
  10084. return string(e)
  10085. }
  10086. func (e *ShopPolicyType) UnmarshalGQL(v interface{}) error {
  10087. str, ok := v.(string)
  10088. if !ok {
  10089. return fmt.Errorf("enums must be strings")
  10090. }
  10091. *e = ShopPolicyType(str)
  10092. if !e.IsValid() {
  10093. return fmt.Errorf("%s is not a valid ShopPolicyType", str)
  10094. }
  10095. return nil
  10096. }
  10097. func (e ShopPolicyType) MarshalGQL(w io.Writer) {
  10098. fmt.Fprint(w, strconv.Quote(e.String()))
  10099. }
  10100. type ShopTagSort string
  10101. const (
  10102. ShopTagSortAlphabetical ShopTagSort = "ALPHABETICAL"
  10103. ShopTagSortPopular ShopTagSort = "POPULAR"
  10104. )
  10105. var AllShopTagSort = []ShopTagSort{
  10106. ShopTagSortAlphabetical,
  10107. ShopTagSortPopular,
  10108. }
  10109. func (e ShopTagSort) IsValid() bool {
  10110. switch e {
  10111. case ShopTagSortAlphabetical, ShopTagSortPopular:
  10112. return true
  10113. }
  10114. return false
  10115. }
  10116. func (e ShopTagSort) String() string {
  10117. return string(e)
  10118. }
  10119. func (e *ShopTagSort) UnmarshalGQL(v interface{}) error {
  10120. str, ok := v.(string)
  10121. if !ok {
  10122. return fmt.Errorf("enums must be strings")
  10123. }
  10124. *e = ShopTagSort(str)
  10125. if !e.IsValid() {
  10126. return fmt.Errorf("%s is not a valid ShopTagSort", str)
  10127. }
  10128. return nil
  10129. }
  10130. func (e ShopTagSort) MarshalGQL(w io.Writer) {
  10131. fmt.Fprint(w, strconv.Quote(e.String()))
  10132. }
  10133. type StaffMemberDefaultImage string
  10134. const (
  10135. StaffMemberDefaultImageDefault StaffMemberDefaultImage = "DEFAULT"
  10136. StaffMemberDefaultImageTransparent StaffMemberDefaultImage = "TRANSPARENT"
  10137. StaffMemberDefaultImageNotFound StaffMemberDefaultImage = "NOT_FOUND"
  10138. )
  10139. var AllStaffMemberDefaultImage = []StaffMemberDefaultImage{
  10140. StaffMemberDefaultImageDefault,
  10141. StaffMemberDefaultImageTransparent,
  10142. StaffMemberDefaultImageNotFound,
  10143. }
  10144. func (e StaffMemberDefaultImage) IsValid() bool {
  10145. switch e {
  10146. case StaffMemberDefaultImageDefault, StaffMemberDefaultImageTransparent, StaffMemberDefaultImageNotFound:
  10147. return true
  10148. }
  10149. return false
  10150. }
  10151. func (e StaffMemberDefaultImage) String() string {
  10152. return string(e)
  10153. }
  10154. func (e *StaffMemberDefaultImage) UnmarshalGQL(v interface{}) error {
  10155. str, ok := v.(string)
  10156. if !ok {
  10157. return fmt.Errorf("enums must be strings")
  10158. }
  10159. *e = StaffMemberDefaultImage(str)
  10160. if !e.IsValid() {
  10161. return fmt.Errorf("%s is not a valid StaffMemberDefaultImage", str)
  10162. }
  10163. return nil
  10164. }
  10165. func (e StaffMemberDefaultImage) MarshalGQL(w io.Writer) {
  10166. fmt.Fprint(w, strconv.Quote(e.String()))
  10167. }
  10168. type SubscriptionBillingAttemptErrorCode string
  10169. const (
  10170. SubscriptionBillingAttemptErrorCodePaymentMethodNotFound SubscriptionBillingAttemptErrorCode = "PAYMENT_METHOD_NOT_FOUND"
  10171. SubscriptionBillingAttemptErrorCodePaymentProviderIsNotEnabled SubscriptionBillingAttemptErrorCode = "PAYMENT_PROVIDER_IS_NOT_ENABLED"
  10172. SubscriptionBillingAttemptErrorCodeInvalidPaymentMethod SubscriptionBillingAttemptErrorCode = "INVALID_PAYMENT_METHOD"
  10173. SubscriptionBillingAttemptErrorCodeUnexpectedError SubscriptionBillingAttemptErrorCode = "UNEXPECTED_ERROR"
  10174. SubscriptionBillingAttemptErrorCodeExpiredPaymentMethod SubscriptionBillingAttemptErrorCode = "EXPIRED_PAYMENT_METHOD"
  10175. SubscriptionBillingAttemptErrorCodePaymentMethodDeclined SubscriptionBillingAttemptErrorCode = "PAYMENT_METHOD_DECLINED"
  10176. SubscriptionBillingAttemptErrorCodeAuthenticationError SubscriptionBillingAttemptErrorCode = "AUTHENTICATION_ERROR"
  10177. SubscriptionBillingAttemptErrorCodeTestMode SubscriptionBillingAttemptErrorCode = "TEST_MODE"
  10178. SubscriptionBillingAttemptErrorCodeBuyerCanceledPaymentMethod SubscriptionBillingAttemptErrorCode = "BUYER_CANCELED_PAYMENT_METHOD"
  10179. SubscriptionBillingAttemptErrorCodeCustomerNotFound SubscriptionBillingAttemptErrorCode = "CUSTOMER_NOT_FOUND"
  10180. SubscriptionBillingAttemptErrorCodeCustomerInvalid SubscriptionBillingAttemptErrorCode = "CUSTOMER_INVALID"
  10181. SubscriptionBillingAttemptErrorCodeInvalidShippingAddress SubscriptionBillingAttemptErrorCode = "INVALID_SHIPPING_ADDRESS"
  10182. SubscriptionBillingAttemptErrorCodeInvalidCustomerBillingAgreement SubscriptionBillingAttemptErrorCode = "INVALID_CUSTOMER_BILLING_AGREEMENT"
  10183. SubscriptionBillingAttemptErrorCodeInvoiceAlreadyPaid SubscriptionBillingAttemptErrorCode = "INVOICE_ALREADY_PAID"
  10184. SubscriptionBillingAttemptErrorCodePaymentMethodIncompatibleWithGatewayConfig SubscriptionBillingAttemptErrorCode = "PAYMENT_METHOD_INCOMPATIBLE_WITH_GATEWAY_CONFIG"
  10185. SubscriptionBillingAttemptErrorCodeAmountTooSmall SubscriptionBillingAttemptErrorCode = "AMOUNT_TOO_SMALL"
  10186. )
  10187. var AllSubscriptionBillingAttemptErrorCode = []SubscriptionBillingAttemptErrorCode{
  10188. SubscriptionBillingAttemptErrorCodePaymentMethodNotFound,
  10189. SubscriptionBillingAttemptErrorCodePaymentProviderIsNotEnabled,
  10190. SubscriptionBillingAttemptErrorCodeInvalidPaymentMethod,
  10191. SubscriptionBillingAttemptErrorCodeUnexpectedError,
  10192. SubscriptionBillingAttemptErrorCodeExpiredPaymentMethod,
  10193. SubscriptionBillingAttemptErrorCodePaymentMethodDeclined,
  10194. SubscriptionBillingAttemptErrorCodeAuthenticationError,
  10195. SubscriptionBillingAttemptErrorCodeTestMode,
  10196. SubscriptionBillingAttemptErrorCodeBuyerCanceledPaymentMethod,
  10197. SubscriptionBillingAttemptErrorCodeCustomerNotFound,
  10198. SubscriptionBillingAttemptErrorCodeCustomerInvalid,
  10199. SubscriptionBillingAttemptErrorCodeInvalidShippingAddress,
  10200. SubscriptionBillingAttemptErrorCodeInvalidCustomerBillingAgreement,
  10201. SubscriptionBillingAttemptErrorCodeInvoiceAlreadyPaid,
  10202. SubscriptionBillingAttemptErrorCodePaymentMethodIncompatibleWithGatewayConfig,
  10203. SubscriptionBillingAttemptErrorCodeAmountTooSmall,
  10204. }
  10205. func (e SubscriptionBillingAttemptErrorCode) IsValid() bool {
  10206. switch e {
  10207. case SubscriptionBillingAttemptErrorCodePaymentMethodNotFound, SubscriptionBillingAttemptErrorCodePaymentProviderIsNotEnabled, SubscriptionBillingAttemptErrorCodeInvalidPaymentMethod, SubscriptionBillingAttemptErrorCodeUnexpectedError, SubscriptionBillingAttemptErrorCodeExpiredPaymentMethod, SubscriptionBillingAttemptErrorCodePaymentMethodDeclined, SubscriptionBillingAttemptErrorCodeAuthenticationError, SubscriptionBillingAttemptErrorCodeTestMode, SubscriptionBillingAttemptErrorCodeBuyerCanceledPaymentMethod, SubscriptionBillingAttemptErrorCodeCustomerNotFound, SubscriptionBillingAttemptErrorCodeCustomerInvalid, SubscriptionBillingAttemptErrorCodeInvalidShippingAddress, SubscriptionBillingAttemptErrorCodeInvalidCustomerBillingAgreement, SubscriptionBillingAttemptErrorCodeInvoiceAlreadyPaid, SubscriptionBillingAttemptErrorCodePaymentMethodIncompatibleWithGatewayConfig, SubscriptionBillingAttemptErrorCodeAmountTooSmall:
  10208. return true
  10209. }
  10210. return false
  10211. }
  10212. func (e SubscriptionBillingAttemptErrorCode) String() string {
  10213. return string(e)
  10214. }
  10215. func (e *SubscriptionBillingAttemptErrorCode) UnmarshalGQL(v interface{}) error {
  10216. str, ok := v.(string)
  10217. if !ok {
  10218. return fmt.Errorf("enums must be strings")
  10219. }
  10220. *e = SubscriptionBillingAttemptErrorCode(str)
  10221. if !e.IsValid() {
  10222. return fmt.Errorf("%s is not a valid SubscriptionBillingAttemptErrorCode", str)
  10223. }
  10224. return nil
  10225. }
  10226. func (e SubscriptionBillingAttemptErrorCode) MarshalGQL(w io.Writer) {
  10227. fmt.Fprint(w, strconv.Quote(e.String()))
  10228. }
  10229. type SubscriptionContractLastPaymentStatus string
  10230. const (
  10231. SubscriptionContractLastPaymentStatusSucceeded SubscriptionContractLastPaymentStatus = "SUCCEEDED"
  10232. SubscriptionContractLastPaymentStatusFailed SubscriptionContractLastPaymentStatus = "FAILED"
  10233. )
  10234. var AllSubscriptionContractLastPaymentStatus = []SubscriptionContractLastPaymentStatus{
  10235. SubscriptionContractLastPaymentStatusSucceeded,
  10236. SubscriptionContractLastPaymentStatusFailed,
  10237. }
  10238. func (e SubscriptionContractLastPaymentStatus) IsValid() bool {
  10239. switch e {
  10240. case SubscriptionContractLastPaymentStatusSucceeded, SubscriptionContractLastPaymentStatusFailed:
  10241. return true
  10242. }
  10243. return false
  10244. }
  10245. func (e SubscriptionContractLastPaymentStatus) String() string {
  10246. return string(e)
  10247. }
  10248. func (e *SubscriptionContractLastPaymentStatus) UnmarshalGQL(v interface{}) error {
  10249. str, ok := v.(string)
  10250. if !ok {
  10251. return fmt.Errorf("enums must be strings")
  10252. }
  10253. *e = SubscriptionContractLastPaymentStatus(str)
  10254. if !e.IsValid() {
  10255. return fmt.Errorf("%s is not a valid SubscriptionContractLastPaymentStatus", str)
  10256. }
  10257. return nil
  10258. }
  10259. func (e SubscriptionContractLastPaymentStatus) MarshalGQL(w io.Writer) {
  10260. fmt.Fprint(w, strconv.Quote(e.String()))
  10261. }
  10262. type SubscriptionContractSubscriptionStatus string
  10263. const (
  10264. SubscriptionContractSubscriptionStatusActive SubscriptionContractSubscriptionStatus = "ACTIVE"
  10265. SubscriptionContractSubscriptionStatusPaused SubscriptionContractSubscriptionStatus = "PAUSED"
  10266. SubscriptionContractSubscriptionStatusCancelled SubscriptionContractSubscriptionStatus = "CANCELLED"
  10267. SubscriptionContractSubscriptionStatusExpired SubscriptionContractSubscriptionStatus = "EXPIRED"
  10268. SubscriptionContractSubscriptionStatusFailed SubscriptionContractSubscriptionStatus = "FAILED"
  10269. )
  10270. var AllSubscriptionContractSubscriptionStatus = []SubscriptionContractSubscriptionStatus{
  10271. SubscriptionContractSubscriptionStatusActive,
  10272. SubscriptionContractSubscriptionStatusPaused,
  10273. SubscriptionContractSubscriptionStatusCancelled,
  10274. SubscriptionContractSubscriptionStatusExpired,
  10275. SubscriptionContractSubscriptionStatusFailed,
  10276. }
  10277. func (e SubscriptionContractSubscriptionStatus) IsValid() bool {
  10278. switch e {
  10279. case SubscriptionContractSubscriptionStatusActive, SubscriptionContractSubscriptionStatusPaused, SubscriptionContractSubscriptionStatusCancelled, SubscriptionContractSubscriptionStatusExpired, SubscriptionContractSubscriptionStatusFailed:
  10280. return true
  10281. }
  10282. return false
  10283. }
  10284. func (e SubscriptionContractSubscriptionStatus) String() string {
  10285. return string(e)
  10286. }
  10287. func (e *SubscriptionContractSubscriptionStatus) UnmarshalGQL(v interface{}) error {
  10288. str, ok := v.(string)
  10289. if !ok {
  10290. return fmt.Errorf("enums must be strings")
  10291. }
  10292. *e = SubscriptionContractSubscriptionStatus(str)
  10293. if !e.IsValid() {
  10294. return fmt.Errorf("%s is not a valid SubscriptionContractSubscriptionStatus", str)
  10295. }
  10296. return nil
  10297. }
  10298. func (e SubscriptionContractSubscriptionStatus) MarshalGQL(w io.Writer) {
  10299. fmt.Fprint(w, strconv.Quote(e.String()))
  10300. }
  10301. type SubscriptionDiscountRejectionReason string
  10302. const (
  10303. SubscriptionDiscountRejectionReasonNotFound SubscriptionDiscountRejectionReason = "NOT_FOUND"
  10304. SubscriptionDiscountRejectionReasonNoEntitledLineItems SubscriptionDiscountRejectionReason = "NO_ENTITLED_LINE_ITEMS"
  10305. SubscriptionDiscountRejectionReasonQuantityNotInRange SubscriptionDiscountRejectionReason = "QUANTITY_NOT_IN_RANGE"
  10306. SubscriptionDiscountRejectionReasonPurchaseNotInRange SubscriptionDiscountRejectionReason = "PURCHASE_NOT_IN_RANGE"
  10307. SubscriptionDiscountRejectionReasonCustomerNotEligible SubscriptionDiscountRejectionReason = "CUSTOMER_NOT_ELIGIBLE"
  10308. SubscriptionDiscountRejectionReasonUsageLimitReached SubscriptionDiscountRejectionReason = "USAGE_LIMIT_REACHED"
  10309. SubscriptionDiscountRejectionReasonCustomerUsageLimitReached SubscriptionDiscountRejectionReason = "CUSTOMER_USAGE_LIMIT_REACHED"
  10310. SubscriptionDiscountRejectionReasonCurrentlyInactive SubscriptionDiscountRejectionReason = "CURRENTLY_INACTIVE"
  10311. SubscriptionDiscountRejectionReasonNoEntitledShippingLines SubscriptionDiscountRejectionReason = "NO_ENTITLED_SHIPPING_LINES"
  10312. SubscriptionDiscountRejectionReasonIncompatiblePurchaseType SubscriptionDiscountRejectionReason = "INCOMPATIBLE_PURCHASE_TYPE"
  10313. SubscriptionDiscountRejectionReasonInternalError SubscriptionDiscountRejectionReason = "INTERNAL_ERROR"
  10314. )
  10315. var AllSubscriptionDiscountRejectionReason = []SubscriptionDiscountRejectionReason{
  10316. SubscriptionDiscountRejectionReasonNotFound,
  10317. SubscriptionDiscountRejectionReasonNoEntitledLineItems,
  10318. SubscriptionDiscountRejectionReasonQuantityNotInRange,
  10319. SubscriptionDiscountRejectionReasonPurchaseNotInRange,
  10320. SubscriptionDiscountRejectionReasonCustomerNotEligible,
  10321. SubscriptionDiscountRejectionReasonUsageLimitReached,
  10322. SubscriptionDiscountRejectionReasonCustomerUsageLimitReached,
  10323. SubscriptionDiscountRejectionReasonCurrentlyInactive,
  10324. SubscriptionDiscountRejectionReasonNoEntitledShippingLines,
  10325. SubscriptionDiscountRejectionReasonIncompatiblePurchaseType,
  10326. SubscriptionDiscountRejectionReasonInternalError,
  10327. }
  10328. func (e SubscriptionDiscountRejectionReason) IsValid() bool {
  10329. switch e {
  10330. case SubscriptionDiscountRejectionReasonNotFound, SubscriptionDiscountRejectionReasonNoEntitledLineItems, SubscriptionDiscountRejectionReasonQuantityNotInRange, SubscriptionDiscountRejectionReasonPurchaseNotInRange, SubscriptionDiscountRejectionReasonCustomerNotEligible, SubscriptionDiscountRejectionReasonUsageLimitReached, SubscriptionDiscountRejectionReasonCustomerUsageLimitReached, SubscriptionDiscountRejectionReasonCurrentlyInactive, SubscriptionDiscountRejectionReasonNoEntitledShippingLines, SubscriptionDiscountRejectionReasonIncompatiblePurchaseType, SubscriptionDiscountRejectionReasonInternalError:
  10331. return true
  10332. }
  10333. return false
  10334. }
  10335. func (e SubscriptionDiscountRejectionReason) String() string {
  10336. return string(e)
  10337. }
  10338. func (e *SubscriptionDiscountRejectionReason) UnmarshalGQL(v interface{}) error {
  10339. str, ok := v.(string)
  10340. if !ok {
  10341. return fmt.Errorf("enums must be strings")
  10342. }
  10343. *e = SubscriptionDiscountRejectionReason(str)
  10344. if !e.IsValid() {
  10345. return fmt.Errorf("%s is not a valid SubscriptionDiscountRejectionReason", str)
  10346. }
  10347. return nil
  10348. }
  10349. func (e SubscriptionDiscountRejectionReason) MarshalGQL(w io.Writer) {
  10350. fmt.Fprint(w, strconv.Quote(e.String()))
  10351. }
  10352. type SuggestedOrderTransactionKind string
  10353. const (
  10354. SuggestedOrderTransactionKindSuggestedRefund SuggestedOrderTransactionKind = "SUGGESTED_REFUND"
  10355. )
  10356. var AllSuggestedOrderTransactionKind = []SuggestedOrderTransactionKind{
  10357. SuggestedOrderTransactionKindSuggestedRefund,
  10358. }
  10359. func (e SuggestedOrderTransactionKind) IsValid() bool {
  10360. switch e {
  10361. case SuggestedOrderTransactionKindSuggestedRefund:
  10362. return true
  10363. }
  10364. return false
  10365. }
  10366. func (e SuggestedOrderTransactionKind) String() string {
  10367. return string(e)
  10368. }
  10369. func (e *SuggestedOrderTransactionKind) UnmarshalGQL(v interface{}) error {
  10370. str, ok := v.(string)
  10371. if !ok {
  10372. return fmt.Errorf("enums must be strings")
  10373. }
  10374. *e = SuggestedOrderTransactionKind(str)
  10375. if !e.IsValid() {
  10376. return fmt.Errorf("%s is not a valid SuggestedOrderTransactionKind", str)
  10377. }
  10378. return nil
  10379. }
  10380. func (e SuggestedOrderTransactionKind) MarshalGQL(w io.Writer) {
  10381. fmt.Fprint(w, strconv.Quote(e.String()))
  10382. }
  10383. type TaxExemption string
  10384. const (
  10385. TaxExemptionCaStatusCardExemption TaxExemption = "CA_STATUS_CARD_EXEMPTION"
  10386. TaxExemptionCaBcResellerExemption TaxExemption = "CA_BC_RESELLER_EXEMPTION"
  10387. TaxExemptionCaMbResellerExemption TaxExemption = "CA_MB_RESELLER_EXEMPTION"
  10388. TaxExemptionCaSkResellerExemption TaxExemption = "CA_SK_RESELLER_EXEMPTION"
  10389. TaxExemptionCaDiplomatExemption TaxExemption = "CA_DIPLOMAT_EXEMPTION"
  10390. TaxExemptionCaBcCommercialFisheryExemption TaxExemption = "CA_BC_COMMERCIAL_FISHERY_EXEMPTION"
  10391. TaxExemptionCaMbCommercialFisheryExemption TaxExemption = "CA_MB_COMMERCIAL_FISHERY_EXEMPTION"
  10392. TaxExemptionCaNsCommercialFisheryExemption TaxExemption = "CA_NS_COMMERCIAL_FISHERY_EXEMPTION"
  10393. TaxExemptionCaPeCommercialFisheryExemption TaxExemption = "CA_PE_COMMERCIAL_FISHERY_EXEMPTION"
  10394. TaxExemptionCaSkCommercialFisheryExemption TaxExemption = "CA_SK_COMMERCIAL_FISHERY_EXEMPTION"
  10395. TaxExemptionCaBcProductionAndMachineryExemption TaxExemption = "CA_BC_PRODUCTION_AND_MACHINERY_EXEMPTION"
  10396. TaxExemptionCaSkProductionAndMachineryExemption TaxExemption = "CA_SK_PRODUCTION_AND_MACHINERY_EXEMPTION"
  10397. TaxExemptionCaBcSubContractorExemption TaxExemption = "CA_BC_SUB_CONTRACTOR_EXEMPTION"
  10398. TaxExemptionCaSkSubContractorExemption TaxExemption = "CA_SK_SUB_CONTRACTOR_EXEMPTION"
  10399. TaxExemptionCaBcContractorExemption TaxExemption = "CA_BC_CONTRACTOR_EXEMPTION"
  10400. TaxExemptionCaSkContractorExemption TaxExemption = "CA_SK_CONTRACTOR_EXEMPTION"
  10401. TaxExemptionCaOnPurchaseExemption TaxExemption = "CA_ON_PURCHASE_EXEMPTION"
  10402. TaxExemptionCaMbFarmerExemption TaxExemption = "CA_MB_FARMER_EXEMPTION"
  10403. TaxExemptionCaNsFarmerExemption TaxExemption = "CA_NS_FARMER_EXEMPTION"
  10404. TaxExemptionCaSkFarmerExemption TaxExemption = "CA_SK_FARMER_EXEMPTION"
  10405. TaxExemptionEuReverseChargeExemptionRule TaxExemption = "EU_REVERSE_CHARGE_EXEMPTION_RULE"
  10406. TaxExemptionUsAlResellerExemption TaxExemption = "US_AL_RESELLER_EXEMPTION"
  10407. TaxExemptionUsAkResellerExemption TaxExemption = "US_AK_RESELLER_EXEMPTION"
  10408. TaxExemptionUsAzResellerExemption TaxExemption = "US_AZ_RESELLER_EXEMPTION"
  10409. TaxExemptionUsArResellerExemption TaxExemption = "US_AR_RESELLER_EXEMPTION"
  10410. TaxExemptionUsCaResellerExemption TaxExemption = "US_CA_RESELLER_EXEMPTION"
  10411. TaxExemptionUsCoResellerExemption TaxExemption = "US_CO_RESELLER_EXEMPTION"
  10412. TaxExemptionUsCtResellerExemption TaxExemption = "US_CT_RESELLER_EXEMPTION"
  10413. TaxExemptionUsDeResellerExemption TaxExemption = "US_DE_RESELLER_EXEMPTION"
  10414. TaxExemptionUsFlResellerExemption TaxExemption = "US_FL_RESELLER_EXEMPTION"
  10415. TaxExemptionUsGaResellerExemption TaxExemption = "US_GA_RESELLER_EXEMPTION"
  10416. TaxExemptionUsHiResellerExemption TaxExemption = "US_HI_RESELLER_EXEMPTION"
  10417. TaxExemptionUsIDResellerExemption TaxExemption = "US_ID_RESELLER_EXEMPTION"
  10418. TaxExemptionUsIlResellerExemption TaxExemption = "US_IL_RESELLER_EXEMPTION"
  10419. TaxExemptionUsInResellerExemption TaxExemption = "US_IN_RESELLER_EXEMPTION"
  10420. TaxExemptionUsIaResellerExemption TaxExemption = "US_IA_RESELLER_EXEMPTION"
  10421. TaxExemptionUsKsResellerExemption TaxExemption = "US_KS_RESELLER_EXEMPTION"
  10422. TaxExemptionUsKyResellerExemption TaxExemption = "US_KY_RESELLER_EXEMPTION"
  10423. TaxExemptionUsLaResellerExemption TaxExemption = "US_LA_RESELLER_EXEMPTION"
  10424. TaxExemptionUsMeResellerExemption TaxExemption = "US_ME_RESELLER_EXEMPTION"
  10425. TaxExemptionUsMdResellerExemption TaxExemption = "US_MD_RESELLER_EXEMPTION"
  10426. TaxExemptionUsMaResellerExemption TaxExemption = "US_MA_RESELLER_EXEMPTION"
  10427. TaxExemptionUsMiResellerExemption TaxExemption = "US_MI_RESELLER_EXEMPTION"
  10428. TaxExemptionUsMnResellerExemption TaxExemption = "US_MN_RESELLER_EXEMPTION"
  10429. TaxExemptionUsMsResellerExemption TaxExemption = "US_MS_RESELLER_EXEMPTION"
  10430. TaxExemptionUsMoResellerExemption TaxExemption = "US_MO_RESELLER_EXEMPTION"
  10431. TaxExemptionUsMtResellerExemption TaxExemption = "US_MT_RESELLER_EXEMPTION"
  10432. TaxExemptionUsNeResellerExemption TaxExemption = "US_NE_RESELLER_EXEMPTION"
  10433. TaxExemptionUsNvResellerExemption TaxExemption = "US_NV_RESELLER_EXEMPTION"
  10434. TaxExemptionUsNhResellerExemption TaxExemption = "US_NH_RESELLER_EXEMPTION"
  10435. TaxExemptionUsNjResellerExemption TaxExemption = "US_NJ_RESELLER_EXEMPTION"
  10436. TaxExemptionUsNmResellerExemption TaxExemption = "US_NM_RESELLER_EXEMPTION"
  10437. TaxExemptionUsNyResellerExemption TaxExemption = "US_NY_RESELLER_EXEMPTION"
  10438. TaxExemptionUsNcResellerExemption TaxExemption = "US_NC_RESELLER_EXEMPTION"
  10439. TaxExemptionUsNdResellerExemption TaxExemption = "US_ND_RESELLER_EXEMPTION"
  10440. TaxExemptionUsOhResellerExemption TaxExemption = "US_OH_RESELLER_EXEMPTION"
  10441. TaxExemptionUsOkResellerExemption TaxExemption = "US_OK_RESELLER_EXEMPTION"
  10442. TaxExemptionUsOrResellerExemption TaxExemption = "US_OR_RESELLER_EXEMPTION"
  10443. TaxExemptionUsPaResellerExemption TaxExemption = "US_PA_RESELLER_EXEMPTION"
  10444. TaxExemptionUsRiResellerExemption TaxExemption = "US_RI_RESELLER_EXEMPTION"
  10445. TaxExemptionUsScResellerExemption TaxExemption = "US_SC_RESELLER_EXEMPTION"
  10446. TaxExemptionUsSdResellerExemption TaxExemption = "US_SD_RESELLER_EXEMPTION"
  10447. TaxExemptionUsTnResellerExemption TaxExemption = "US_TN_RESELLER_EXEMPTION"
  10448. TaxExemptionUsTxResellerExemption TaxExemption = "US_TX_RESELLER_EXEMPTION"
  10449. TaxExemptionUsUtResellerExemption TaxExemption = "US_UT_RESELLER_EXEMPTION"
  10450. TaxExemptionUsVtResellerExemption TaxExemption = "US_VT_RESELLER_EXEMPTION"
  10451. TaxExemptionUsVaResellerExemption TaxExemption = "US_VA_RESELLER_EXEMPTION"
  10452. TaxExemptionUsWaResellerExemption TaxExemption = "US_WA_RESELLER_EXEMPTION"
  10453. TaxExemptionUsWvResellerExemption TaxExemption = "US_WV_RESELLER_EXEMPTION"
  10454. TaxExemptionUsWiResellerExemption TaxExemption = "US_WI_RESELLER_EXEMPTION"
  10455. TaxExemptionUsWyResellerExemption TaxExemption = "US_WY_RESELLER_EXEMPTION"
  10456. TaxExemptionUsDcResellerExemption TaxExemption = "US_DC_RESELLER_EXEMPTION"
  10457. )
  10458. var AllTaxExemption = []TaxExemption{
  10459. TaxExemptionCaStatusCardExemption,
  10460. TaxExemptionCaBcResellerExemption,
  10461. TaxExemptionCaMbResellerExemption,
  10462. TaxExemptionCaSkResellerExemption,
  10463. TaxExemptionCaDiplomatExemption,
  10464. TaxExemptionCaBcCommercialFisheryExemption,
  10465. TaxExemptionCaMbCommercialFisheryExemption,
  10466. TaxExemptionCaNsCommercialFisheryExemption,
  10467. TaxExemptionCaPeCommercialFisheryExemption,
  10468. TaxExemptionCaSkCommercialFisheryExemption,
  10469. TaxExemptionCaBcProductionAndMachineryExemption,
  10470. TaxExemptionCaSkProductionAndMachineryExemption,
  10471. TaxExemptionCaBcSubContractorExemption,
  10472. TaxExemptionCaSkSubContractorExemption,
  10473. TaxExemptionCaBcContractorExemption,
  10474. TaxExemptionCaSkContractorExemption,
  10475. TaxExemptionCaOnPurchaseExemption,
  10476. TaxExemptionCaMbFarmerExemption,
  10477. TaxExemptionCaNsFarmerExemption,
  10478. TaxExemptionCaSkFarmerExemption,
  10479. TaxExemptionEuReverseChargeExemptionRule,
  10480. TaxExemptionUsAlResellerExemption,
  10481. TaxExemptionUsAkResellerExemption,
  10482. TaxExemptionUsAzResellerExemption,
  10483. TaxExemptionUsArResellerExemption,
  10484. TaxExemptionUsCaResellerExemption,
  10485. TaxExemptionUsCoResellerExemption,
  10486. TaxExemptionUsCtResellerExemption,
  10487. TaxExemptionUsDeResellerExemption,
  10488. TaxExemptionUsFlResellerExemption,
  10489. TaxExemptionUsGaResellerExemption,
  10490. TaxExemptionUsHiResellerExemption,
  10491. TaxExemptionUsIDResellerExemption,
  10492. TaxExemptionUsIlResellerExemption,
  10493. TaxExemptionUsInResellerExemption,
  10494. TaxExemptionUsIaResellerExemption,
  10495. TaxExemptionUsKsResellerExemption,
  10496. TaxExemptionUsKyResellerExemption,
  10497. TaxExemptionUsLaResellerExemption,
  10498. TaxExemptionUsMeResellerExemption,
  10499. TaxExemptionUsMdResellerExemption,
  10500. TaxExemptionUsMaResellerExemption,
  10501. TaxExemptionUsMiResellerExemption,
  10502. TaxExemptionUsMnResellerExemption,
  10503. TaxExemptionUsMsResellerExemption,
  10504. TaxExemptionUsMoResellerExemption,
  10505. TaxExemptionUsMtResellerExemption,
  10506. TaxExemptionUsNeResellerExemption,
  10507. TaxExemptionUsNvResellerExemption,
  10508. TaxExemptionUsNhResellerExemption,
  10509. TaxExemptionUsNjResellerExemption,
  10510. TaxExemptionUsNmResellerExemption,
  10511. TaxExemptionUsNyResellerExemption,
  10512. TaxExemptionUsNcResellerExemption,
  10513. TaxExemptionUsNdResellerExemption,
  10514. TaxExemptionUsOhResellerExemption,
  10515. TaxExemptionUsOkResellerExemption,
  10516. TaxExemptionUsOrResellerExemption,
  10517. TaxExemptionUsPaResellerExemption,
  10518. TaxExemptionUsRiResellerExemption,
  10519. TaxExemptionUsScResellerExemption,
  10520. TaxExemptionUsSdResellerExemption,
  10521. TaxExemptionUsTnResellerExemption,
  10522. TaxExemptionUsTxResellerExemption,
  10523. TaxExemptionUsUtResellerExemption,
  10524. TaxExemptionUsVtResellerExemption,
  10525. TaxExemptionUsVaResellerExemption,
  10526. TaxExemptionUsWaResellerExemption,
  10527. TaxExemptionUsWvResellerExemption,
  10528. TaxExemptionUsWiResellerExemption,
  10529. TaxExemptionUsWyResellerExemption,
  10530. TaxExemptionUsDcResellerExemption,
  10531. }
  10532. func (e TaxExemption) IsValid() bool {
  10533. switch e {
  10534. case TaxExemptionCaStatusCardExemption, TaxExemptionCaBcResellerExemption, TaxExemptionCaMbResellerExemption, TaxExemptionCaSkResellerExemption, TaxExemptionCaDiplomatExemption, TaxExemptionCaBcCommercialFisheryExemption, TaxExemptionCaMbCommercialFisheryExemption, TaxExemptionCaNsCommercialFisheryExemption, TaxExemptionCaPeCommercialFisheryExemption, TaxExemptionCaSkCommercialFisheryExemption, TaxExemptionCaBcProductionAndMachineryExemption, TaxExemptionCaSkProductionAndMachineryExemption, TaxExemptionCaBcSubContractorExemption, TaxExemptionCaSkSubContractorExemption, TaxExemptionCaBcContractorExemption, TaxExemptionCaSkContractorExemption, TaxExemptionCaOnPurchaseExemption, TaxExemptionCaMbFarmerExemption, TaxExemptionCaNsFarmerExemption, TaxExemptionCaSkFarmerExemption, TaxExemptionEuReverseChargeExemptionRule, TaxExemptionUsAlResellerExemption, TaxExemptionUsAkResellerExemption, TaxExemptionUsAzResellerExemption, TaxExemptionUsArResellerExemption, TaxExemptionUsCaResellerExemption, TaxExemptionUsCoResellerExemption, TaxExemptionUsCtResellerExemption, TaxExemptionUsDeResellerExemption, TaxExemptionUsFlResellerExemption, TaxExemptionUsGaResellerExemption, TaxExemptionUsHiResellerExemption, TaxExemptionUsIDResellerExemption, TaxExemptionUsIlResellerExemption, TaxExemptionUsInResellerExemption, TaxExemptionUsIaResellerExemption, TaxExemptionUsKsResellerExemption, TaxExemptionUsKyResellerExemption, TaxExemptionUsLaResellerExemption, TaxExemptionUsMeResellerExemption, TaxExemptionUsMdResellerExemption, TaxExemptionUsMaResellerExemption, TaxExemptionUsMiResellerExemption, TaxExemptionUsMnResellerExemption, TaxExemptionUsMsResellerExemption, TaxExemptionUsMoResellerExemption, TaxExemptionUsMtResellerExemption, TaxExemptionUsNeResellerExemption, TaxExemptionUsNvResellerExemption, TaxExemptionUsNhResellerExemption, TaxExemptionUsNjResellerExemption, TaxExemptionUsNmResellerExemption, TaxExemptionUsNyResellerExemption, TaxExemptionUsNcResellerExemption, TaxExemptionUsNdResellerExemption, TaxExemptionUsOhResellerExemption, TaxExemptionUsOkResellerExemption, TaxExemptionUsOrResellerExemption, TaxExemptionUsPaResellerExemption, TaxExemptionUsRiResellerExemption, TaxExemptionUsScResellerExemption, TaxExemptionUsSdResellerExemption, TaxExemptionUsTnResellerExemption, TaxExemptionUsTxResellerExemption, TaxExemptionUsUtResellerExemption, TaxExemptionUsVtResellerExemption, TaxExemptionUsVaResellerExemption, TaxExemptionUsWaResellerExemption, TaxExemptionUsWvResellerExemption, TaxExemptionUsWiResellerExemption, TaxExemptionUsWyResellerExemption, TaxExemptionUsDcResellerExemption:
  10535. return true
  10536. }
  10537. return false
  10538. }
  10539. func (e TaxExemption) String() string {
  10540. return string(e)
  10541. }
  10542. func (e *TaxExemption) UnmarshalGQL(v interface{}) error {
  10543. str, ok := v.(string)
  10544. if !ok {
  10545. return fmt.Errorf("enums must be strings")
  10546. }
  10547. *e = TaxExemption(str)
  10548. if !e.IsValid() {
  10549. return fmt.Errorf("%s is not a valid TaxExemption", str)
  10550. }
  10551. return nil
  10552. }
  10553. func (e TaxExemption) MarshalGQL(w io.Writer) {
  10554. fmt.Fprint(w, strconv.Quote(e.String()))
  10555. }
  10556. type UnitSystem string
  10557. const (
  10558. UnitSystemImperialSystem UnitSystem = "IMPERIAL_SYSTEM"
  10559. UnitSystemMetricSystem UnitSystem = "METRIC_SYSTEM"
  10560. )
  10561. var AllUnitSystem = []UnitSystem{
  10562. UnitSystemImperialSystem,
  10563. UnitSystemMetricSystem,
  10564. }
  10565. func (e UnitSystem) IsValid() bool {
  10566. switch e {
  10567. case UnitSystemImperialSystem, UnitSystemMetricSystem:
  10568. return true
  10569. }
  10570. return false
  10571. }
  10572. func (e UnitSystem) String() string {
  10573. return string(e)
  10574. }
  10575. func (e *UnitSystem) UnmarshalGQL(v interface{}) error {
  10576. str, ok := v.(string)
  10577. if !ok {
  10578. return fmt.Errorf("enums must be strings")
  10579. }
  10580. *e = UnitSystem(str)
  10581. if !e.IsValid() {
  10582. return fmt.Errorf("%s is not a valid UnitSystem", str)
  10583. }
  10584. return nil
  10585. }
  10586. func (e UnitSystem) MarshalGQL(w io.Writer) {
  10587. fmt.Fprint(w, strconv.Quote(e.String()))
  10588. }
  10589. type WeightUnit string
  10590. const (
  10591. WeightUnitKilograms WeightUnit = "KILOGRAMS"
  10592. WeightUnitGrams WeightUnit = "GRAMS"
  10593. WeightUnitPounds WeightUnit = "POUNDS"
  10594. WeightUnitOunces WeightUnit = "OUNCES"
  10595. )
  10596. var AllWeightUnit = []WeightUnit{
  10597. WeightUnitKilograms,
  10598. WeightUnitGrams,
  10599. WeightUnitPounds,
  10600. WeightUnitOunces,
  10601. }
  10602. func (e WeightUnit) IsValid() bool {
  10603. switch e {
  10604. case WeightUnitKilograms, WeightUnitGrams, WeightUnitPounds, WeightUnitOunces:
  10605. return true
  10606. }
  10607. return false
  10608. }
  10609. func (e WeightUnit) String() string {
  10610. return string(e)
  10611. }
  10612. func (e *WeightUnit) UnmarshalGQL(v interface{}) error {
  10613. str, ok := v.(string)
  10614. if !ok {
  10615. return fmt.Errorf("enums must be strings")
  10616. }
  10617. *e = WeightUnit(str)
  10618. if !e.IsValid() {
  10619. return fmt.Errorf("%s is not a valid WeightUnit", str)
  10620. }
  10621. return nil
  10622. }
  10623. func (e WeightUnit) MarshalGQL(w io.Writer) {
  10624. fmt.Fprint(w, strconv.Quote(e.String()))
  10625. }