models.go 417 KB

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