models.go 442 KB

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