models.go 429 KB

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