models.go 474 KB

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