googlecontent.pp 457 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340
  1. unit googlecontent;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TAccount = Class;
  9. TAccountAdwordsLink = Class;
  10. TAccountIdentifier = Class;
  11. TAccountShipping = Class;
  12. TAccountShippingCarrierRate = Class;
  13. TAccountShippingCondition = Class;
  14. TAccountShippingLocationGroup = Class;
  15. TAccountShippingPostalCodeRange = Class;
  16. TAccountShippingRateTable = Class;
  17. TAccountShippingRateTableCell = Class;
  18. TAccountShippingShippingService = Class;
  19. TAccountShippingShippingServiceCalculationMethod = Class;
  20. TAccountShippingShippingServiceCostRule = Class;
  21. TAccountStatus = Class;
  22. TAccountStatusDataQualityIssue = Class;
  23. TAccountStatusExampleItem = Class;
  24. TAccountTax = Class;
  25. TAccountTaxTaxRule = Class;
  26. TAccountUser = Class;
  27. TAccountsAuthInfoResponse = Class;
  28. TAccountsCustomBatchRequest = Class;
  29. TAccountsCustomBatchRequestEntry = Class;
  30. TAccountsCustomBatchResponse = Class;
  31. TAccountsCustomBatchResponseEntry = Class;
  32. TAccountsListResponse = Class;
  33. TAccountshippingCustomBatchRequest = Class;
  34. TAccountshippingCustomBatchRequestEntry = Class;
  35. TAccountshippingCustomBatchResponse = Class;
  36. TAccountshippingCustomBatchResponseEntry = Class;
  37. TAccountshippingListResponse = Class;
  38. TAccountstatusesCustomBatchRequest = Class;
  39. TAccountstatusesCustomBatchRequestEntry = Class;
  40. TAccountstatusesCustomBatchResponse = Class;
  41. TAccountstatusesCustomBatchResponseEntry = Class;
  42. TAccountstatusesListResponse = Class;
  43. TAccounttaxCustomBatchRequest = Class;
  44. TAccounttaxCustomBatchRequestEntry = Class;
  45. TAccounttaxCustomBatchResponse = Class;
  46. TAccounttaxCustomBatchResponseEntry = Class;
  47. TAccounttaxListResponse = Class;
  48. TDatafeed = Class;
  49. TDatafeedFetchSchedule = Class;
  50. TDatafeedFormat = Class;
  51. TDatafeedStatus = Class;
  52. TDatafeedStatusError = Class;
  53. TDatafeedStatusExample = Class;
  54. TDatafeedsCustomBatchRequest = Class;
  55. TDatafeedsCustomBatchRequestEntry = Class;
  56. TDatafeedsCustomBatchResponse = Class;
  57. TDatafeedsCustomBatchResponseEntry = Class;
  58. TDatafeedsListResponse = Class;
  59. TDatafeedstatusesCustomBatchRequest = Class;
  60. TDatafeedstatusesCustomBatchRequestEntry = Class;
  61. TDatafeedstatusesCustomBatchResponse = Class;
  62. TDatafeedstatusesCustomBatchResponseEntry = Class;
  63. TDatafeedstatusesListResponse = Class;
  64. TError = Class;
  65. TErrors = Class;
  66. TInstallment = Class;
  67. TInventory = Class;
  68. TInventoryCustomBatchRequest = Class;
  69. TInventoryCustomBatchRequestEntry = Class;
  70. TInventoryCustomBatchResponse = Class;
  71. TInventoryCustomBatchResponseEntry = Class;
  72. TInventorySetRequest = Class;
  73. TInventorySetResponse = Class;
  74. TLoyaltyPoints = Class;
  75. TOrder = Class;
  76. TOrderAddress = Class;
  77. TOrderCancellation = Class;
  78. TOrderCustomer = Class;
  79. TOrderDeliveryDetails = Class;
  80. TOrderLineItem = Class;
  81. TOrderLineItemProduct = Class;
  82. TOrderLineItemProductVariantAttribute = Class;
  83. TOrderLineItemReturnInfo = Class;
  84. TOrderLineItemShippingDetails = Class;
  85. TOrderLineItemShippingDetailsMethod = Class;
  86. TOrderPaymentMethod = Class;
  87. TOrderPromotion = Class;
  88. TOrderPromotionBenefit = Class;
  89. TOrderRefund = Class;
  90. TOrderReturn = Class;
  91. TOrderShipment = Class;
  92. TOrderShipmentLineItemShipment = Class;
  93. TOrdersAcknowledgeRequest = Class;
  94. TOrdersAcknowledgeResponse = Class;
  95. TOrdersAdvanceTestOrderResponse = Class;
  96. TOrdersCancelLineItemRequest = Class;
  97. TOrdersCancelLineItemResponse = Class;
  98. TOrdersCancelRequest = Class;
  99. TOrdersCancelResponse = Class;
  100. TOrdersCreateTestOrderRequest = Class;
  101. TOrdersCreateTestOrderResponse = Class;
  102. TOrdersCustomBatchRequest = Class;
  103. TOrdersCustomBatchRequestEntry = Class;
  104. TOrdersCustomBatchRequestEntryCancel = Class;
  105. TOrdersCustomBatchRequestEntryCancelLineItem = Class;
  106. TOrdersCustomBatchRequestEntryRefund = Class;
  107. TOrdersCustomBatchRequestEntryReturnLineItem = Class;
  108. TOrdersCustomBatchRequestEntryShipLineItems = Class;
  109. TOrdersCustomBatchRequestEntryUpdateShipment = Class;
  110. TOrdersCustomBatchResponse = Class;
  111. TOrdersCustomBatchResponseEntry = Class;
  112. TOrdersGetByMerchantOrderIdResponse = Class;
  113. TOrdersGetTestOrderTemplateResponse = Class;
  114. TOrdersListResponse = Class;
  115. TOrdersRefundRequest = Class;
  116. TOrdersRefundResponse = Class;
  117. TOrdersReturnLineItemRequest = Class;
  118. TOrdersReturnLineItemResponse = Class;
  119. TOrdersShipLineItemsRequest = Class;
  120. TOrdersShipLineItemsResponse = Class;
  121. TOrdersUpdateMerchantOrderIdRequest = Class;
  122. TOrdersUpdateMerchantOrderIdResponse = Class;
  123. TOrdersUpdateShipmentRequest = Class;
  124. TOrdersUpdateShipmentResponse = Class;
  125. TPrice = Class;
  126. TProduct = Class;
  127. TProductAspect = Class;
  128. TProductCustomAttribute = Class;
  129. TProductCustomGroup = Class;
  130. TProductDestination = Class;
  131. TProductShipping = Class;
  132. TProductShippingDimension = Class;
  133. TProductShippingWeight = Class;
  134. TProductStatus = Class;
  135. TProductStatusDataQualityIssue = Class;
  136. TProductStatusDestinationStatus = Class;
  137. TProductTax = Class;
  138. TProductUnitPricingBaseMeasure = Class;
  139. TProductUnitPricingMeasure = Class;
  140. TProductsCustomBatchRequest = Class;
  141. TProductsCustomBatchRequestEntry = Class;
  142. TProductsCustomBatchResponse = Class;
  143. TProductsCustomBatchResponseEntry = Class;
  144. TProductsListResponse = Class;
  145. TProductstatusesCustomBatchRequest = Class;
  146. TProductstatusesCustomBatchRequestEntry = Class;
  147. TProductstatusesCustomBatchResponse = Class;
  148. TProductstatusesCustomBatchResponseEntry = Class;
  149. TProductstatusesListResponse = Class;
  150. TTestOrder = Class;
  151. TTestOrderCustomer = Class;
  152. TTestOrderLineItem = Class;
  153. TTestOrderLineItemProduct = Class;
  154. TTestOrderPaymentMethod = Class;
  155. TWeight = Class;
  156. TAccountArray = Array of TAccount;
  157. TAccountAdwordsLinkArray = Array of TAccountAdwordsLink;
  158. TAccountIdentifierArray = Array of TAccountIdentifier;
  159. TAccountShippingArray = Array of TAccountShipping;
  160. TAccountShippingCarrierRateArray = Array of TAccountShippingCarrierRate;
  161. TAccountShippingConditionArray = Array of TAccountShippingCondition;
  162. TAccountShippingLocationGroupArray = Array of TAccountShippingLocationGroup;
  163. TAccountShippingPostalCodeRangeArray = Array of TAccountShippingPostalCodeRange;
  164. TAccountShippingRateTableArray = Array of TAccountShippingRateTable;
  165. TAccountShippingRateTableCellArray = Array of TAccountShippingRateTableCell;
  166. TAccountShippingShippingServiceArray = Array of TAccountShippingShippingService;
  167. TAccountShippingShippingServiceCalculationMethodArray = Array of TAccountShippingShippingServiceCalculationMethod;
  168. TAccountShippingShippingServiceCostRuleArray = Array of TAccountShippingShippingServiceCostRule;
  169. TAccountStatusArray = Array of TAccountStatus;
  170. TAccountStatusDataQualityIssueArray = Array of TAccountStatusDataQualityIssue;
  171. TAccountStatusExampleItemArray = Array of TAccountStatusExampleItem;
  172. TAccountTaxArray = Array of TAccountTax;
  173. TAccountTaxTaxRuleArray = Array of TAccountTaxTaxRule;
  174. TAccountUserArray = Array of TAccountUser;
  175. TAccountsAuthInfoResponseArray = Array of TAccountsAuthInfoResponse;
  176. TAccountsCustomBatchRequestArray = Array of TAccountsCustomBatchRequest;
  177. TAccountsCustomBatchRequestEntryArray = Array of TAccountsCustomBatchRequestEntry;
  178. TAccountsCustomBatchResponseArray = Array of TAccountsCustomBatchResponse;
  179. TAccountsCustomBatchResponseEntryArray = Array of TAccountsCustomBatchResponseEntry;
  180. TAccountsListResponseArray = Array of TAccountsListResponse;
  181. TAccountshippingCustomBatchRequestArray = Array of TAccountshippingCustomBatchRequest;
  182. TAccountshippingCustomBatchRequestEntryArray = Array of TAccountshippingCustomBatchRequestEntry;
  183. TAccountshippingCustomBatchResponseArray = Array of TAccountshippingCustomBatchResponse;
  184. TAccountshippingCustomBatchResponseEntryArray = Array of TAccountshippingCustomBatchResponseEntry;
  185. TAccountshippingListResponseArray = Array of TAccountshippingListResponse;
  186. TAccountstatusesCustomBatchRequestArray = Array of TAccountstatusesCustomBatchRequest;
  187. TAccountstatusesCustomBatchRequestEntryArray = Array of TAccountstatusesCustomBatchRequestEntry;
  188. TAccountstatusesCustomBatchResponseArray = Array of TAccountstatusesCustomBatchResponse;
  189. TAccountstatusesCustomBatchResponseEntryArray = Array of TAccountstatusesCustomBatchResponseEntry;
  190. TAccountstatusesListResponseArray = Array of TAccountstatusesListResponse;
  191. TAccounttaxCustomBatchRequestArray = Array of TAccounttaxCustomBatchRequest;
  192. TAccounttaxCustomBatchRequestEntryArray = Array of TAccounttaxCustomBatchRequestEntry;
  193. TAccounttaxCustomBatchResponseArray = Array of TAccounttaxCustomBatchResponse;
  194. TAccounttaxCustomBatchResponseEntryArray = Array of TAccounttaxCustomBatchResponseEntry;
  195. TAccounttaxListResponseArray = Array of TAccounttaxListResponse;
  196. TDatafeedArray = Array of TDatafeed;
  197. TDatafeedFetchScheduleArray = Array of TDatafeedFetchSchedule;
  198. TDatafeedFormatArray = Array of TDatafeedFormat;
  199. TDatafeedStatusArray = Array of TDatafeedStatus;
  200. TDatafeedStatusErrorArray = Array of TDatafeedStatusError;
  201. TDatafeedStatusExampleArray = Array of TDatafeedStatusExample;
  202. TDatafeedsCustomBatchRequestArray = Array of TDatafeedsCustomBatchRequest;
  203. TDatafeedsCustomBatchRequestEntryArray = Array of TDatafeedsCustomBatchRequestEntry;
  204. TDatafeedsCustomBatchResponseArray = Array of TDatafeedsCustomBatchResponse;
  205. TDatafeedsCustomBatchResponseEntryArray = Array of TDatafeedsCustomBatchResponseEntry;
  206. TDatafeedsListResponseArray = Array of TDatafeedsListResponse;
  207. TDatafeedstatusesCustomBatchRequestArray = Array of TDatafeedstatusesCustomBatchRequest;
  208. TDatafeedstatusesCustomBatchRequestEntryArray = Array of TDatafeedstatusesCustomBatchRequestEntry;
  209. TDatafeedstatusesCustomBatchResponseArray = Array of TDatafeedstatusesCustomBatchResponse;
  210. TDatafeedstatusesCustomBatchResponseEntryArray = Array of TDatafeedstatusesCustomBatchResponseEntry;
  211. TDatafeedstatusesListResponseArray = Array of TDatafeedstatusesListResponse;
  212. TErrorArray = Array of TError;
  213. TErrorsArray = Array of TErrors;
  214. TInstallmentArray = Array of TInstallment;
  215. TInventoryArray = Array of TInventory;
  216. TInventoryCustomBatchRequestArray = Array of TInventoryCustomBatchRequest;
  217. TInventoryCustomBatchRequestEntryArray = Array of TInventoryCustomBatchRequestEntry;
  218. TInventoryCustomBatchResponseArray = Array of TInventoryCustomBatchResponse;
  219. TInventoryCustomBatchResponseEntryArray = Array of TInventoryCustomBatchResponseEntry;
  220. TInventorySetRequestArray = Array of TInventorySetRequest;
  221. TInventorySetResponseArray = Array of TInventorySetResponse;
  222. TLoyaltyPointsArray = Array of TLoyaltyPoints;
  223. TOrderArray = Array of TOrder;
  224. TOrderAddressArray = Array of TOrderAddress;
  225. TOrderCancellationArray = Array of TOrderCancellation;
  226. TOrderCustomerArray = Array of TOrderCustomer;
  227. TOrderDeliveryDetailsArray = Array of TOrderDeliveryDetails;
  228. TOrderLineItemArray = Array of TOrderLineItem;
  229. TOrderLineItemProductArray = Array of TOrderLineItemProduct;
  230. TOrderLineItemProductVariantAttributeArray = Array of TOrderLineItemProductVariantAttribute;
  231. TOrderLineItemReturnInfoArray = Array of TOrderLineItemReturnInfo;
  232. TOrderLineItemShippingDetailsArray = Array of TOrderLineItemShippingDetails;
  233. TOrderLineItemShippingDetailsMethodArray = Array of TOrderLineItemShippingDetailsMethod;
  234. TOrderPaymentMethodArray = Array of TOrderPaymentMethod;
  235. TOrderPromotionArray = Array of TOrderPromotion;
  236. TOrderPromotionBenefitArray = Array of TOrderPromotionBenefit;
  237. TOrderRefundArray = Array of TOrderRefund;
  238. TOrderReturnArray = Array of TOrderReturn;
  239. TOrderShipmentArray = Array of TOrderShipment;
  240. TOrderShipmentLineItemShipmentArray = Array of TOrderShipmentLineItemShipment;
  241. TOrdersAcknowledgeRequestArray = Array of TOrdersAcknowledgeRequest;
  242. TOrdersAcknowledgeResponseArray = Array of TOrdersAcknowledgeResponse;
  243. TOrdersAdvanceTestOrderResponseArray = Array of TOrdersAdvanceTestOrderResponse;
  244. TOrdersCancelLineItemRequestArray = Array of TOrdersCancelLineItemRequest;
  245. TOrdersCancelLineItemResponseArray = Array of TOrdersCancelLineItemResponse;
  246. TOrdersCancelRequestArray = Array of TOrdersCancelRequest;
  247. TOrdersCancelResponseArray = Array of TOrdersCancelResponse;
  248. TOrdersCreateTestOrderRequestArray = Array of TOrdersCreateTestOrderRequest;
  249. TOrdersCreateTestOrderResponseArray = Array of TOrdersCreateTestOrderResponse;
  250. TOrdersCustomBatchRequestArray = Array of TOrdersCustomBatchRequest;
  251. TOrdersCustomBatchRequestEntryArray = Array of TOrdersCustomBatchRequestEntry;
  252. TOrdersCustomBatchRequestEntryCancelArray = Array of TOrdersCustomBatchRequestEntryCancel;
  253. TOrdersCustomBatchRequestEntryCancelLineItemArray = Array of TOrdersCustomBatchRequestEntryCancelLineItem;
  254. TOrdersCustomBatchRequestEntryRefundArray = Array of TOrdersCustomBatchRequestEntryRefund;
  255. TOrdersCustomBatchRequestEntryReturnLineItemArray = Array of TOrdersCustomBatchRequestEntryReturnLineItem;
  256. TOrdersCustomBatchRequestEntryShipLineItemsArray = Array of TOrdersCustomBatchRequestEntryShipLineItems;
  257. TOrdersCustomBatchRequestEntryUpdateShipmentArray = Array of TOrdersCustomBatchRequestEntryUpdateShipment;
  258. TOrdersCustomBatchResponseArray = Array of TOrdersCustomBatchResponse;
  259. TOrdersCustomBatchResponseEntryArray = Array of TOrdersCustomBatchResponseEntry;
  260. TOrdersGetByMerchantOrderIdResponseArray = Array of TOrdersGetByMerchantOrderIdResponse;
  261. TOrdersGetTestOrderTemplateResponseArray = Array of TOrdersGetTestOrderTemplateResponse;
  262. TOrdersListResponseArray = Array of TOrdersListResponse;
  263. TOrdersRefundRequestArray = Array of TOrdersRefundRequest;
  264. TOrdersRefundResponseArray = Array of TOrdersRefundResponse;
  265. TOrdersReturnLineItemRequestArray = Array of TOrdersReturnLineItemRequest;
  266. TOrdersReturnLineItemResponseArray = Array of TOrdersReturnLineItemResponse;
  267. TOrdersShipLineItemsRequestArray = Array of TOrdersShipLineItemsRequest;
  268. TOrdersShipLineItemsResponseArray = Array of TOrdersShipLineItemsResponse;
  269. TOrdersUpdateMerchantOrderIdRequestArray = Array of TOrdersUpdateMerchantOrderIdRequest;
  270. TOrdersUpdateMerchantOrderIdResponseArray = Array of TOrdersUpdateMerchantOrderIdResponse;
  271. TOrdersUpdateShipmentRequestArray = Array of TOrdersUpdateShipmentRequest;
  272. TOrdersUpdateShipmentResponseArray = Array of TOrdersUpdateShipmentResponse;
  273. TPriceArray = Array of TPrice;
  274. TProductArray = Array of TProduct;
  275. TProductAspectArray = Array of TProductAspect;
  276. TProductCustomAttributeArray = Array of TProductCustomAttribute;
  277. TProductCustomGroupArray = Array of TProductCustomGroup;
  278. TProductDestinationArray = Array of TProductDestination;
  279. TProductShippingArray = Array of TProductShipping;
  280. TProductShippingDimensionArray = Array of TProductShippingDimension;
  281. TProductShippingWeightArray = Array of TProductShippingWeight;
  282. TProductStatusArray = Array of TProductStatus;
  283. TProductStatusDataQualityIssueArray = Array of TProductStatusDataQualityIssue;
  284. TProductStatusDestinationStatusArray = Array of TProductStatusDestinationStatus;
  285. TProductTaxArray = Array of TProductTax;
  286. TProductUnitPricingBaseMeasureArray = Array of TProductUnitPricingBaseMeasure;
  287. TProductUnitPricingMeasureArray = Array of TProductUnitPricingMeasure;
  288. TProductsCustomBatchRequestArray = Array of TProductsCustomBatchRequest;
  289. TProductsCustomBatchRequestEntryArray = Array of TProductsCustomBatchRequestEntry;
  290. TProductsCustomBatchResponseArray = Array of TProductsCustomBatchResponse;
  291. TProductsCustomBatchResponseEntryArray = Array of TProductsCustomBatchResponseEntry;
  292. TProductsListResponseArray = Array of TProductsListResponse;
  293. TProductstatusesCustomBatchRequestArray = Array of TProductstatusesCustomBatchRequest;
  294. TProductstatusesCustomBatchRequestEntryArray = Array of TProductstatusesCustomBatchRequestEntry;
  295. TProductstatusesCustomBatchResponseArray = Array of TProductstatusesCustomBatchResponse;
  296. TProductstatusesCustomBatchResponseEntryArray = Array of TProductstatusesCustomBatchResponseEntry;
  297. TProductstatusesListResponseArray = Array of TProductstatusesListResponse;
  298. TTestOrderArray = Array of TTestOrder;
  299. TTestOrderCustomerArray = Array of TTestOrderCustomer;
  300. TTestOrderLineItemArray = Array of TTestOrderLineItem;
  301. TTestOrderLineItemProductArray = Array of TTestOrderLineItemProduct;
  302. TTestOrderPaymentMethodArray = Array of TTestOrderPaymentMethod;
  303. TWeightArray = Array of TWeight;
  304. //Anonymous types, using auto-generated names
  305. TAccountTypeadwordsLinksArray = Array of TAccountAdwordsLink;
  306. TAccountTypeusersArray = Array of TAccountUser;
  307. TAccountShippingTypecarrierRatesArray = Array of TAccountShippingCarrierRate;
  308. TAccountShippingTypelocationGroupsArray = Array of TAccountShippingLocationGroup;
  309. TAccountShippingTyperateTablesArray = Array of TAccountShippingRateTable;
  310. TAccountShippingTypeservicesArray = Array of TAccountShippingShippingService;
  311. TAccountShippingLocationGroupTypepostalCodeRangesArray = Array of TAccountShippingPostalCodeRange;
  312. TAccountShippingRateTableTypecontentArray = Array of TAccountShippingRateTableCell;
  313. TAccountShippingShippingServiceCostRuleTypechildrenArray = Array of TAccountShippingShippingServiceCostRule;
  314. TAccountStatusTypedataQualityIssuesArray = Array of TAccountStatusDataQualityIssue;
  315. TAccountStatusDataQualityIssueTypeexampleItemsArray = Array of TAccountStatusExampleItem;
  316. TAccountTaxTyperulesArray = Array of TAccountTaxTaxRule;
  317. TAccountsAuthInfoResponseTypeaccountIdentifiersArray = Array of TAccountIdentifier;
  318. TAccountsCustomBatchRequestTypeentriesArray = Array of TAccountsCustomBatchRequestEntry;
  319. TAccountsCustomBatchResponseTypeentriesArray = Array of TAccountsCustomBatchResponseEntry;
  320. TAccountsListResponseTyperesourcesArray = Array of TAccount;
  321. TAccountshippingCustomBatchRequestTypeentriesArray = Array of TAccountshippingCustomBatchRequestEntry;
  322. TAccountshippingCustomBatchResponseTypeentriesArray = Array of TAccountshippingCustomBatchResponseEntry;
  323. TAccountshippingListResponseTyperesourcesArray = Array of TAccountShipping;
  324. TAccountstatusesCustomBatchRequestTypeentriesArray = Array of TAccountstatusesCustomBatchRequestEntry;
  325. TAccountstatusesCustomBatchResponseTypeentriesArray = Array of TAccountstatusesCustomBatchResponseEntry;
  326. TAccountstatusesListResponseTyperesourcesArray = Array of TAccountStatus;
  327. TAccounttaxCustomBatchRequestTypeentriesArray = Array of TAccounttaxCustomBatchRequestEntry;
  328. TAccounttaxCustomBatchResponseTypeentriesArray = Array of TAccounttaxCustomBatchResponseEntry;
  329. TAccounttaxListResponseTyperesourcesArray = Array of TAccountTax;
  330. TDatafeedStatusTypeerrorsArray = Array of TDatafeedStatusError;
  331. TDatafeedStatusTypewarningsArray = Array of TDatafeedStatusError;
  332. TDatafeedStatusErrorTypeexamplesArray = Array of TDatafeedStatusExample;
  333. TDatafeedsCustomBatchRequestTypeentriesArray = Array of TDatafeedsCustomBatchRequestEntry;
  334. TDatafeedsCustomBatchResponseTypeentriesArray = Array of TDatafeedsCustomBatchResponseEntry;
  335. TDatafeedsListResponseTyperesourcesArray = Array of TDatafeed;
  336. TDatafeedstatusesCustomBatchRequestTypeentriesArray = Array of TDatafeedstatusesCustomBatchRequestEntry;
  337. TDatafeedstatusesCustomBatchResponseTypeentriesArray = Array of TDatafeedstatusesCustomBatchResponseEntry;
  338. TDatafeedstatusesListResponseTyperesourcesArray = Array of TDatafeedStatus;
  339. TErrorsTypeerrorsArray = Array of TError;
  340. TInventoryCustomBatchRequestTypeentriesArray = Array of TInventoryCustomBatchRequestEntry;
  341. TInventoryCustomBatchResponseTypeentriesArray = Array of TInventoryCustomBatchResponseEntry;
  342. TOrderTypelineItemsArray = Array of TOrderLineItem;
  343. TOrderTypepromotionsArray = Array of TOrderPromotion;
  344. TOrderTyperefundsArray = Array of TOrderRefund;
  345. TOrderTypeshipmentsArray = Array of TOrderShipment;
  346. TOrderLineItemTypecancellationsArray = Array of TOrderCancellation;
  347. TOrderLineItemTypereturnsArray = Array of TOrderReturn;
  348. TOrderLineItemProductTypevariantAttributesArray = Array of TOrderLineItemProductVariantAttribute;
  349. TOrderPromotionTypebenefitsArray = Array of TOrderPromotionBenefit;
  350. TOrderShipmentTypelineItemsArray = Array of TOrderShipmentLineItemShipment;
  351. TOrdersCustomBatchRequestTypeentriesArray = Array of TOrdersCustomBatchRequestEntry;
  352. TOrdersCustomBatchRequestEntryShipLineItemsTypelineItemsArray = Array of TOrderShipmentLineItemShipment;
  353. TOrdersCustomBatchResponseTypeentriesArray = Array of TOrdersCustomBatchResponseEntry;
  354. TOrdersListResponseTyperesourcesArray = Array of TOrder;
  355. TOrdersShipLineItemsRequestTypelineItemsArray = Array of TOrderShipmentLineItemShipment;
  356. TProductTypeaspectsArray = Array of TProductAspect;
  357. TProductTypecustomAttributesArray = Array of TProductCustomAttribute;
  358. TProductTypecustomGroupsArray = Array of TProductCustomGroup;
  359. TProductTypedestinationsArray = Array of TProductDestination;
  360. TProductTypeshippingArray = Array of TProductShipping;
  361. TProductTypetaxesArray = Array of TProductTax;
  362. TProductTypewarningsArray = Array of TError;
  363. TProductCustomGroupTypeattributesArray = Array of TProductCustomAttribute;
  364. TProductStatusTypedataQualityIssuesArray = Array of TProductStatusDataQualityIssue;
  365. TProductStatusTypedestinationStatusesArray = Array of TProductStatusDestinationStatus;
  366. TProductsCustomBatchRequestTypeentriesArray = Array of TProductsCustomBatchRequestEntry;
  367. TProductsCustomBatchResponseTypeentriesArray = Array of TProductsCustomBatchResponseEntry;
  368. TProductsListResponseTyperesourcesArray = Array of TProduct;
  369. TProductstatusesCustomBatchRequestTypeentriesArray = Array of TProductstatusesCustomBatchRequestEntry;
  370. TProductstatusesCustomBatchResponseTypeentriesArray = Array of TProductstatusesCustomBatchResponseEntry;
  371. TProductstatusesListResponseTyperesourcesArray = Array of TProductStatus;
  372. TTestOrderTypelineItemsArray = Array of TTestOrderLineItem;
  373. TTestOrderTypepromotionsArray = Array of TOrderPromotion;
  374. TTestOrderLineItemProductTypevariantAttributesArray = Array of TOrderLineItemProductVariantAttribute;
  375. { --------------------------------------------------------------------
  376. TAccount
  377. --------------------------------------------------------------------}
  378. TAccount = Class(TGoogleBaseObject)
  379. Private
  380. FadultContent : boolean;
  381. FadwordsLinks : TAccountTypeadwordsLinksArray;
  382. Fid : String;
  383. Fkind : String;
  384. Fname : String;
  385. FreviewsUrl : String;
  386. FsellerId : String;
  387. Fusers : TAccountTypeusersArray;
  388. FwebsiteUrl : String;
  389. Protected
  390. //Property setters
  391. Procedure SetadultContent(AIndex : Integer; const AValue : boolean); virtual;
  392. Procedure SetadwordsLinks(AIndex : Integer; const AValue : TAccountTypeadwordsLinksArray); virtual;
  393. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  394. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  395. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  396. Procedure SetreviewsUrl(AIndex : Integer; const AValue : String); virtual;
  397. Procedure SetsellerId(AIndex : Integer; const AValue : String); virtual;
  398. Procedure Setusers(AIndex : Integer; const AValue : TAccountTypeusersArray); virtual;
  399. Procedure SetwebsiteUrl(AIndex : Integer; const AValue : String); virtual;
  400. //2.6.4. bug workaround
  401. {$IFDEF VER2_6}
  402. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  403. {$ENDIF VER2_6}
  404. Public
  405. Published
  406. Property adultContent : boolean Index 0 Read FadultContent Write SetadultContent;
  407. Property adwordsLinks : TAccountTypeadwordsLinksArray Index 8 Read FadwordsLinks Write SetadwordsLinks;
  408. Property id : String Index 16 Read Fid Write Setid;
  409. Property kind : String Index 24 Read Fkind Write Setkind;
  410. Property name : String Index 32 Read Fname Write Setname;
  411. Property reviewsUrl : String Index 40 Read FreviewsUrl Write SetreviewsUrl;
  412. Property sellerId : String Index 48 Read FsellerId Write SetsellerId;
  413. Property users : TAccountTypeusersArray Index 56 Read Fusers Write Setusers;
  414. Property websiteUrl : String Index 64 Read FwebsiteUrl Write SetwebsiteUrl;
  415. end;
  416. TAccountClass = Class of TAccount;
  417. { --------------------------------------------------------------------
  418. TAccountAdwordsLink
  419. --------------------------------------------------------------------}
  420. TAccountAdwordsLink = Class(TGoogleBaseObject)
  421. Private
  422. FadwordsId : String;
  423. Fstatus : String;
  424. Protected
  425. //Property setters
  426. Procedure SetadwordsId(AIndex : Integer; const AValue : String); virtual;
  427. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  428. Public
  429. Published
  430. Property adwordsId : String Index 0 Read FadwordsId Write SetadwordsId;
  431. Property status : String Index 8 Read Fstatus Write Setstatus;
  432. end;
  433. TAccountAdwordsLinkClass = Class of TAccountAdwordsLink;
  434. { --------------------------------------------------------------------
  435. TAccountIdentifier
  436. --------------------------------------------------------------------}
  437. TAccountIdentifier = Class(TGoogleBaseObject)
  438. Private
  439. FaggregatorId : String;
  440. FmerchantId : String;
  441. Protected
  442. //Property setters
  443. Procedure SetaggregatorId(AIndex : Integer; const AValue : String); virtual;
  444. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  445. Public
  446. Published
  447. Property aggregatorId : String Index 0 Read FaggregatorId Write SetaggregatorId;
  448. Property merchantId : String Index 8 Read FmerchantId Write SetmerchantId;
  449. end;
  450. TAccountIdentifierClass = Class of TAccountIdentifier;
  451. { --------------------------------------------------------------------
  452. TAccountShipping
  453. --------------------------------------------------------------------}
  454. TAccountShipping = Class(TGoogleBaseObject)
  455. Private
  456. FaccountId : String;
  457. FcarrierRates : TAccountShippingTypecarrierRatesArray;
  458. Fkind : String;
  459. FlocationGroups : TAccountShippingTypelocationGroupsArray;
  460. FrateTables : TAccountShippingTyperateTablesArray;
  461. Fservices : TAccountShippingTypeservicesArray;
  462. Protected
  463. //Property setters
  464. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  465. Procedure SetcarrierRates(AIndex : Integer; const AValue : TAccountShippingTypecarrierRatesArray); virtual;
  466. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  467. Procedure SetlocationGroups(AIndex : Integer; const AValue : TAccountShippingTypelocationGroupsArray); virtual;
  468. Procedure SetrateTables(AIndex : Integer; const AValue : TAccountShippingTyperateTablesArray); virtual;
  469. Procedure Setservices(AIndex : Integer; const AValue : TAccountShippingTypeservicesArray); virtual;
  470. //2.6.4. bug workaround
  471. {$IFDEF VER2_6}
  472. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  473. {$ENDIF VER2_6}
  474. Public
  475. Published
  476. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  477. Property carrierRates : TAccountShippingTypecarrierRatesArray Index 8 Read FcarrierRates Write SetcarrierRates;
  478. Property kind : String Index 16 Read Fkind Write Setkind;
  479. Property locationGroups : TAccountShippingTypelocationGroupsArray Index 24 Read FlocationGroups Write SetlocationGroups;
  480. Property rateTables : TAccountShippingTyperateTablesArray Index 32 Read FrateTables Write SetrateTables;
  481. Property services : TAccountShippingTypeservicesArray Index 40 Read Fservices Write Setservices;
  482. end;
  483. TAccountShippingClass = Class of TAccountShipping;
  484. { --------------------------------------------------------------------
  485. TAccountShippingCarrierRate
  486. --------------------------------------------------------------------}
  487. TAccountShippingCarrierRate = Class(TGoogleBaseObject)
  488. Private
  489. Fcarrier : String;
  490. FcarrierService : String;
  491. FmodifierFlatRate : TPrice;
  492. FmodifierPercent : String;
  493. Fname : String;
  494. FsaleCountry : String;
  495. FshippingOrigin : String;
  496. Protected
  497. //Property setters
  498. Procedure Setcarrier(AIndex : Integer; const AValue : String); virtual;
  499. Procedure SetcarrierService(AIndex : Integer; const AValue : String); virtual;
  500. Procedure SetmodifierFlatRate(AIndex : Integer; const AValue : TPrice); virtual;
  501. Procedure SetmodifierPercent(AIndex : Integer; const AValue : String); virtual;
  502. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  503. Procedure SetsaleCountry(AIndex : Integer; const AValue : String); virtual;
  504. Procedure SetshippingOrigin(AIndex : Integer; const AValue : String); virtual;
  505. Public
  506. Published
  507. Property carrier : String Index 0 Read Fcarrier Write Setcarrier;
  508. Property carrierService : String Index 8 Read FcarrierService Write SetcarrierService;
  509. Property modifierFlatRate : TPrice Index 16 Read FmodifierFlatRate Write SetmodifierFlatRate;
  510. Property modifierPercent : String Index 24 Read FmodifierPercent Write SetmodifierPercent;
  511. Property name : String Index 32 Read Fname Write Setname;
  512. Property saleCountry : String Index 40 Read FsaleCountry Write SetsaleCountry;
  513. Property shippingOrigin : String Index 48 Read FshippingOrigin Write SetshippingOrigin;
  514. end;
  515. TAccountShippingCarrierRateClass = Class of TAccountShippingCarrierRate;
  516. { --------------------------------------------------------------------
  517. TAccountShippingCondition
  518. --------------------------------------------------------------------}
  519. TAccountShippingCondition = Class(TGoogleBaseObject)
  520. Private
  521. FdeliveryLocationGroup : String;
  522. FdeliveryLocationId : String;
  523. FdeliveryPostalCode : String;
  524. FdeliveryPostalCodeRange : TAccountShippingPostalCodeRange;
  525. FpriceMax : TPrice;
  526. FshippingLabel : String;
  527. FweightMax : TWeight;
  528. Protected
  529. //Property setters
  530. Procedure SetdeliveryLocationGroup(AIndex : Integer; const AValue : String); virtual;
  531. Procedure SetdeliveryLocationId(AIndex : Integer; const AValue : String); virtual;
  532. Procedure SetdeliveryPostalCode(AIndex : Integer; const AValue : String); virtual;
  533. Procedure SetdeliveryPostalCodeRange(AIndex : Integer; const AValue : TAccountShippingPostalCodeRange); virtual;
  534. Procedure SetpriceMax(AIndex : Integer; const AValue : TPrice); virtual;
  535. Procedure SetshippingLabel(AIndex : Integer; const AValue : String); virtual;
  536. Procedure SetweightMax(AIndex : Integer; const AValue : TWeight); virtual;
  537. Public
  538. Published
  539. Property deliveryLocationGroup : String Index 0 Read FdeliveryLocationGroup Write SetdeliveryLocationGroup;
  540. Property deliveryLocationId : String Index 8 Read FdeliveryLocationId Write SetdeliveryLocationId;
  541. Property deliveryPostalCode : String Index 16 Read FdeliveryPostalCode Write SetdeliveryPostalCode;
  542. Property deliveryPostalCodeRange : TAccountShippingPostalCodeRange Index 24 Read FdeliveryPostalCodeRange Write SetdeliveryPostalCodeRange;
  543. Property priceMax : TPrice Index 32 Read FpriceMax Write SetpriceMax;
  544. Property shippingLabel : String Index 40 Read FshippingLabel Write SetshippingLabel;
  545. Property weightMax : TWeight Index 48 Read FweightMax Write SetweightMax;
  546. end;
  547. TAccountShippingConditionClass = Class of TAccountShippingCondition;
  548. { --------------------------------------------------------------------
  549. TAccountShippingLocationGroup
  550. --------------------------------------------------------------------}
  551. TAccountShippingLocationGroup = Class(TGoogleBaseObject)
  552. Private
  553. Fcountry : String;
  554. FlocationIds : TStringArray;
  555. Fname : String;
  556. FpostalCodeRanges : TAccountShippingLocationGroupTypepostalCodeRangesArray;
  557. FpostalCodes : TStringArray;
  558. Protected
  559. //Property setters
  560. Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
  561. Procedure SetlocationIds(AIndex : Integer; const AValue : TStringArray); virtual;
  562. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  563. Procedure SetpostalCodeRanges(AIndex : Integer; const AValue : TAccountShippingLocationGroupTypepostalCodeRangesArray); virtual;
  564. Procedure SetpostalCodes(AIndex : Integer; const AValue : TStringArray); virtual;
  565. //2.6.4. bug workaround
  566. {$IFDEF VER2_6}
  567. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  568. {$ENDIF VER2_6}
  569. Public
  570. Published
  571. Property country : String Index 0 Read Fcountry Write Setcountry;
  572. Property locationIds : TStringArray Index 8 Read FlocationIds Write SetlocationIds;
  573. Property name : String Index 16 Read Fname Write Setname;
  574. Property postalCodeRanges : TAccountShippingLocationGroupTypepostalCodeRangesArray Index 24 Read FpostalCodeRanges Write SetpostalCodeRanges;
  575. Property postalCodes : TStringArray Index 32 Read FpostalCodes Write SetpostalCodes;
  576. end;
  577. TAccountShippingLocationGroupClass = Class of TAccountShippingLocationGroup;
  578. { --------------------------------------------------------------------
  579. TAccountShippingPostalCodeRange
  580. --------------------------------------------------------------------}
  581. TAccountShippingPostalCodeRange = Class(TGoogleBaseObject)
  582. Private
  583. F_end : String;
  584. Fstart : String;
  585. Protected
  586. Class Function ExportPropertyName(Const AName : String) : string; override;
  587. //Property setters
  588. Procedure Set_end(AIndex : Integer; const AValue : String); virtual;
  589. Procedure Setstart(AIndex : Integer; const AValue : String); virtual;
  590. Public
  591. Published
  592. Property _end : String Index 0 Read F_end Write Set_end;
  593. Property start : String Index 8 Read Fstart Write Setstart;
  594. end;
  595. TAccountShippingPostalCodeRangeClass = Class of TAccountShippingPostalCodeRange;
  596. { --------------------------------------------------------------------
  597. TAccountShippingRateTable
  598. --------------------------------------------------------------------}
  599. TAccountShippingRateTable = Class(TGoogleBaseObject)
  600. Private
  601. Fcontent : TAccountShippingRateTableTypecontentArray;
  602. Fname : String;
  603. FsaleCountry : String;
  604. Protected
  605. //Property setters
  606. Procedure Setcontent(AIndex : Integer; const AValue : TAccountShippingRateTableTypecontentArray); virtual;
  607. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  608. Procedure SetsaleCountry(AIndex : Integer; const AValue : String); virtual;
  609. //2.6.4. bug workaround
  610. {$IFDEF VER2_6}
  611. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  612. {$ENDIF VER2_6}
  613. Public
  614. Published
  615. Property content : TAccountShippingRateTableTypecontentArray Index 0 Read Fcontent Write Setcontent;
  616. Property name : String Index 8 Read Fname Write Setname;
  617. Property saleCountry : String Index 16 Read FsaleCountry Write SetsaleCountry;
  618. end;
  619. TAccountShippingRateTableClass = Class of TAccountShippingRateTable;
  620. { --------------------------------------------------------------------
  621. TAccountShippingRateTableCell
  622. --------------------------------------------------------------------}
  623. TAccountShippingRateTableCell = Class(TGoogleBaseObject)
  624. Private
  625. Fcondition : TAccountShippingCondition;
  626. Frate : TPrice;
  627. Protected
  628. //Property setters
  629. Procedure Setcondition(AIndex : Integer; const AValue : TAccountShippingCondition); virtual;
  630. Procedure Setrate(AIndex : Integer; const AValue : TPrice); virtual;
  631. Public
  632. Published
  633. Property condition : TAccountShippingCondition Index 0 Read Fcondition Write Setcondition;
  634. Property rate : TPrice Index 8 Read Frate Write Setrate;
  635. end;
  636. TAccountShippingRateTableCellClass = Class of TAccountShippingRateTableCell;
  637. { --------------------------------------------------------------------
  638. TAccountShippingShippingService
  639. --------------------------------------------------------------------}
  640. TAccountShippingShippingService = Class(TGoogleBaseObject)
  641. Private
  642. Factive : boolean;
  643. FcalculationMethod : TAccountShippingShippingServiceCalculationMethod;
  644. FcostRuleTree : TAccountShippingShippingServiceCostRule;
  645. Fname : String;
  646. FsaleCountry : String;
  647. Protected
  648. //Property setters
  649. Procedure Setactive(AIndex : Integer; const AValue : boolean); virtual;
  650. Procedure SetcalculationMethod(AIndex : Integer; const AValue : TAccountShippingShippingServiceCalculationMethod); virtual;
  651. Procedure SetcostRuleTree(AIndex : Integer; const AValue : TAccountShippingShippingServiceCostRule); virtual;
  652. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  653. Procedure SetsaleCountry(AIndex : Integer; const AValue : String); virtual;
  654. Public
  655. Published
  656. Property active : boolean Index 0 Read Factive Write Setactive;
  657. Property calculationMethod : TAccountShippingShippingServiceCalculationMethod Index 8 Read FcalculationMethod Write SetcalculationMethod;
  658. Property costRuleTree : TAccountShippingShippingServiceCostRule Index 16 Read FcostRuleTree Write SetcostRuleTree;
  659. Property name : String Index 24 Read Fname Write Setname;
  660. Property saleCountry : String Index 32 Read FsaleCountry Write SetsaleCountry;
  661. end;
  662. TAccountShippingShippingServiceClass = Class of TAccountShippingShippingService;
  663. { --------------------------------------------------------------------
  664. TAccountShippingShippingServiceCalculationMethod
  665. --------------------------------------------------------------------}
  666. TAccountShippingShippingServiceCalculationMethod = Class(TGoogleBaseObject)
  667. Private
  668. FcarrierRate : String;
  669. Fexcluded : boolean;
  670. FflatRate : TPrice;
  671. FpercentageRate : String;
  672. FrateTable : String;
  673. Protected
  674. //Property setters
  675. Procedure SetcarrierRate(AIndex : Integer; const AValue : String); virtual;
  676. Procedure Setexcluded(AIndex : Integer; const AValue : boolean); virtual;
  677. Procedure SetflatRate(AIndex : Integer; const AValue : TPrice); virtual;
  678. Procedure SetpercentageRate(AIndex : Integer; const AValue : String); virtual;
  679. Procedure SetrateTable(AIndex : Integer; const AValue : String); virtual;
  680. Public
  681. Published
  682. Property carrierRate : String Index 0 Read FcarrierRate Write SetcarrierRate;
  683. Property excluded : boolean Index 8 Read Fexcluded Write Setexcluded;
  684. Property flatRate : TPrice Index 16 Read FflatRate Write SetflatRate;
  685. Property percentageRate : String Index 24 Read FpercentageRate Write SetpercentageRate;
  686. Property rateTable : String Index 32 Read FrateTable Write SetrateTable;
  687. end;
  688. TAccountShippingShippingServiceCalculationMethodClass = Class of TAccountShippingShippingServiceCalculationMethod;
  689. { --------------------------------------------------------------------
  690. TAccountShippingShippingServiceCostRule
  691. --------------------------------------------------------------------}
  692. TAccountShippingShippingServiceCostRule = Class(TGoogleBaseObject)
  693. Private
  694. FcalculationMethod : TAccountShippingShippingServiceCalculationMethod;
  695. Fchildren : TAccountShippingShippingServiceCostRuleTypechildrenArray;
  696. Fcondition : TAccountShippingCondition;
  697. Protected
  698. //Property setters
  699. Procedure SetcalculationMethod(AIndex : Integer; const AValue : TAccountShippingShippingServiceCalculationMethod); virtual;
  700. Procedure Setchildren(AIndex : Integer; const AValue : TAccountShippingShippingServiceCostRuleTypechildrenArray); virtual;
  701. Procedure Setcondition(AIndex : Integer; const AValue : TAccountShippingCondition); virtual;
  702. //2.6.4. bug workaround
  703. {$IFDEF VER2_6}
  704. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  705. {$ENDIF VER2_6}
  706. Public
  707. Published
  708. Property calculationMethod : TAccountShippingShippingServiceCalculationMethod Index 0 Read FcalculationMethod Write SetcalculationMethod;
  709. Property children : TAccountShippingShippingServiceCostRuleTypechildrenArray Index 8 Read Fchildren Write Setchildren;
  710. Property condition : TAccountShippingCondition Index 16 Read Fcondition Write Setcondition;
  711. end;
  712. TAccountShippingShippingServiceCostRuleClass = Class of TAccountShippingShippingServiceCostRule;
  713. { --------------------------------------------------------------------
  714. TAccountStatus
  715. --------------------------------------------------------------------}
  716. TAccountStatus = Class(TGoogleBaseObject)
  717. Private
  718. FaccountId : String;
  719. FdataQualityIssues : TAccountStatusTypedataQualityIssuesArray;
  720. Fkind : String;
  721. Protected
  722. //Property setters
  723. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  724. Procedure SetdataQualityIssues(AIndex : Integer; const AValue : TAccountStatusTypedataQualityIssuesArray); virtual;
  725. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  726. //2.6.4. bug workaround
  727. {$IFDEF VER2_6}
  728. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  729. {$ENDIF VER2_6}
  730. Public
  731. Published
  732. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  733. Property dataQualityIssues : TAccountStatusTypedataQualityIssuesArray Index 8 Read FdataQualityIssues Write SetdataQualityIssues;
  734. Property kind : String Index 16 Read Fkind Write Setkind;
  735. end;
  736. TAccountStatusClass = Class of TAccountStatus;
  737. { --------------------------------------------------------------------
  738. TAccountStatusDataQualityIssue
  739. --------------------------------------------------------------------}
  740. TAccountStatusDataQualityIssue = Class(TGoogleBaseObject)
  741. Private
  742. Fcountry : String;
  743. FdisplayedValue : String;
  744. FexampleItems : TAccountStatusDataQualityIssueTypeexampleItemsArray;
  745. Fid : String;
  746. FlastChecked : String;
  747. FnumItems : integer;
  748. Fseverity : String;
  749. FsubmittedValue : String;
  750. Protected
  751. //Property setters
  752. Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
  753. Procedure SetdisplayedValue(AIndex : Integer; const AValue : String); virtual;
  754. Procedure SetexampleItems(AIndex : Integer; const AValue : TAccountStatusDataQualityIssueTypeexampleItemsArray); virtual;
  755. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  756. Procedure SetlastChecked(AIndex : Integer; const AValue : String); virtual;
  757. Procedure SetnumItems(AIndex : Integer; const AValue : integer); virtual;
  758. Procedure Setseverity(AIndex : Integer; const AValue : String); virtual;
  759. Procedure SetsubmittedValue(AIndex : Integer; const AValue : String); virtual;
  760. //2.6.4. bug workaround
  761. {$IFDEF VER2_6}
  762. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  763. {$ENDIF VER2_6}
  764. Public
  765. Published
  766. Property country : String Index 0 Read Fcountry Write Setcountry;
  767. Property displayedValue : String Index 8 Read FdisplayedValue Write SetdisplayedValue;
  768. Property exampleItems : TAccountStatusDataQualityIssueTypeexampleItemsArray Index 16 Read FexampleItems Write SetexampleItems;
  769. Property id : String Index 24 Read Fid Write Setid;
  770. Property lastChecked : String Index 32 Read FlastChecked Write SetlastChecked;
  771. Property numItems : integer Index 40 Read FnumItems Write SetnumItems;
  772. Property severity : String Index 48 Read Fseverity Write Setseverity;
  773. Property submittedValue : String Index 56 Read FsubmittedValue Write SetsubmittedValue;
  774. end;
  775. TAccountStatusDataQualityIssueClass = Class of TAccountStatusDataQualityIssue;
  776. { --------------------------------------------------------------------
  777. TAccountStatusExampleItem
  778. --------------------------------------------------------------------}
  779. TAccountStatusExampleItem = Class(TGoogleBaseObject)
  780. Private
  781. FitemId : String;
  782. Flink : String;
  783. FsubmittedValue : String;
  784. Ftitle : String;
  785. FvalueOnLandingPage : String;
  786. Protected
  787. //Property setters
  788. Procedure SetitemId(AIndex : Integer; const AValue : String); virtual;
  789. Procedure Setlink(AIndex : Integer; const AValue : String); virtual;
  790. Procedure SetsubmittedValue(AIndex : Integer; const AValue : String); virtual;
  791. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  792. Procedure SetvalueOnLandingPage(AIndex : Integer; const AValue : String); virtual;
  793. Public
  794. Published
  795. Property itemId : String Index 0 Read FitemId Write SetitemId;
  796. Property link : String Index 8 Read Flink Write Setlink;
  797. Property submittedValue : String Index 16 Read FsubmittedValue Write SetsubmittedValue;
  798. Property title : String Index 24 Read Ftitle Write Settitle;
  799. Property valueOnLandingPage : String Index 32 Read FvalueOnLandingPage Write SetvalueOnLandingPage;
  800. end;
  801. TAccountStatusExampleItemClass = Class of TAccountStatusExampleItem;
  802. { --------------------------------------------------------------------
  803. TAccountTax
  804. --------------------------------------------------------------------}
  805. TAccountTax = Class(TGoogleBaseObject)
  806. Private
  807. FaccountId : String;
  808. Fkind : String;
  809. Frules : TAccountTaxTyperulesArray;
  810. Protected
  811. //Property setters
  812. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  813. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  814. Procedure Setrules(AIndex : Integer; const AValue : TAccountTaxTyperulesArray); virtual;
  815. //2.6.4. bug workaround
  816. {$IFDEF VER2_6}
  817. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  818. {$ENDIF VER2_6}
  819. Public
  820. Published
  821. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  822. Property kind : String Index 8 Read Fkind Write Setkind;
  823. Property rules : TAccountTaxTyperulesArray Index 16 Read Frules Write Setrules;
  824. end;
  825. TAccountTaxClass = Class of TAccountTax;
  826. { --------------------------------------------------------------------
  827. TAccountTaxTaxRule
  828. --------------------------------------------------------------------}
  829. TAccountTaxTaxRule = Class(TGoogleBaseObject)
  830. Private
  831. Fcountry : String;
  832. FlocationId : String;
  833. FratePercent : String;
  834. FshippingTaxed : boolean;
  835. FuseGlobalRate : boolean;
  836. Protected
  837. //Property setters
  838. Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
  839. Procedure SetlocationId(AIndex : Integer; const AValue : String); virtual;
  840. Procedure SetratePercent(AIndex : Integer; const AValue : String); virtual;
  841. Procedure SetshippingTaxed(AIndex : Integer; const AValue : boolean); virtual;
  842. Procedure SetuseGlobalRate(AIndex : Integer; const AValue : boolean); virtual;
  843. Public
  844. Published
  845. Property country : String Index 0 Read Fcountry Write Setcountry;
  846. Property locationId : String Index 8 Read FlocationId Write SetlocationId;
  847. Property ratePercent : String Index 16 Read FratePercent Write SetratePercent;
  848. Property shippingTaxed : boolean Index 24 Read FshippingTaxed Write SetshippingTaxed;
  849. Property useGlobalRate : boolean Index 32 Read FuseGlobalRate Write SetuseGlobalRate;
  850. end;
  851. TAccountTaxTaxRuleClass = Class of TAccountTaxTaxRule;
  852. { --------------------------------------------------------------------
  853. TAccountUser
  854. --------------------------------------------------------------------}
  855. TAccountUser = Class(TGoogleBaseObject)
  856. Private
  857. Fadmin : boolean;
  858. FemailAddress : String;
  859. Protected
  860. //Property setters
  861. Procedure Setadmin(AIndex : Integer; const AValue : boolean); virtual;
  862. Procedure SetemailAddress(AIndex : Integer; const AValue : String); virtual;
  863. Public
  864. Published
  865. Property admin : boolean Index 0 Read Fadmin Write Setadmin;
  866. Property emailAddress : String Index 8 Read FemailAddress Write SetemailAddress;
  867. end;
  868. TAccountUserClass = Class of TAccountUser;
  869. { --------------------------------------------------------------------
  870. TAccountsAuthInfoResponse
  871. --------------------------------------------------------------------}
  872. TAccountsAuthInfoResponse = Class(TGoogleBaseObject)
  873. Private
  874. FaccountIdentifiers : TAccountsAuthInfoResponseTypeaccountIdentifiersArray;
  875. Fkind : String;
  876. Protected
  877. //Property setters
  878. Procedure SetaccountIdentifiers(AIndex : Integer; const AValue : TAccountsAuthInfoResponseTypeaccountIdentifiersArray); virtual;
  879. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  880. //2.6.4. bug workaround
  881. {$IFDEF VER2_6}
  882. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  883. {$ENDIF VER2_6}
  884. Public
  885. Published
  886. Property accountIdentifiers : TAccountsAuthInfoResponseTypeaccountIdentifiersArray Index 0 Read FaccountIdentifiers Write SetaccountIdentifiers;
  887. Property kind : String Index 8 Read Fkind Write Setkind;
  888. end;
  889. TAccountsAuthInfoResponseClass = Class of TAccountsAuthInfoResponse;
  890. { --------------------------------------------------------------------
  891. TAccountsCustomBatchRequest
  892. --------------------------------------------------------------------}
  893. TAccountsCustomBatchRequest = Class(TGoogleBaseObject)
  894. Private
  895. Fentries : TAccountsCustomBatchRequestTypeentriesArray;
  896. Protected
  897. //Property setters
  898. Procedure Setentries(AIndex : Integer; const AValue : TAccountsCustomBatchRequestTypeentriesArray); virtual;
  899. //2.6.4. bug workaround
  900. {$IFDEF VER2_6}
  901. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  902. {$ENDIF VER2_6}
  903. Public
  904. Published
  905. Property entries : TAccountsCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  906. end;
  907. TAccountsCustomBatchRequestClass = Class of TAccountsCustomBatchRequest;
  908. { --------------------------------------------------------------------
  909. TAccountsCustomBatchRequestEntry
  910. --------------------------------------------------------------------}
  911. TAccountsCustomBatchRequestEntry = Class(TGoogleBaseObject)
  912. Private
  913. Faccount : TAccount;
  914. FaccountId : String;
  915. FbatchId : integer;
  916. FmerchantId : String;
  917. Fmethod : String;
  918. Protected
  919. //Property setters
  920. Procedure Setaccount(AIndex : Integer; const AValue : TAccount); virtual;
  921. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  922. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  923. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  924. Procedure Setmethod(AIndex : Integer; const AValue : String); virtual;
  925. Public
  926. Published
  927. Property account : TAccount Index 0 Read Faccount Write Setaccount;
  928. Property accountId : String Index 8 Read FaccountId Write SetaccountId;
  929. Property batchId : integer Index 16 Read FbatchId Write SetbatchId;
  930. Property merchantId : String Index 24 Read FmerchantId Write SetmerchantId;
  931. Property method : String Index 32 Read Fmethod Write Setmethod;
  932. end;
  933. TAccountsCustomBatchRequestEntryClass = Class of TAccountsCustomBatchRequestEntry;
  934. { --------------------------------------------------------------------
  935. TAccountsCustomBatchResponse
  936. --------------------------------------------------------------------}
  937. TAccountsCustomBatchResponse = Class(TGoogleBaseObject)
  938. Private
  939. Fentries : TAccountsCustomBatchResponseTypeentriesArray;
  940. Fkind : String;
  941. Protected
  942. //Property setters
  943. Procedure Setentries(AIndex : Integer; const AValue : TAccountsCustomBatchResponseTypeentriesArray); virtual;
  944. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  945. //2.6.4. bug workaround
  946. {$IFDEF VER2_6}
  947. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  948. {$ENDIF VER2_6}
  949. Public
  950. Published
  951. Property entries : TAccountsCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  952. Property kind : String Index 8 Read Fkind Write Setkind;
  953. end;
  954. TAccountsCustomBatchResponseClass = Class of TAccountsCustomBatchResponse;
  955. { --------------------------------------------------------------------
  956. TAccountsCustomBatchResponseEntry
  957. --------------------------------------------------------------------}
  958. TAccountsCustomBatchResponseEntry = Class(TGoogleBaseObject)
  959. Private
  960. Faccount : TAccount;
  961. FbatchId : integer;
  962. Ferrors : TErrors;
  963. Fkind : String;
  964. Protected
  965. //Property setters
  966. Procedure Setaccount(AIndex : Integer; const AValue : TAccount); virtual;
  967. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  968. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  969. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  970. Public
  971. Published
  972. Property account : TAccount Index 0 Read Faccount Write Setaccount;
  973. Property batchId : integer Index 8 Read FbatchId Write SetbatchId;
  974. Property errors : TErrors Index 16 Read Ferrors Write Seterrors;
  975. Property kind : String Index 24 Read Fkind Write Setkind;
  976. end;
  977. TAccountsCustomBatchResponseEntryClass = Class of TAccountsCustomBatchResponseEntry;
  978. { --------------------------------------------------------------------
  979. TAccountsListResponse
  980. --------------------------------------------------------------------}
  981. TAccountsListResponse = Class(TGoogleBaseObject)
  982. Private
  983. Fkind : String;
  984. FnextPageToken : String;
  985. Fresources : TAccountsListResponseTyperesourcesArray;
  986. Protected
  987. //Property setters
  988. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  989. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  990. Procedure Setresources(AIndex : Integer; const AValue : TAccountsListResponseTyperesourcesArray); virtual;
  991. //2.6.4. bug workaround
  992. {$IFDEF VER2_6}
  993. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  994. {$ENDIF VER2_6}
  995. Public
  996. Published
  997. Property kind : String Index 0 Read Fkind Write Setkind;
  998. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  999. Property resources : TAccountsListResponseTyperesourcesArray Index 16 Read Fresources Write Setresources;
  1000. end;
  1001. TAccountsListResponseClass = Class of TAccountsListResponse;
  1002. { --------------------------------------------------------------------
  1003. TAccountshippingCustomBatchRequest
  1004. --------------------------------------------------------------------}
  1005. TAccountshippingCustomBatchRequest = Class(TGoogleBaseObject)
  1006. Private
  1007. Fentries : TAccountshippingCustomBatchRequestTypeentriesArray;
  1008. Protected
  1009. //Property setters
  1010. Procedure Setentries(AIndex : Integer; const AValue : TAccountshippingCustomBatchRequestTypeentriesArray); virtual;
  1011. //2.6.4. bug workaround
  1012. {$IFDEF VER2_6}
  1013. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1014. {$ENDIF VER2_6}
  1015. Public
  1016. Published
  1017. Property entries : TAccountshippingCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  1018. end;
  1019. TAccountshippingCustomBatchRequestClass = Class of TAccountshippingCustomBatchRequest;
  1020. { --------------------------------------------------------------------
  1021. TAccountshippingCustomBatchRequestEntry
  1022. --------------------------------------------------------------------}
  1023. TAccountshippingCustomBatchRequestEntry = Class(TGoogleBaseObject)
  1024. Private
  1025. FaccountId : String;
  1026. FaccountShipping : TAccountShipping;
  1027. FbatchId : integer;
  1028. FmerchantId : String;
  1029. Fmethod : String;
  1030. Protected
  1031. //Property setters
  1032. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1033. Procedure SetaccountShipping(AIndex : Integer; const AValue : TAccountShipping); virtual;
  1034. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1035. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  1036. Procedure Setmethod(AIndex : Integer; const AValue : String); virtual;
  1037. Public
  1038. Published
  1039. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1040. Property accountShipping : TAccountShipping Index 8 Read FaccountShipping Write SetaccountShipping;
  1041. Property batchId : integer Index 16 Read FbatchId Write SetbatchId;
  1042. Property merchantId : String Index 24 Read FmerchantId Write SetmerchantId;
  1043. Property method : String Index 32 Read Fmethod Write Setmethod;
  1044. end;
  1045. TAccountshippingCustomBatchRequestEntryClass = Class of TAccountshippingCustomBatchRequestEntry;
  1046. { --------------------------------------------------------------------
  1047. TAccountshippingCustomBatchResponse
  1048. --------------------------------------------------------------------}
  1049. TAccountshippingCustomBatchResponse = Class(TGoogleBaseObject)
  1050. Private
  1051. Fentries : TAccountshippingCustomBatchResponseTypeentriesArray;
  1052. Fkind : String;
  1053. Protected
  1054. //Property setters
  1055. Procedure Setentries(AIndex : Integer; const AValue : TAccountshippingCustomBatchResponseTypeentriesArray); virtual;
  1056. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1057. //2.6.4. bug workaround
  1058. {$IFDEF VER2_6}
  1059. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1060. {$ENDIF VER2_6}
  1061. Public
  1062. Published
  1063. Property entries : TAccountshippingCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  1064. Property kind : String Index 8 Read Fkind Write Setkind;
  1065. end;
  1066. TAccountshippingCustomBatchResponseClass = Class of TAccountshippingCustomBatchResponse;
  1067. { --------------------------------------------------------------------
  1068. TAccountshippingCustomBatchResponseEntry
  1069. --------------------------------------------------------------------}
  1070. TAccountshippingCustomBatchResponseEntry = Class(TGoogleBaseObject)
  1071. Private
  1072. FaccountShipping : TAccountShipping;
  1073. FbatchId : integer;
  1074. Ferrors : TErrors;
  1075. Fkind : String;
  1076. Protected
  1077. //Property setters
  1078. Procedure SetaccountShipping(AIndex : Integer; const AValue : TAccountShipping); virtual;
  1079. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1080. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  1081. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1082. Public
  1083. Published
  1084. Property accountShipping : TAccountShipping Index 0 Read FaccountShipping Write SetaccountShipping;
  1085. Property batchId : integer Index 8 Read FbatchId Write SetbatchId;
  1086. Property errors : TErrors Index 16 Read Ferrors Write Seterrors;
  1087. Property kind : String Index 24 Read Fkind Write Setkind;
  1088. end;
  1089. TAccountshippingCustomBatchResponseEntryClass = Class of TAccountshippingCustomBatchResponseEntry;
  1090. { --------------------------------------------------------------------
  1091. TAccountshippingListResponse
  1092. --------------------------------------------------------------------}
  1093. TAccountshippingListResponse = Class(TGoogleBaseObject)
  1094. Private
  1095. Fkind : String;
  1096. FnextPageToken : String;
  1097. Fresources : TAccountshippingListResponseTyperesourcesArray;
  1098. Protected
  1099. //Property setters
  1100. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1101. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1102. Procedure Setresources(AIndex : Integer; const AValue : TAccountshippingListResponseTyperesourcesArray); virtual;
  1103. //2.6.4. bug workaround
  1104. {$IFDEF VER2_6}
  1105. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1106. {$ENDIF VER2_6}
  1107. Public
  1108. Published
  1109. Property kind : String Index 0 Read Fkind Write Setkind;
  1110. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  1111. Property resources : TAccountshippingListResponseTyperesourcesArray Index 16 Read Fresources Write Setresources;
  1112. end;
  1113. TAccountshippingListResponseClass = Class of TAccountshippingListResponse;
  1114. { --------------------------------------------------------------------
  1115. TAccountstatusesCustomBatchRequest
  1116. --------------------------------------------------------------------}
  1117. TAccountstatusesCustomBatchRequest = Class(TGoogleBaseObject)
  1118. Private
  1119. Fentries : TAccountstatusesCustomBatchRequestTypeentriesArray;
  1120. Protected
  1121. //Property setters
  1122. Procedure Setentries(AIndex : Integer; const AValue : TAccountstatusesCustomBatchRequestTypeentriesArray); virtual;
  1123. //2.6.4. bug workaround
  1124. {$IFDEF VER2_6}
  1125. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1126. {$ENDIF VER2_6}
  1127. Public
  1128. Published
  1129. Property entries : TAccountstatusesCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  1130. end;
  1131. TAccountstatusesCustomBatchRequestClass = Class of TAccountstatusesCustomBatchRequest;
  1132. { --------------------------------------------------------------------
  1133. TAccountstatusesCustomBatchRequestEntry
  1134. --------------------------------------------------------------------}
  1135. TAccountstatusesCustomBatchRequestEntry = Class(TGoogleBaseObject)
  1136. Private
  1137. FaccountId : String;
  1138. FbatchId : integer;
  1139. FmerchantId : String;
  1140. Fmethod : String;
  1141. Protected
  1142. //Property setters
  1143. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1144. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1145. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  1146. Procedure Setmethod(AIndex : Integer; const AValue : String); virtual;
  1147. Public
  1148. Published
  1149. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1150. Property batchId : integer Index 8 Read FbatchId Write SetbatchId;
  1151. Property merchantId : String Index 16 Read FmerchantId Write SetmerchantId;
  1152. Property method : String Index 24 Read Fmethod Write Setmethod;
  1153. end;
  1154. TAccountstatusesCustomBatchRequestEntryClass = Class of TAccountstatusesCustomBatchRequestEntry;
  1155. { --------------------------------------------------------------------
  1156. TAccountstatusesCustomBatchResponse
  1157. --------------------------------------------------------------------}
  1158. TAccountstatusesCustomBatchResponse = Class(TGoogleBaseObject)
  1159. Private
  1160. Fentries : TAccountstatusesCustomBatchResponseTypeentriesArray;
  1161. Fkind : String;
  1162. Protected
  1163. //Property setters
  1164. Procedure Setentries(AIndex : Integer; const AValue : TAccountstatusesCustomBatchResponseTypeentriesArray); virtual;
  1165. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1166. //2.6.4. bug workaround
  1167. {$IFDEF VER2_6}
  1168. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1169. {$ENDIF VER2_6}
  1170. Public
  1171. Published
  1172. Property entries : TAccountstatusesCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  1173. Property kind : String Index 8 Read Fkind Write Setkind;
  1174. end;
  1175. TAccountstatusesCustomBatchResponseClass = Class of TAccountstatusesCustomBatchResponse;
  1176. { --------------------------------------------------------------------
  1177. TAccountstatusesCustomBatchResponseEntry
  1178. --------------------------------------------------------------------}
  1179. TAccountstatusesCustomBatchResponseEntry = Class(TGoogleBaseObject)
  1180. Private
  1181. FaccountStatus : TAccountStatus;
  1182. FbatchId : integer;
  1183. Ferrors : TErrors;
  1184. Protected
  1185. //Property setters
  1186. Procedure SetaccountStatus(AIndex : Integer; const AValue : TAccountStatus); virtual;
  1187. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1188. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  1189. Public
  1190. Published
  1191. Property accountStatus : TAccountStatus Index 0 Read FaccountStatus Write SetaccountStatus;
  1192. Property batchId : integer Index 8 Read FbatchId Write SetbatchId;
  1193. Property errors : TErrors Index 16 Read Ferrors Write Seterrors;
  1194. end;
  1195. TAccountstatusesCustomBatchResponseEntryClass = Class of TAccountstatusesCustomBatchResponseEntry;
  1196. { --------------------------------------------------------------------
  1197. TAccountstatusesListResponse
  1198. --------------------------------------------------------------------}
  1199. TAccountstatusesListResponse = Class(TGoogleBaseObject)
  1200. Private
  1201. Fkind : String;
  1202. FnextPageToken : String;
  1203. Fresources : TAccountstatusesListResponseTyperesourcesArray;
  1204. Protected
  1205. //Property setters
  1206. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1207. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1208. Procedure Setresources(AIndex : Integer; const AValue : TAccountstatusesListResponseTyperesourcesArray); virtual;
  1209. //2.6.4. bug workaround
  1210. {$IFDEF VER2_6}
  1211. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1212. {$ENDIF VER2_6}
  1213. Public
  1214. Published
  1215. Property kind : String Index 0 Read Fkind Write Setkind;
  1216. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  1217. Property resources : TAccountstatusesListResponseTyperesourcesArray Index 16 Read Fresources Write Setresources;
  1218. end;
  1219. TAccountstatusesListResponseClass = Class of TAccountstatusesListResponse;
  1220. { --------------------------------------------------------------------
  1221. TAccounttaxCustomBatchRequest
  1222. --------------------------------------------------------------------}
  1223. TAccounttaxCustomBatchRequest = Class(TGoogleBaseObject)
  1224. Private
  1225. Fentries : TAccounttaxCustomBatchRequestTypeentriesArray;
  1226. Protected
  1227. //Property setters
  1228. Procedure Setentries(AIndex : Integer; const AValue : TAccounttaxCustomBatchRequestTypeentriesArray); virtual;
  1229. //2.6.4. bug workaround
  1230. {$IFDEF VER2_6}
  1231. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1232. {$ENDIF VER2_6}
  1233. Public
  1234. Published
  1235. Property entries : TAccounttaxCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  1236. end;
  1237. TAccounttaxCustomBatchRequestClass = Class of TAccounttaxCustomBatchRequest;
  1238. { --------------------------------------------------------------------
  1239. TAccounttaxCustomBatchRequestEntry
  1240. --------------------------------------------------------------------}
  1241. TAccounttaxCustomBatchRequestEntry = Class(TGoogleBaseObject)
  1242. Private
  1243. FaccountId : String;
  1244. FaccountTax : TAccountTax;
  1245. FbatchId : integer;
  1246. FmerchantId : String;
  1247. Fmethod : String;
  1248. Protected
  1249. //Property setters
  1250. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1251. Procedure SetaccountTax(AIndex : Integer; const AValue : TAccountTax); virtual;
  1252. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1253. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  1254. Procedure Setmethod(AIndex : Integer; const AValue : String); virtual;
  1255. Public
  1256. Published
  1257. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1258. Property accountTax : TAccountTax Index 8 Read FaccountTax Write SetaccountTax;
  1259. Property batchId : integer Index 16 Read FbatchId Write SetbatchId;
  1260. Property merchantId : String Index 24 Read FmerchantId Write SetmerchantId;
  1261. Property method : String Index 32 Read Fmethod Write Setmethod;
  1262. end;
  1263. TAccounttaxCustomBatchRequestEntryClass = Class of TAccounttaxCustomBatchRequestEntry;
  1264. { --------------------------------------------------------------------
  1265. TAccounttaxCustomBatchResponse
  1266. --------------------------------------------------------------------}
  1267. TAccounttaxCustomBatchResponse = Class(TGoogleBaseObject)
  1268. Private
  1269. Fentries : TAccounttaxCustomBatchResponseTypeentriesArray;
  1270. Fkind : String;
  1271. Protected
  1272. //Property setters
  1273. Procedure Setentries(AIndex : Integer; const AValue : TAccounttaxCustomBatchResponseTypeentriesArray); virtual;
  1274. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1275. //2.6.4. bug workaround
  1276. {$IFDEF VER2_6}
  1277. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1278. {$ENDIF VER2_6}
  1279. Public
  1280. Published
  1281. Property entries : TAccounttaxCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  1282. Property kind : String Index 8 Read Fkind Write Setkind;
  1283. end;
  1284. TAccounttaxCustomBatchResponseClass = Class of TAccounttaxCustomBatchResponse;
  1285. { --------------------------------------------------------------------
  1286. TAccounttaxCustomBatchResponseEntry
  1287. --------------------------------------------------------------------}
  1288. TAccounttaxCustomBatchResponseEntry = Class(TGoogleBaseObject)
  1289. Private
  1290. FaccountTax : TAccountTax;
  1291. FbatchId : integer;
  1292. Ferrors : TErrors;
  1293. Fkind : String;
  1294. Protected
  1295. //Property setters
  1296. Procedure SetaccountTax(AIndex : Integer; const AValue : TAccountTax); virtual;
  1297. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1298. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  1299. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1300. Public
  1301. Published
  1302. Property accountTax : TAccountTax Index 0 Read FaccountTax Write SetaccountTax;
  1303. Property batchId : integer Index 8 Read FbatchId Write SetbatchId;
  1304. Property errors : TErrors Index 16 Read Ferrors Write Seterrors;
  1305. Property kind : String Index 24 Read Fkind Write Setkind;
  1306. end;
  1307. TAccounttaxCustomBatchResponseEntryClass = Class of TAccounttaxCustomBatchResponseEntry;
  1308. { --------------------------------------------------------------------
  1309. TAccounttaxListResponse
  1310. --------------------------------------------------------------------}
  1311. TAccounttaxListResponse = Class(TGoogleBaseObject)
  1312. Private
  1313. Fkind : String;
  1314. FnextPageToken : String;
  1315. Fresources : TAccounttaxListResponseTyperesourcesArray;
  1316. Protected
  1317. //Property setters
  1318. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1319. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1320. Procedure Setresources(AIndex : Integer; const AValue : TAccounttaxListResponseTyperesourcesArray); virtual;
  1321. //2.6.4. bug workaround
  1322. {$IFDEF VER2_6}
  1323. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1324. {$ENDIF VER2_6}
  1325. Public
  1326. Published
  1327. Property kind : String Index 0 Read Fkind Write Setkind;
  1328. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  1329. Property resources : TAccounttaxListResponseTyperesourcesArray Index 16 Read Fresources Write Setresources;
  1330. end;
  1331. TAccounttaxListResponseClass = Class of TAccounttaxListResponse;
  1332. { --------------------------------------------------------------------
  1333. TDatafeed
  1334. --------------------------------------------------------------------}
  1335. TDatafeed = Class(TGoogleBaseObject)
  1336. Private
  1337. FattributeLanguage : String;
  1338. FcontentLanguage : String;
  1339. FcontentType : String;
  1340. FfetchSchedule : TDatafeedFetchSchedule;
  1341. FfileName : String;
  1342. Fformat : TDatafeedFormat;
  1343. Fid : String;
  1344. FintendedDestinations : TStringArray;
  1345. Fkind : String;
  1346. Fname : String;
  1347. FtargetCountry : String;
  1348. Protected
  1349. //Property setters
  1350. Procedure SetattributeLanguage(AIndex : Integer; const AValue : String); virtual;
  1351. Procedure SetcontentLanguage(AIndex : Integer; const AValue : String); virtual;
  1352. Procedure SetcontentType(AIndex : Integer; const AValue : String); virtual;
  1353. Procedure SetfetchSchedule(AIndex : Integer; const AValue : TDatafeedFetchSchedule); virtual;
  1354. Procedure SetfileName(AIndex : Integer; const AValue : String); virtual;
  1355. Procedure Setformat(AIndex : Integer; const AValue : TDatafeedFormat); virtual;
  1356. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1357. Procedure SetintendedDestinations(AIndex : Integer; const AValue : TStringArray); virtual;
  1358. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1359. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1360. Procedure SettargetCountry(AIndex : Integer; const AValue : String); virtual;
  1361. //2.6.4. bug workaround
  1362. {$IFDEF VER2_6}
  1363. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1364. {$ENDIF VER2_6}
  1365. Public
  1366. Published
  1367. Property attributeLanguage : String Index 0 Read FattributeLanguage Write SetattributeLanguage;
  1368. Property contentLanguage : String Index 8 Read FcontentLanguage Write SetcontentLanguage;
  1369. Property contentType : String Index 16 Read FcontentType Write SetcontentType;
  1370. Property fetchSchedule : TDatafeedFetchSchedule Index 24 Read FfetchSchedule Write SetfetchSchedule;
  1371. Property fileName : String Index 32 Read FfileName Write SetfileName;
  1372. Property format : TDatafeedFormat Index 40 Read Fformat Write Setformat;
  1373. Property id : String Index 48 Read Fid Write Setid;
  1374. Property intendedDestinations : TStringArray Index 56 Read FintendedDestinations Write SetintendedDestinations;
  1375. Property kind : String Index 64 Read Fkind Write Setkind;
  1376. Property name : String Index 72 Read Fname Write Setname;
  1377. Property targetCountry : String Index 80 Read FtargetCountry Write SettargetCountry;
  1378. end;
  1379. TDatafeedClass = Class of TDatafeed;
  1380. { --------------------------------------------------------------------
  1381. TDatafeedFetchSchedule
  1382. --------------------------------------------------------------------}
  1383. TDatafeedFetchSchedule = Class(TGoogleBaseObject)
  1384. Private
  1385. FdayOfMonth : integer;
  1386. FfetchUrl : String;
  1387. Fhour : integer;
  1388. FminuteOfHour : integer;
  1389. Fpassword : String;
  1390. FtimeZone : String;
  1391. Fusername : String;
  1392. Fweekday : String;
  1393. Protected
  1394. //Property setters
  1395. Procedure SetdayOfMonth(AIndex : Integer; const AValue : integer); virtual;
  1396. Procedure SetfetchUrl(AIndex : Integer; const AValue : String); virtual;
  1397. Procedure Sethour(AIndex : Integer; const AValue : integer); virtual;
  1398. Procedure SetminuteOfHour(AIndex : Integer; const AValue : integer); virtual;
  1399. Procedure Setpassword(AIndex : Integer; const AValue : String); virtual;
  1400. Procedure SettimeZone(AIndex : Integer; const AValue : String); virtual;
  1401. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  1402. Procedure Setweekday(AIndex : Integer; const AValue : String); virtual;
  1403. Public
  1404. Published
  1405. Property dayOfMonth : integer Index 0 Read FdayOfMonth Write SetdayOfMonth;
  1406. Property fetchUrl : String Index 8 Read FfetchUrl Write SetfetchUrl;
  1407. Property hour : integer Index 16 Read Fhour Write Sethour;
  1408. Property minuteOfHour : integer Index 24 Read FminuteOfHour Write SetminuteOfHour;
  1409. Property password : String Index 32 Read Fpassword Write Setpassword;
  1410. Property timeZone : String Index 40 Read FtimeZone Write SettimeZone;
  1411. Property username : String Index 48 Read Fusername Write Setusername;
  1412. Property weekday : String Index 56 Read Fweekday Write Setweekday;
  1413. end;
  1414. TDatafeedFetchScheduleClass = Class of TDatafeedFetchSchedule;
  1415. { --------------------------------------------------------------------
  1416. TDatafeedFormat
  1417. --------------------------------------------------------------------}
  1418. TDatafeedFormat = Class(TGoogleBaseObject)
  1419. Private
  1420. FcolumnDelimiter : String;
  1421. FfileEncoding : String;
  1422. FquotingMode : String;
  1423. Protected
  1424. //Property setters
  1425. Procedure SetcolumnDelimiter(AIndex : Integer; const AValue : String); virtual;
  1426. Procedure SetfileEncoding(AIndex : Integer; const AValue : String); virtual;
  1427. Procedure SetquotingMode(AIndex : Integer; const AValue : String); virtual;
  1428. Public
  1429. Published
  1430. Property columnDelimiter : String Index 0 Read FcolumnDelimiter Write SetcolumnDelimiter;
  1431. Property fileEncoding : String Index 8 Read FfileEncoding Write SetfileEncoding;
  1432. Property quotingMode : String Index 16 Read FquotingMode Write SetquotingMode;
  1433. end;
  1434. TDatafeedFormatClass = Class of TDatafeedFormat;
  1435. { --------------------------------------------------------------------
  1436. TDatafeedStatus
  1437. --------------------------------------------------------------------}
  1438. TDatafeedStatus = Class(TGoogleBaseObject)
  1439. Private
  1440. FdatafeedId : String;
  1441. Ferrors : TDatafeedStatusTypeerrorsArray;
  1442. FitemsTotal : String;
  1443. FitemsValid : String;
  1444. Fkind : String;
  1445. FlastUploadDate : String;
  1446. FprocessingStatus : String;
  1447. Fwarnings : TDatafeedStatusTypewarningsArray;
  1448. Protected
  1449. //Property setters
  1450. Procedure SetdatafeedId(AIndex : Integer; const AValue : String); virtual;
  1451. Procedure Seterrors(AIndex : Integer; const AValue : TDatafeedStatusTypeerrorsArray); virtual;
  1452. Procedure SetitemsTotal(AIndex : Integer; const AValue : String); virtual;
  1453. Procedure SetitemsValid(AIndex : Integer; const AValue : String); virtual;
  1454. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1455. Procedure SetlastUploadDate(AIndex : Integer; const AValue : String); virtual;
  1456. Procedure SetprocessingStatus(AIndex : Integer; const AValue : String); virtual;
  1457. Procedure Setwarnings(AIndex : Integer; const AValue : TDatafeedStatusTypewarningsArray); virtual;
  1458. //2.6.4. bug workaround
  1459. {$IFDEF VER2_6}
  1460. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1461. {$ENDIF VER2_6}
  1462. Public
  1463. Published
  1464. Property datafeedId : String Index 0 Read FdatafeedId Write SetdatafeedId;
  1465. Property errors : TDatafeedStatusTypeerrorsArray Index 8 Read Ferrors Write Seterrors;
  1466. Property itemsTotal : String Index 16 Read FitemsTotal Write SetitemsTotal;
  1467. Property itemsValid : String Index 24 Read FitemsValid Write SetitemsValid;
  1468. Property kind : String Index 32 Read Fkind Write Setkind;
  1469. Property lastUploadDate : String Index 40 Read FlastUploadDate Write SetlastUploadDate;
  1470. Property processingStatus : String Index 48 Read FprocessingStatus Write SetprocessingStatus;
  1471. Property warnings : TDatafeedStatusTypewarningsArray Index 56 Read Fwarnings Write Setwarnings;
  1472. end;
  1473. TDatafeedStatusClass = Class of TDatafeedStatus;
  1474. { --------------------------------------------------------------------
  1475. TDatafeedStatusError
  1476. --------------------------------------------------------------------}
  1477. TDatafeedStatusError = Class(TGoogleBaseObject)
  1478. Private
  1479. Fcode : String;
  1480. Fcount : String;
  1481. Fexamples : TDatafeedStatusErrorTypeexamplesArray;
  1482. Fmessage : String;
  1483. Protected
  1484. //Property setters
  1485. Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
  1486. Procedure Setcount(AIndex : Integer; const AValue : String); virtual;
  1487. Procedure Setexamples(AIndex : Integer; const AValue : TDatafeedStatusErrorTypeexamplesArray); virtual;
  1488. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  1489. //2.6.4. bug workaround
  1490. {$IFDEF VER2_6}
  1491. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1492. {$ENDIF VER2_6}
  1493. Public
  1494. Published
  1495. Property code : String Index 0 Read Fcode Write Setcode;
  1496. Property count : String Index 8 Read Fcount Write Setcount;
  1497. Property examples : TDatafeedStatusErrorTypeexamplesArray Index 16 Read Fexamples Write Setexamples;
  1498. Property message : String Index 24 Read Fmessage Write Setmessage;
  1499. end;
  1500. TDatafeedStatusErrorClass = Class of TDatafeedStatusError;
  1501. { --------------------------------------------------------------------
  1502. TDatafeedStatusExample
  1503. --------------------------------------------------------------------}
  1504. TDatafeedStatusExample = Class(TGoogleBaseObject)
  1505. Private
  1506. FitemId : String;
  1507. FlineNumber : String;
  1508. Fvalue : String;
  1509. Protected
  1510. //Property setters
  1511. Procedure SetitemId(AIndex : Integer; const AValue : String); virtual;
  1512. Procedure SetlineNumber(AIndex : Integer; const AValue : String); virtual;
  1513. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  1514. Public
  1515. Published
  1516. Property itemId : String Index 0 Read FitemId Write SetitemId;
  1517. Property lineNumber : String Index 8 Read FlineNumber Write SetlineNumber;
  1518. Property value : String Index 16 Read Fvalue Write Setvalue;
  1519. end;
  1520. TDatafeedStatusExampleClass = Class of TDatafeedStatusExample;
  1521. { --------------------------------------------------------------------
  1522. TDatafeedsCustomBatchRequest
  1523. --------------------------------------------------------------------}
  1524. TDatafeedsCustomBatchRequest = Class(TGoogleBaseObject)
  1525. Private
  1526. Fentries : TDatafeedsCustomBatchRequestTypeentriesArray;
  1527. Protected
  1528. //Property setters
  1529. Procedure Setentries(AIndex : Integer; const AValue : TDatafeedsCustomBatchRequestTypeentriesArray); virtual;
  1530. //2.6.4. bug workaround
  1531. {$IFDEF VER2_6}
  1532. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1533. {$ENDIF VER2_6}
  1534. Public
  1535. Published
  1536. Property entries : TDatafeedsCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  1537. end;
  1538. TDatafeedsCustomBatchRequestClass = Class of TDatafeedsCustomBatchRequest;
  1539. { --------------------------------------------------------------------
  1540. TDatafeedsCustomBatchRequestEntry
  1541. --------------------------------------------------------------------}
  1542. TDatafeedsCustomBatchRequestEntry = Class(TGoogleBaseObject)
  1543. Private
  1544. FbatchId : integer;
  1545. Fdatafeed : TDatafeed;
  1546. FdatafeedId : String;
  1547. FmerchantId : String;
  1548. Fmethod : String;
  1549. Protected
  1550. //Property setters
  1551. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1552. Procedure Setdatafeed(AIndex : Integer; const AValue : TDatafeed); virtual;
  1553. Procedure SetdatafeedId(AIndex : Integer; const AValue : String); virtual;
  1554. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  1555. Procedure Setmethod(AIndex : Integer; const AValue : String); virtual;
  1556. Public
  1557. Published
  1558. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  1559. Property datafeed : TDatafeed Index 8 Read Fdatafeed Write Setdatafeed;
  1560. Property datafeedId : String Index 16 Read FdatafeedId Write SetdatafeedId;
  1561. Property merchantId : String Index 24 Read FmerchantId Write SetmerchantId;
  1562. Property method : String Index 32 Read Fmethod Write Setmethod;
  1563. end;
  1564. TDatafeedsCustomBatchRequestEntryClass = Class of TDatafeedsCustomBatchRequestEntry;
  1565. { --------------------------------------------------------------------
  1566. TDatafeedsCustomBatchResponse
  1567. --------------------------------------------------------------------}
  1568. TDatafeedsCustomBatchResponse = Class(TGoogleBaseObject)
  1569. Private
  1570. Fentries : TDatafeedsCustomBatchResponseTypeentriesArray;
  1571. Fkind : String;
  1572. Protected
  1573. //Property setters
  1574. Procedure Setentries(AIndex : Integer; const AValue : TDatafeedsCustomBatchResponseTypeentriesArray); virtual;
  1575. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1576. //2.6.4. bug workaround
  1577. {$IFDEF VER2_6}
  1578. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1579. {$ENDIF VER2_6}
  1580. Public
  1581. Published
  1582. Property entries : TDatafeedsCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  1583. Property kind : String Index 8 Read Fkind Write Setkind;
  1584. end;
  1585. TDatafeedsCustomBatchResponseClass = Class of TDatafeedsCustomBatchResponse;
  1586. { --------------------------------------------------------------------
  1587. TDatafeedsCustomBatchResponseEntry
  1588. --------------------------------------------------------------------}
  1589. TDatafeedsCustomBatchResponseEntry = Class(TGoogleBaseObject)
  1590. Private
  1591. FbatchId : integer;
  1592. Fdatafeed : TDatafeed;
  1593. Ferrors : TErrors;
  1594. Protected
  1595. //Property setters
  1596. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1597. Procedure Setdatafeed(AIndex : Integer; const AValue : TDatafeed); virtual;
  1598. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  1599. Public
  1600. Published
  1601. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  1602. Property datafeed : TDatafeed Index 8 Read Fdatafeed Write Setdatafeed;
  1603. Property errors : TErrors Index 16 Read Ferrors Write Seterrors;
  1604. end;
  1605. TDatafeedsCustomBatchResponseEntryClass = Class of TDatafeedsCustomBatchResponseEntry;
  1606. { --------------------------------------------------------------------
  1607. TDatafeedsListResponse
  1608. --------------------------------------------------------------------}
  1609. TDatafeedsListResponse = Class(TGoogleBaseObject)
  1610. Private
  1611. Fkind : String;
  1612. FnextPageToken : String;
  1613. Fresources : TDatafeedsListResponseTyperesourcesArray;
  1614. Protected
  1615. //Property setters
  1616. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1617. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1618. Procedure Setresources(AIndex : Integer; const AValue : TDatafeedsListResponseTyperesourcesArray); virtual;
  1619. //2.6.4. bug workaround
  1620. {$IFDEF VER2_6}
  1621. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1622. {$ENDIF VER2_6}
  1623. Public
  1624. Published
  1625. Property kind : String Index 0 Read Fkind Write Setkind;
  1626. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  1627. Property resources : TDatafeedsListResponseTyperesourcesArray Index 16 Read Fresources Write Setresources;
  1628. end;
  1629. TDatafeedsListResponseClass = Class of TDatafeedsListResponse;
  1630. { --------------------------------------------------------------------
  1631. TDatafeedstatusesCustomBatchRequest
  1632. --------------------------------------------------------------------}
  1633. TDatafeedstatusesCustomBatchRequest = Class(TGoogleBaseObject)
  1634. Private
  1635. Fentries : TDatafeedstatusesCustomBatchRequestTypeentriesArray;
  1636. Protected
  1637. //Property setters
  1638. Procedure Setentries(AIndex : Integer; const AValue : TDatafeedstatusesCustomBatchRequestTypeentriesArray); virtual;
  1639. //2.6.4. bug workaround
  1640. {$IFDEF VER2_6}
  1641. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1642. {$ENDIF VER2_6}
  1643. Public
  1644. Published
  1645. Property entries : TDatafeedstatusesCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  1646. end;
  1647. TDatafeedstatusesCustomBatchRequestClass = Class of TDatafeedstatusesCustomBatchRequest;
  1648. { --------------------------------------------------------------------
  1649. TDatafeedstatusesCustomBatchRequestEntry
  1650. --------------------------------------------------------------------}
  1651. TDatafeedstatusesCustomBatchRequestEntry = Class(TGoogleBaseObject)
  1652. Private
  1653. FbatchId : integer;
  1654. FdatafeedId : String;
  1655. FmerchantId : String;
  1656. Fmethod : String;
  1657. Protected
  1658. //Property setters
  1659. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1660. Procedure SetdatafeedId(AIndex : Integer; const AValue : String); virtual;
  1661. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  1662. Procedure Setmethod(AIndex : Integer; const AValue : String); virtual;
  1663. Public
  1664. Published
  1665. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  1666. Property datafeedId : String Index 8 Read FdatafeedId Write SetdatafeedId;
  1667. Property merchantId : String Index 16 Read FmerchantId Write SetmerchantId;
  1668. Property method : String Index 24 Read Fmethod Write Setmethod;
  1669. end;
  1670. TDatafeedstatusesCustomBatchRequestEntryClass = Class of TDatafeedstatusesCustomBatchRequestEntry;
  1671. { --------------------------------------------------------------------
  1672. TDatafeedstatusesCustomBatchResponse
  1673. --------------------------------------------------------------------}
  1674. TDatafeedstatusesCustomBatchResponse = Class(TGoogleBaseObject)
  1675. Private
  1676. Fentries : TDatafeedstatusesCustomBatchResponseTypeentriesArray;
  1677. Fkind : String;
  1678. Protected
  1679. //Property setters
  1680. Procedure Setentries(AIndex : Integer; const AValue : TDatafeedstatusesCustomBatchResponseTypeentriesArray); virtual;
  1681. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1682. //2.6.4. bug workaround
  1683. {$IFDEF VER2_6}
  1684. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1685. {$ENDIF VER2_6}
  1686. Public
  1687. Published
  1688. Property entries : TDatafeedstatusesCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  1689. Property kind : String Index 8 Read Fkind Write Setkind;
  1690. end;
  1691. TDatafeedstatusesCustomBatchResponseClass = Class of TDatafeedstatusesCustomBatchResponse;
  1692. { --------------------------------------------------------------------
  1693. TDatafeedstatusesCustomBatchResponseEntry
  1694. --------------------------------------------------------------------}
  1695. TDatafeedstatusesCustomBatchResponseEntry = Class(TGoogleBaseObject)
  1696. Private
  1697. FbatchId : integer;
  1698. FdatafeedStatus : TDatafeedStatus;
  1699. Ferrors : TErrors;
  1700. Protected
  1701. //Property setters
  1702. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1703. Procedure SetdatafeedStatus(AIndex : Integer; const AValue : TDatafeedStatus); virtual;
  1704. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  1705. Public
  1706. Published
  1707. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  1708. Property datafeedStatus : TDatafeedStatus Index 8 Read FdatafeedStatus Write SetdatafeedStatus;
  1709. Property errors : TErrors Index 16 Read Ferrors Write Seterrors;
  1710. end;
  1711. TDatafeedstatusesCustomBatchResponseEntryClass = Class of TDatafeedstatusesCustomBatchResponseEntry;
  1712. { --------------------------------------------------------------------
  1713. TDatafeedstatusesListResponse
  1714. --------------------------------------------------------------------}
  1715. TDatafeedstatusesListResponse = Class(TGoogleBaseObject)
  1716. Private
  1717. Fkind : String;
  1718. FnextPageToken : String;
  1719. Fresources : TDatafeedstatusesListResponseTyperesourcesArray;
  1720. Protected
  1721. //Property setters
  1722. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1723. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1724. Procedure Setresources(AIndex : Integer; const AValue : TDatafeedstatusesListResponseTyperesourcesArray); virtual;
  1725. //2.6.4. bug workaround
  1726. {$IFDEF VER2_6}
  1727. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1728. {$ENDIF VER2_6}
  1729. Public
  1730. Published
  1731. Property kind : String Index 0 Read Fkind Write Setkind;
  1732. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  1733. Property resources : TDatafeedstatusesListResponseTyperesourcesArray Index 16 Read Fresources Write Setresources;
  1734. end;
  1735. TDatafeedstatusesListResponseClass = Class of TDatafeedstatusesListResponse;
  1736. { --------------------------------------------------------------------
  1737. TError
  1738. --------------------------------------------------------------------}
  1739. TError = Class(TGoogleBaseObject)
  1740. Private
  1741. Fdomain : String;
  1742. Fmessage : String;
  1743. Freason : String;
  1744. Protected
  1745. //Property setters
  1746. Procedure Setdomain(AIndex : Integer; const AValue : String); virtual;
  1747. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  1748. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  1749. Public
  1750. Published
  1751. Property domain : String Index 0 Read Fdomain Write Setdomain;
  1752. Property message : String Index 8 Read Fmessage Write Setmessage;
  1753. Property reason : String Index 16 Read Freason Write Setreason;
  1754. end;
  1755. TErrorClass = Class of TError;
  1756. { --------------------------------------------------------------------
  1757. TErrors
  1758. --------------------------------------------------------------------}
  1759. TErrors = Class(TGoogleBaseObject)
  1760. Private
  1761. Fcode : integer;
  1762. Ferrors : TErrorsTypeerrorsArray;
  1763. Fmessage : String;
  1764. Protected
  1765. //Property setters
  1766. Procedure Setcode(AIndex : Integer; const AValue : integer); virtual;
  1767. Procedure Seterrors(AIndex : Integer; const AValue : TErrorsTypeerrorsArray); virtual;
  1768. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  1769. //2.6.4. bug workaround
  1770. {$IFDEF VER2_6}
  1771. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1772. {$ENDIF VER2_6}
  1773. Public
  1774. Published
  1775. Property code : integer Index 0 Read Fcode Write Setcode;
  1776. Property errors : TErrorsTypeerrorsArray Index 8 Read Ferrors Write Seterrors;
  1777. Property message : String Index 16 Read Fmessage Write Setmessage;
  1778. end;
  1779. TErrorsClass = Class of TErrors;
  1780. { --------------------------------------------------------------------
  1781. TInstallment
  1782. --------------------------------------------------------------------}
  1783. TInstallment = Class(TGoogleBaseObject)
  1784. Private
  1785. Famount : TPrice;
  1786. Fmonths : String;
  1787. Protected
  1788. //Property setters
  1789. Procedure Setamount(AIndex : Integer; const AValue : TPrice); virtual;
  1790. Procedure Setmonths(AIndex : Integer; const AValue : String); virtual;
  1791. Public
  1792. Published
  1793. Property amount : TPrice Index 0 Read Famount Write Setamount;
  1794. Property months : String Index 8 Read Fmonths Write Setmonths;
  1795. end;
  1796. TInstallmentClass = Class of TInstallment;
  1797. { --------------------------------------------------------------------
  1798. TInventory
  1799. --------------------------------------------------------------------}
  1800. TInventory = Class(TGoogleBaseObject)
  1801. Private
  1802. Favailability : String;
  1803. Finstallment : TInstallment;
  1804. Fkind : String;
  1805. FloyaltyPoints : TLoyaltyPoints;
  1806. Fprice : TPrice;
  1807. Fquantity : integer;
  1808. FsalePrice : TPrice;
  1809. FsalePriceEffectiveDate : String;
  1810. FsellOnGoogleQuantity : integer;
  1811. Protected
  1812. //Property setters
  1813. Procedure Setavailability(AIndex : Integer; const AValue : String); virtual;
  1814. Procedure Setinstallment(AIndex : Integer; const AValue : TInstallment); virtual;
  1815. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1816. Procedure SetloyaltyPoints(AIndex : Integer; const AValue : TLoyaltyPoints); virtual;
  1817. Procedure Setprice(AIndex : Integer; const AValue : TPrice); virtual;
  1818. Procedure Setquantity(AIndex : Integer; const AValue : integer); virtual;
  1819. Procedure SetsalePrice(AIndex : Integer; const AValue : TPrice); virtual;
  1820. Procedure SetsalePriceEffectiveDate(AIndex : Integer; const AValue : String); virtual;
  1821. Procedure SetsellOnGoogleQuantity(AIndex : Integer; const AValue : integer); virtual;
  1822. Public
  1823. Published
  1824. Property availability : String Index 0 Read Favailability Write Setavailability;
  1825. Property installment : TInstallment Index 8 Read Finstallment Write Setinstallment;
  1826. Property kind : String Index 16 Read Fkind Write Setkind;
  1827. Property loyaltyPoints : TLoyaltyPoints Index 24 Read FloyaltyPoints Write SetloyaltyPoints;
  1828. Property price : TPrice Index 32 Read Fprice Write Setprice;
  1829. Property quantity : integer Index 40 Read Fquantity Write Setquantity;
  1830. Property salePrice : TPrice Index 48 Read FsalePrice Write SetsalePrice;
  1831. Property salePriceEffectiveDate : String Index 56 Read FsalePriceEffectiveDate Write SetsalePriceEffectiveDate;
  1832. Property sellOnGoogleQuantity : integer Index 64 Read FsellOnGoogleQuantity Write SetsellOnGoogleQuantity;
  1833. end;
  1834. TInventoryClass = Class of TInventory;
  1835. { --------------------------------------------------------------------
  1836. TInventoryCustomBatchRequest
  1837. --------------------------------------------------------------------}
  1838. TInventoryCustomBatchRequest = Class(TGoogleBaseObject)
  1839. Private
  1840. Fentries : TInventoryCustomBatchRequestTypeentriesArray;
  1841. Protected
  1842. //Property setters
  1843. Procedure Setentries(AIndex : Integer; const AValue : TInventoryCustomBatchRequestTypeentriesArray); virtual;
  1844. //2.6.4. bug workaround
  1845. {$IFDEF VER2_6}
  1846. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1847. {$ENDIF VER2_6}
  1848. Public
  1849. Published
  1850. Property entries : TInventoryCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  1851. end;
  1852. TInventoryCustomBatchRequestClass = Class of TInventoryCustomBatchRequest;
  1853. { --------------------------------------------------------------------
  1854. TInventoryCustomBatchRequestEntry
  1855. --------------------------------------------------------------------}
  1856. TInventoryCustomBatchRequestEntry = Class(TGoogleBaseObject)
  1857. Private
  1858. FbatchId : integer;
  1859. Finventory : TInventory;
  1860. FmerchantId : String;
  1861. FproductId : String;
  1862. FstoreCode : String;
  1863. Protected
  1864. //Property setters
  1865. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1866. Procedure Setinventory(AIndex : Integer; const AValue : TInventory); virtual;
  1867. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  1868. Procedure SetproductId(AIndex : Integer; const AValue : String); virtual;
  1869. Procedure SetstoreCode(AIndex : Integer; const AValue : String); virtual;
  1870. Public
  1871. Published
  1872. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  1873. Property inventory : TInventory Index 8 Read Finventory Write Setinventory;
  1874. Property merchantId : String Index 16 Read FmerchantId Write SetmerchantId;
  1875. Property productId : String Index 24 Read FproductId Write SetproductId;
  1876. Property storeCode : String Index 32 Read FstoreCode Write SetstoreCode;
  1877. end;
  1878. TInventoryCustomBatchRequestEntryClass = Class of TInventoryCustomBatchRequestEntry;
  1879. { --------------------------------------------------------------------
  1880. TInventoryCustomBatchResponse
  1881. --------------------------------------------------------------------}
  1882. TInventoryCustomBatchResponse = Class(TGoogleBaseObject)
  1883. Private
  1884. Fentries : TInventoryCustomBatchResponseTypeentriesArray;
  1885. Fkind : String;
  1886. Protected
  1887. //Property setters
  1888. Procedure Setentries(AIndex : Integer; const AValue : TInventoryCustomBatchResponseTypeentriesArray); virtual;
  1889. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1890. //2.6.4. bug workaround
  1891. {$IFDEF VER2_6}
  1892. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1893. {$ENDIF VER2_6}
  1894. Public
  1895. Published
  1896. Property entries : TInventoryCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  1897. Property kind : String Index 8 Read Fkind Write Setkind;
  1898. end;
  1899. TInventoryCustomBatchResponseClass = Class of TInventoryCustomBatchResponse;
  1900. { --------------------------------------------------------------------
  1901. TInventoryCustomBatchResponseEntry
  1902. --------------------------------------------------------------------}
  1903. TInventoryCustomBatchResponseEntry = Class(TGoogleBaseObject)
  1904. Private
  1905. FbatchId : integer;
  1906. Ferrors : TErrors;
  1907. Fkind : String;
  1908. Protected
  1909. //Property setters
  1910. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  1911. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  1912. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1913. Public
  1914. Published
  1915. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  1916. Property errors : TErrors Index 8 Read Ferrors Write Seterrors;
  1917. Property kind : String Index 16 Read Fkind Write Setkind;
  1918. end;
  1919. TInventoryCustomBatchResponseEntryClass = Class of TInventoryCustomBatchResponseEntry;
  1920. { --------------------------------------------------------------------
  1921. TInventorySetRequest
  1922. --------------------------------------------------------------------}
  1923. TInventorySetRequest = Class(TGoogleBaseObject)
  1924. Private
  1925. Favailability : String;
  1926. Finstallment : TInstallment;
  1927. FloyaltyPoints : TLoyaltyPoints;
  1928. Fprice : TPrice;
  1929. Fquantity : integer;
  1930. FsalePrice : TPrice;
  1931. FsalePriceEffectiveDate : String;
  1932. FsellOnGoogleQuantity : integer;
  1933. Protected
  1934. //Property setters
  1935. Procedure Setavailability(AIndex : Integer; const AValue : String); virtual;
  1936. Procedure Setinstallment(AIndex : Integer; const AValue : TInstallment); virtual;
  1937. Procedure SetloyaltyPoints(AIndex : Integer; const AValue : TLoyaltyPoints); virtual;
  1938. Procedure Setprice(AIndex : Integer; const AValue : TPrice); virtual;
  1939. Procedure Setquantity(AIndex : Integer; const AValue : integer); virtual;
  1940. Procedure SetsalePrice(AIndex : Integer; const AValue : TPrice); virtual;
  1941. Procedure SetsalePriceEffectiveDate(AIndex : Integer; const AValue : String); virtual;
  1942. Procedure SetsellOnGoogleQuantity(AIndex : Integer; const AValue : integer); virtual;
  1943. Public
  1944. Published
  1945. Property availability : String Index 0 Read Favailability Write Setavailability;
  1946. Property installment : TInstallment Index 8 Read Finstallment Write Setinstallment;
  1947. Property loyaltyPoints : TLoyaltyPoints Index 16 Read FloyaltyPoints Write SetloyaltyPoints;
  1948. Property price : TPrice Index 24 Read Fprice Write Setprice;
  1949. Property quantity : integer Index 32 Read Fquantity Write Setquantity;
  1950. Property salePrice : TPrice Index 40 Read FsalePrice Write SetsalePrice;
  1951. Property salePriceEffectiveDate : String Index 48 Read FsalePriceEffectiveDate Write SetsalePriceEffectiveDate;
  1952. Property sellOnGoogleQuantity : integer Index 56 Read FsellOnGoogleQuantity Write SetsellOnGoogleQuantity;
  1953. end;
  1954. TInventorySetRequestClass = Class of TInventorySetRequest;
  1955. { --------------------------------------------------------------------
  1956. TInventorySetResponse
  1957. --------------------------------------------------------------------}
  1958. TInventorySetResponse = Class(TGoogleBaseObject)
  1959. Private
  1960. Fkind : String;
  1961. Protected
  1962. //Property setters
  1963. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1964. Public
  1965. Published
  1966. Property kind : String Index 0 Read Fkind Write Setkind;
  1967. end;
  1968. TInventorySetResponseClass = Class of TInventorySetResponse;
  1969. { --------------------------------------------------------------------
  1970. TLoyaltyPoints
  1971. --------------------------------------------------------------------}
  1972. TLoyaltyPoints = Class(TGoogleBaseObject)
  1973. Private
  1974. Fname : String;
  1975. FpointsValue : String;
  1976. Fratio : double;
  1977. Protected
  1978. //Property setters
  1979. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1980. Procedure SetpointsValue(AIndex : Integer; const AValue : String); virtual;
  1981. Procedure Setratio(AIndex : Integer; const AValue : double); virtual;
  1982. Public
  1983. Published
  1984. Property name : String Index 0 Read Fname Write Setname;
  1985. Property pointsValue : String Index 8 Read FpointsValue Write SetpointsValue;
  1986. Property ratio : double Index 16 Read Fratio Write Setratio;
  1987. end;
  1988. TLoyaltyPointsClass = Class of TLoyaltyPoints;
  1989. { --------------------------------------------------------------------
  1990. TOrder
  1991. --------------------------------------------------------------------}
  1992. TOrder = Class(TGoogleBaseObject)
  1993. Private
  1994. Facknowledged : boolean;
  1995. Fcustomer : TOrderCustomer;
  1996. FdeliveryDetails : TOrderDeliveryDetails;
  1997. Fid : String;
  1998. Fkind : String;
  1999. FlineItems : TOrderTypelineItemsArray;
  2000. FmerchantId : String;
  2001. FmerchantOrderId : String;
  2002. FnetAmount : TPrice;
  2003. FpaymentMethod : TOrderPaymentMethod;
  2004. FpaymentStatus : String;
  2005. FplacedDate : String;
  2006. Fpromotions : TOrderTypepromotionsArray;
  2007. Frefunds : TOrderTyperefundsArray;
  2008. Fshipments : TOrderTypeshipmentsArray;
  2009. FshippingCost : TPrice;
  2010. FshippingCostTax : TPrice;
  2011. FshippingOption : String;
  2012. Fstatus : String;
  2013. Protected
  2014. //Property setters
  2015. Procedure Setacknowledged(AIndex : Integer; const AValue : boolean); virtual;
  2016. Procedure Setcustomer(AIndex : Integer; const AValue : TOrderCustomer); virtual;
  2017. Procedure SetdeliveryDetails(AIndex : Integer; const AValue : TOrderDeliveryDetails); virtual;
  2018. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2019. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2020. Procedure SetlineItems(AIndex : Integer; const AValue : TOrderTypelineItemsArray); virtual;
  2021. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  2022. Procedure SetmerchantOrderId(AIndex : Integer; const AValue : String); virtual;
  2023. Procedure SetnetAmount(AIndex : Integer; const AValue : TPrice); virtual;
  2024. Procedure SetpaymentMethod(AIndex : Integer; const AValue : TOrderPaymentMethod); virtual;
  2025. Procedure SetpaymentStatus(AIndex : Integer; const AValue : String); virtual;
  2026. Procedure SetplacedDate(AIndex : Integer; const AValue : String); virtual;
  2027. Procedure Setpromotions(AIndex : Integer; const AValue : TOrderTypepromotionsArray); virtual;
  2028. Procedure Setrefunds(AIndex : Integer; const AValue : TOrderTyperefundsArray); virtual;
  2029. Procedure Setshipments(AIndex : Integer; const AValue : TOrderTypeshipmentsArray); virtual;
  2030. Procedure SetshippingCost(AIndex : Integer; const AValue : TPrice); virtual;
  2031. Procedure SetshippingCostTax(AIndex : Integer; const AValue : TPrice); virtual;
  2032. Procedure SetshippingOption(AIndex : Integer; const AValue : String); virtual;
  2033. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2034. //2.6.4. bug workaround
  2035. {$IFDEF VER2_6}
  2036. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2037. {$ENDIF VER2_6}
  2038. Public
  2039. Published
  2040. Property acknowledged : boolean Index 0 Read Facknowledged Write Setacknowledged;
  2041. Property customer : TOrderCustomer Index 8 Read Fcustomer Write Setcustomer;
  2042. Property deliveryDetails : TOrderDeliveryDetails Index 16 Read FdeliveryDetails Write SetdeliveryDetails;
  2043. Property id : String Index 24 Read Fid Write Setid;
  2044. Property kind : String Index 32 Read Fkind Write Setkind;
  2045. Property lineItems : TOrderTypelineItemsArray Index 40 Read FlineItems Write SetlineItems;
  2046. Property merchantId : String Index 48 Read FmerchantId Write SetmerchantId;
  2047. Property merchantOrderId : String Index 56 Read FmerchantOrderId Write SetmerchantOrderId;
  2048. Property netAmount : TPrice Index 64 Read FnetAmount Write SetnetAmount;
  2049. Property paymentMethod : TOrderPaymentMethod Index 72 Read FpaymentMethod Write SetpaymentMethod;
  2050. Property paymentStatus : String Index 80 Read FpaymentStatus Write SetpaymentStatus;
  2051. Property placedDate : String Index 88 Read FplacedDate Write SetplacedDate;
  2052. Property promotions : TOrderTypepromotionsArray Index 96 Read Fpromotions Write Setpromotions;
  2053. Property refunds : TOrderTyperefundsArray Index 104 Read Frefunds Write Setrefunds;
  2054. Property shipments : TOrderTypeshipmentsArray Index 112 Read Fshipments Write Setshipments;
  2055. Property shippingCost : TPrice Index 120 Read FshippingCost Write SetshippingCost;
  2056. Property shippingCostTax : TPrice Index 128 Read FshippingCostTax Write SetshippingCostTax;
  2057. Property shippingOption : String Index 136 Read FshippingOption Write SetshippingOption;
  2058. Property status : String Index 144 Read Fstatus Write Setstatus;
  2059. end;
  2060. TOrderClass = Class of TOrder;
  2061. { --------------------------------------------------------------------
  2062. TOrderAddress
  2063. --------------------------------------------------------------------}
  2064. TOrderAddress = Class(TGoogleBaseObject)
  2065. Private
  2066. Fcountry : String;
  2067. FfullAddress : TStringArray;
  2068. FisPostOfficeBox : boolean;
  2069. Flocality : String;
  2070. FpostalCode : String;
  2071. FrecipientName : String;
  2072. Fregion : String;
  2073. FstreetAddress : TStringArray;
  2074. Protected
  2075. //Property setters
  2076. Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
  2077. Procedure SetfullAddress(AIndex : Integer; const AValue : TStringArray); virtual;
  2078. Procedure SetisPostOfficeBox(AIndex : Integer; const AValue : boolean); virtual;
  2079. Procedure Setlocality(AIndex : Integer; const AValue : String); virtual;
  2080. Procedure SetpostalCode(AIndex : Integer; const AValue : String); virtual;
  2081. Procedure SetrecipientName(AIndex : Integer; const AValue : String); virtual;
  2082. Procedure Setregion(AIndex : Integer; const AValue : String); virtual;
  2083. Procedure SetstreetAddress(AIndex : Integer; const AValue : TStringArray); virtual;
  2084. //2.6.4. bug workaround
  2085. {$IFDEF VER2_6}
  2086. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2087. {$ENDIF VER2_6}
  2088. Public
  2089. Published
  2090. Property country : String Index 0 Read Fcountry Write Setcountry;
  2091. Property fullAddress : TStringArray Index 8 Read FfullAddress Write SetfullAddress;
  2092. Property isPostOfficeBox : boolean Index 16 Read FisPostOfficeBox Write SetisPostOfficeBox;
  2093. Property locality : String Index 24 Read Flocality Write Setlocality;
  2094. Property postalCode : String Index 32 Read FpostalCode Write SetpostalCode;
  2095. Property recipientName : String Index 40 Read FrecipientName Write SetrecipientName;
  2096. Property region : String Index 48 Read Fregion Write Setregion;
  2097. Property streetAddress : TStringArray Index 56 Read FstreetAddress Write SetstreetAddress;
  2098. end;
  2099. TOrderAddressClass = Class of TOrderAddress;
  2100. { --------------------------------------------------------------------
  2101. TOrderCancellation
  2102. --------------------------------------------------------------------}
  2103. TOrderCancellation = Class(TGoogleBaseObject)
  2104. Private
  2105. Factor : String;
  2106. FcreationDate : String;
  2107. Fquantity : integer;
  2108. Freason : String;
  2109. FreasonText : String;
  2110. Protected
  2111. //Property setters
  2112. Procedure Setactor(AIndex : Integer; const AValue : String); virtual;
  2113. Procedure SetcreationDate(AIndex : Integer; const AValue : String); virtual;
  2114. Procedure Setquantity(AIndex : Integer; const AValue : integer); virtual;
  2115. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2116. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  2117. Public
  2118. Published
  2119. Property actor : String Index 0 Read Factor Write Setactor;
  2120. Property creationDate : String Index 8 Read FcreationDate Write SetcreationDate;
  2121. Property quantity : integer Index 16 Read Fquantity Write Setquantity;
  2122. Property reason : String Index 24 Read Freason Write Setreason;
  2123. Property reasonText : String Index 32 Read FreasonText Write SetreasonText;
  2124. end;
  2125. TOrderCancellationClass = Class of TOrderCancellation;
  2126. { --------------------------------------------------------------------
  2127. TOrderCustomer
  2128. --------------------------------------------------------------------}
  2129. TOrderCustomer = Class(TGoogleBaseObject)
  2130. Private
  2131. Femail : String;
  2132. FexplicitMarketingPreference : boolean;
  2133. FfullName : String;
  2134. Protected
  2135. //Property setters
  2136. Procedure Setemail(AIndex : Integer; const AValue : String); virtual;
  2137. Procedure SetexplicitMarketingPreference(AIndex : Integer; const AValue : boolean); virtual;
  2138. Procedure SetfullName(AIndex : Integer; const AValue : String); virtual;
  2139. Public
  2140. Published
  2141. Property email : String Index 0 Read Femail Write Setemail;
  2142. Property explicitMarketingPreference : boolean Index 8 Read FexplicitMarketingPreference Write SetexplicitMarketingPreference;
  2143. Property fullName : String Index 16 Read FfullName Write SetfullName;
  2144. end;
  2145. TOrderCustomerClass = Class of TOrderCustomer;
  2146. { --------------------------------------------------------------------
  2147. TOrderDeliveryDetails
  2148. --------------------------------------------------------------------}
  2149. TOrderDeliveryDetails = Class(TGoogleBaseObject)
  2150. Private
  2151. Faddress : TOrderAddress;
  2152. FphoneNumber : String;
  2153. Protected
  2154. //Property setters
  2155. Procedure Setaddress(AIndex : Integer; const AValue : TOrderAddress); virtual;
  2156. Procedure SetphoneNumber(AIndex : Integer; const AValue : String); virtual;
  2157. Public
  2158. Published
  2159. Property address : TOrderAddress Index 0 Read Faddress Write Setaddress;
  2160. Property phoneNumber : String Index 8 Read FphoneNumber Write SetphoneNumber;
  2161. end;
  2162. TOrderDeliveryDetailsClass = Class of TOrderDeliveryDetails;
  2163. { --------------------------------------------------------------------
  2164. TOrderLineItem
  2165. --------------------------------------------------------------------}
  2166. TOrderLineItem = Class(TGoogleBaseObject)
  2167. Private
  2168. Fcancellations : TOrderLineItemTypecancellationsArray;
  2169. Fid : String;
  2170. Fprice : TPrice;
  2171. Fproduct : TOrderLineItemProduct;
  2172. FquantityCanceled : integer;
  2173. FquantityDelivered : integer;
  2174. FquantityOrdered : integer;
  2175. FquantityPending : integer;
  2176. FquantityReturned : integer;
  2177. FquantityShipped : integer;
  2178. FreturnInfo : TOrderLineItemReturnInfo;
  2179. Freturns : TOrderLineItemTypereturnsArray;
  2180. FshippingDetails : TOrderLineItemShippingDetails;
  2181. Ftax : TPrice;
  2182. Protected
  2183. //Property setters
  2184. Procedure Setcancellations(AIndex : Integer; const AValue : TOrderLineItemTypecancellationsArray); virtual;
  2185. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2186. Procedure Setprice(AIndex : Integer; const AValue : TPrice); virtual;
  2187. Procedure Setproduct(AIndex : Integer; const AValue : TOrderLineItemProduct); virtual;
  2188. Procedure SetquantityCanceled(AIndex : Integer; const AValue : integer); virtual;
  2189. Procedure SetquantityDelivered(AIndex : Integer; const AValue : integer); virtual;
  2190. Procedure SetquantityOrdered(AIndex : Integer; const AValue : integer); virtual;
  2191. Procedure SetquantityPending(AIndex : Integer; const AValue : integer); virtual;
  2192. Procedure SetquantityReturned(AIndex : Integer; const AValue : integer); virtual;
  2193. Procedure SetquantityShipped(AIndex : Integer; const AValue : integer); virtual;
  2194. Procedure SetreturnInfo(AIndex : Integer; const AValue : TOrderLineItemReturnInfo); virtual;
  2195. Procedure Setreturns(AIndex : Integer; const AValue : TOrderLineItemTypereturnsArray); virtual;
  2196. Procedure SetshippingDetails(AIndex : Integer; const AValue : TOrderLineItemShippingDetails); virtual;
  2197. Procedure Settax(AIndex : Integer; const AValue : TPrice); virtual;
  2198. //2.6.4. bug workaround
  2199. {$IFDEF VER2_6}
  2200. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2201. {$ENDIF VER2_6}
  2202. Public
  2203. Published
  2204. Property cancellations : TOrderLineItemTypecancellationsArray Index 0 Read Fcancellations Write Setcancellations;
  2205. Property id : String Index 8 Read Fid Write Setid;
  2206. Property price : TPrice Index 16 Read Fprice Write Setprice;
  2207. Property product : TOrderLineItemProduct Index 24 Read Fproduct Write Setproduct;
  2208. Property quantityCanceled : integer Index 32 Read FquantityCanceled Write SetquantityCanceled;
  2209. Property quantityDelivered : integer Index 40 Read FquantityDelivered Write SetquantityDelivered;
  2210. Property quantityOrdered : integer Index 48 Read FquantityOrdered Write SetquantityOrdered;
  2211. Property quantityPending : integer Index 56 Read FquantityPending Write SetquantityPending;
  2212. Property quantityReturned : integer Index 64 Read FquantityReturned Write SetquantityReturned;
  2213. Property quantityShipped : integer Index 72 Read FquantityShipped Write SetquantityShipped;
  2214. Property returnInfo : TOrderLineItemReturnInfo Index 80 Read FreturnInfo Write SetreturnInfo;
  2215. Property returns : TOrderLineItemTypereturnsArray Index 88 Read Freturns Write Setreturns;
  2216. Property shippingDetails : TOrderLineItemShippingDetails Index 96 Read FshippingDetails Write SetshippingDetails;
  2217. Property tax : TPrice Index 104 Read Ftax Write Settax;
  2218. end;
  2219. TOrderLineItemClass = Class of TOrderLineItem;
  2220. { --------------------------------------------------------------------
  2221. TOrderLineItemProduct
  2222. --------------------------------------------------------------------}
  2223. TOrderLineItemProduct = Class(TGoogleBaseObject)
  2224. Private
  2225. Fbrand : String;
  2226. Fchannel : String;
  2227. Fcondition : String;
  2228. FcontentLanguage : String;
  2229. Fgtin : String;
  2230. Fid : String;
  2231. FimageLink : String;
  2232. FitemGroupId : String;
  2233. Fmpn : String;
  2234. FofferId : String;
  2235. Fprice : TPrice;
  2236. FshownImage : String;
  2237. FtargetCountry : String;
  2238. Ftitle : String;
  2239. FvariantAttributes : TOrderLineItemProductTypevariantAttributesArray;
  2240. Protected
  2241. //Property setters
  2242. Procedure Setbrand(AIndex : Integer; const AValue : String); virtual;
  2243. Procedure Setchannel(AIndex : Integer; const AValue : String); virtual;
  2244. Procedure Setcondition(AIndex : Integer; const AValue : String); virtual;
  2245. Procedure SetcontentLanguage(AIndex : Integer; const AValue : String); virtual;
  2246. Procedure Setgtin(AIndex : Integer; const AValue : String); virtual;
  2247. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2248. Procedure SetimageLink(AIndex : Integer; const AValue : String); virtual;
  2249. Procedure SetitemGroupId(AIndex : Integer; const AValue : String); virtual;
  2250. Procedure Setmpn(AIndex : Integer; const AValue : String); virtual;
  2251. Procedure SetofferId(AIndex : Integer; const AValue : String); virtual;
  2252. Procedure Setprice(AIndex : Integer; const AValue : TPrice); virtual;
  2253. Procedure SetshownImage(AIndex : Integer; const AValue : String); virtual;
  2254. Procedure SettargetCountry(AIndex : Integer; const AValue : String); virtual;
  2255. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  2256. Procedure SetvariantAttributes(AIndex : Integer; const AValue : TOrderLineItemProductTypevariantAttributesArray); virtual;
  2257. //2.6.4. bug workaround
  2258. {$IFDEF VER2_6}
  2259. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2260. {$ENDIF VER2_6}
  2261. Public
  2262. Published
  2263. Property brand : String Index 0 Read Fbrand Write Setbrand;
  2264. Property channel : String Index 8 Read Fchannel Write Setchannel;
  2265. Property condition : String Index 16 Read Fcondition Write Setcondition;
  2266. Property contentLanguage : String Index 24 Read FcontentLanguage Write SetcontentLanguage;
  2267. Property gtin : String Index 32 Read Fgtin Write Setgtin;
  2268. Property id : String Index 40 Read Fid Write Setid;
  2269. Property imageLink : String Index 48 Read FimageLink Write SetimageLink;
  2270. Property itemGroupId : String Index 56 Read FitemGroupId Write SetitemGroupId;
  2271. Property mpn : String Index 64 Read Fmpn Write Setmpn;
  2272. Property offerId : String Index 72 Read FofferId Write SetofferId;
  2273. Property price : TPrice Index 80 Read Fprice Write Setprice;
  2274. Property shownImage : String Index 88 Read FshownImage Write SetshownImage;
  2275. Property targetCountry : String Index 96 Read FtargetCountry Write SettargetCountry;
  2276. Property title : String Index 104 Read Ftitle Write Settitle;
  2277. Property variantAttributes : TOrderLineItemProductTypevariantAttributesArray Index 112 Read FvariantAttributes Write SetvariantAttributes;
  2278. end;
  2279. TOrderLineItemProductClass = Class of TOrderLineItemProduct;
  2280. { --------------------------------------------------------------------
  2281. TOrderLineItemProductVariantAttribute
  2282. --------------------------------------------------------------------}
  2283. TOrderLineItemProductVariantAttribute = Class(TGoogleBaseObject)
  2284. Private
  2285. Fdimension : String;
  2286. Fvalue : String;
  2287. Protected
  2288. //Property setters
  2289. Procedure Setdimension(AIndex : Integer; const AValue : String); virtual;
  2290. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  2291. Public
  2292. Published
  2293. Property dimension : String Index 0 Read Fdimension Write Setdimension;
  2294. Property value : String Index 8 Read Fvalue Write Setvalue;
  2295. end;
  2296. TOrderLineItemProductVariantAttributeClass = Class of TOrderLineItemProductVariantAttribute;
  2297. { --------------------------------------------------------------------
  2298. TOrderLineItemReturnInfo
  2299. --------------------------------------------------------------------}
  2300. TOrderLineItemReturnInfo = Class(TGoogleBaseObject)
  2301. Private
  2302. FdaysToReturn : integer;
  2303. FisReturnable : boolean;
  2304. FpolicyUrl : String;
  2305. Protected
  2306. //Property setters
  2307. Procedure SetdaysToReturn(AIndex : Integer; const AValue : integer); virtual;
  2308. Procedure SetisReturnable(AIndex : Integer; const AValue : boolean); virtual;
  2309. Procedure SetpolicyUrl(AIndex : Integer; const AValue : String); virtual;
  2310. Public
  2311. Published
  2312. Property daysToReturn : integer Index 0 Read FdaysToReturn Write SetdaysToReturn;
  2313. Property isReturnable : boolean Index 8 Read FisReturnable Write SetisReturnable;
  2314. Property policyUrl : String Index 16 Read FpolicyUrl Write SetpolicyUrl;
  2315. end;
  2316. TOrderLineItemReturnInfoClass = Class of TOrderLineItemReturnInfo;
  2317. { --------------------------------------------------------------------
  2318. TOrderLineItemShippingDetails
  2319. --------------------------------------------------------------------}
  2320. TOrderLineItemShippingDetails = Class(TGoogleBaseObject)
  2321. Private
  2322. FdeliverByDate : String;
  2323. Fmethod : TOrderLineItemShippingDetailsMethod;
  2324. FshipByDate : String;
  2325. Protected
  2326. //Property setters
  2327. Procedure SetdeliverByDate(AIndex : Integer; const AValue : String); virtual;
  2328. Procedure Setmethod(AIndex : Integer; const AValue : TOrderLineItemShippingDetailsMethod); virtual;
  2329. Procedure SetshipByDate(AIndex : Integer; const AValue : String); virtual;
  2330. Public
  2331. Published
  2332. Property deliverByDate : String Index 0 Read FdeliverByDate Write SetdeliverByDate;
  2333. Property method : TOrderLineItemShippingDetailsMethod Index 8 Read Fmethod Write Setmethod;
  2334. Property shipByDate : String Index 16 Read FshipByDate Write SetshipByDate;
  2335. end;
  2336. TOrderLineItemShippingDetailsClass = Class of TOrderLineItemShippingDetails;
  2337. { --------------------------------------------------------------------
  2338. TOrderLineItemShippingDetailsMethod
  2339. --------------------------------------------------------------------}
  2340. TOrderLineItemShippingDetailsMethod = Class(TGoogleBaseObject)
  2341. Private
  2342. Fcarrier : String;
  2343. FmaxDaysInTransit : integer;
  2344. FmethodName : String;
  2345. FminDaysInTransit : integer;
  2346. Protected
  2347. //Property setters
  2348. Procedure Setcarrier(AIndex : Integer; const AValue : String); virtual;
  2349. Procedure SetmaxDaysInTransit(AIndex : Integer; const AValue : integer); virtual;
  2350. Procedure SetmethodName(AIndex : Integer; const AValue : String); virtual;
  2351. Procedure SetminDaysInTransit(AIndex : Integer; const AValue : integer); virtual;
  2352. Public
  2353. Published
  2354. Property carrier : String Index 0 Read Fcarrier Write Setcarrier;
  2355. Property maxDaysInTransit : integer Index 8 Read FmaxDaysInTransit Write SetmaxDaysInTransit;
  2356. Property methodName : String Index 16 Read FmethodName Write SetmethodName;
  2357. Property minDaysInTransit : integer Index 24 Read FminDaysInTransit Write SetminDaysInTransit;
  2358. end;
  2359. TOrderLineItemShippingDetailsMethodClass = Class of TOrderLineItemShippingDetailsMethod;
  2360. { --------------------------------------------------------------------
  2361. TOrderPaymentMethod
  2362. --------------------------------------------------------------------}
  2363. TOrderPaymentMethod = Class(TGoogleBaseObject)
  2364. Private
  2365. FbillingAddress : TOrderAddress;
  2366. FexpirationMonth : integer;
  2367. FexpirationYear : integer;
  2368. FlastFourDigits : String;
  2369. FphoneNumber : String;
  2370. F_type : String;
  2371. Protected
  2372. Class Function ExportPropertyName(Const AName : String) : string; override;
  2373. //Property setters
  2374. Procedure SetbillingAddress(AIndex : Integer; const AValue : TOrderAddress); virtual;
  2375. Procedure SetexpirationMonth(AIndex : Integer; const AValue : integer); virtual;
  2376. Procedure SetexpirationYear(AIndex : Integer; const AValue : integer); virtual;
  2377. Procedure SetlastFourDigits(AIndex : Integer; const AValue : String); virtual;
  2378. Procedure SetphoneNumber(AIndex : Integer; const AValue : String); virtual;
  2379. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2380. Public
  2381. Published
  2382. Property billingAddress : TOrderAddress Index 0 Read FbillingAddress Write SetbillingAddress;
  2383. Property expirationMonth : integer Index 8 Read FexpirationMonth Write SetexpirationMonth;
  2384. Property expirationYear : integer Index 16 Read FexpirationYear Write SetexpirationYear;
  2385. Property lastFourDigits : String Index 24 Read FlastFourDigits Write SetlastFourDigits;
  2386. Property phoneNumber : String Index 32 Read FphoneNumber Write SetphoneNumber;
  2387. Property _type : String Index 40 Read F_type Write Set_type;
  2388. end;
  2389. TOrderPaymentMethodClass = Class of TOrderPaymentMethod;
  2390. { --------------------------------------------------------------------
  2391. TOrderPromotion
  2392. --------------------------------------------------------------------}
  2393. TOrderPromotion = Class(TGoogleBaseObject)
  2394. Private
  2395. Fbenefits : TOrderPromotionTypebenefitsArray;
  2396. FeffectiveDates : String;
  2397. FgenericRedemptionCode : String;
  2398. Fid : String;
  2399. FlongTitle : String;
  2400. FproductApplicability : String;
  2401. FredemptionChannel : String;
  2402. Protected
  2403. //Property setters
  2404. Procedure Setbenefits(AIndex : Integer; const AValue : TOrderPromotionTypebenefitsArray); virtual;
  2405. Procedure SeteffectiveDates(AIndex : Integer; const AValue : String); virtual;
  2406. Procedure SetgenericRedemptionCode(AIndex : Integer; const AValue : String); virtual;
  2407. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2408. Procedure SetlongTitle(AIndex : Integer; const AValue : String); virtual;
  2409. Procedure SetproductApplicability(AIndex : Integer; const AValue : String); virtual;
  2410. Procedure SetredemptionChannel(AIndex : Integer; const AValue : String); virtual;
  2411. //2.6.4. bug workaround
  2412. {$IFDEF VER2_6}
  2413. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2414. {$ENDIF VER2_6}
  2415. Public
  2416. Published
  2417. Property benefits : TOrderPromotionTypebenefitsArray Index 0 Read Fbenefits Write Setbenefits;
  2418. Property effectiveDates : String Index 8 Read FeffectiveDates Write SeteffectiveDates;
  2419. Property genericRedemptionCode : String Index 16 Read FgenericRedemptionCode Write SetgenericRedemptionCode;
  2420. Property id : String Index 24 Read Fid Write Setid;
  2421. Property longTitle : String Index 32 Read FlongTitle Write SetlongTitle;
  2422. Property productApplicability : String Index 40 Read FproductApplicability Write SetproductApplicability;
  2423. Property redemptionChannel : String Index 48 Read FredemptionChannel Write SetredemptionChannel;
  2424. end;
  2425. TOrderPromotionClass = Class of TOrderPromotion;
  2426. { --------------------------------------------------------------------
  2427. TOrderPromotionBenefit
  2428. --------------------------------------------------------------------}
  2429. TOrderPromotionBenefit = Class(TGoogleBaseObject)
  2430. Private
  2431. Fdiscount : TPrice;
  2432. FofferIds : TStringArray;
  2433. FsubType : String;
  2434. FtaxImpact : TPrice;
  2435. F_type : String;
  2436. Protected
  2437. Class Function ExportPropertyName(Const AName : String) : string; override;
  2438. //Property setters
  2439. Procedure Setdiscount(AIndex : Integer; const AValue : TPrice); virtual;
  2440. Procedure SetofferIds(AIndex : Integer; const AValue : TStringArray); virtual;
  2441. Procedure SetsubType(AIndex : Integer; const AValue : String); virtual;
  2442. Procedure SettaxImpact(AIndex : Integer; const AValue : TPrice); virtual;
  2443. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2444. //2.6.4. bug workaround
  2445. {$IFDEF VER2_6}
  2446. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2447. {$ENDIF VER2_6}
  2448. Public
  2449. Published
  2450. Property discount : TPrice Index 0 Read Fdiscount Write Setdiscount;
  2451. Property offerIds : TStringArray Index 8 Read FofferIds Write SetofferIds;
  2452. Property subType : String Index 16 Read FsubType Write SetsubType;
  2453. Property taxImpact : TPrice Index 24 Read FtaxImpact Write SettaxImpact;
  2454. Property _type : String Index 32 Read F_type Write Set_type;
  2455. end;
  2456. TOrderPromotionBenefitClass = Class of TOrderPromotionBenefit;
  2457. { --------------------------------------------------------------------
  2458. TOrderRefund
  2459. --------------------------------------------------------------------}
  2460. TOrderRefund = Class(TGoogleBaseObject)
  2461. Private
  2462. Factor : String;
  2463. Famount : TPrice;
  2464. FcreationDate : String;
  2465. Freason : String;
  2466. FreasonText : String;
  2467. Protected
  2468. //Property setters
  2469. Procedure Setactor(AIndex : Integer; const AValue : String); virtual;
  2470. Procedure Setamount(AIndex : Integer; const AValue : TPrice); virtual;
  2471. Procedure SetcreationDate(AIndex : Integer; const AValue : String); virtual;
  2472. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2473. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  2474. Public
  2475. Published
  2476. Property actor : String Index 0 Read Factor Write Setactor;
  2477. Property amount : TPrice Index 8 Read Famount Write Setamount;
  2478. Property creationDate : String Index 16 Read FcreationDate Write SetcreationDate;
  2479. Property reason : String Index 24 Read Freason Write Setreason;
  2480. Property reasonText : String Index 32 Read FreasonText Write SetreasonText;
  2481. end;
  2482. TOrderRefundClass = Class of TOrderRefund;
  2483. { --------------------------------------------------------------------
  2484. TOrderReturn
  2485. --------------------------------------------------------------------}
  2486. TOrderReturn = Class(TGoogleBaseObject)
  2487. Private
  2488. Factor : String;
  2489. FcreationDate : String;
  2490. Fquantity : integer;
  2491. Freason : String;
  2492. FreasonText : String;
  2493. Protected
  2494. //Property setters
  2495. Procedure Setactor(AIndex : Integer; const AValue : String); virtual;
  2496. Procedure SetcreationDate(AIndex : Integer; const AValue : String); virtual;
  2497. Procedure Setquantity(AIndex : Integer; const AValue : integer); virtual;
  2498. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2499. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  2500. Public
  2501. Published
  2502. Property actor : String Index 0 Read Factor Write Setactor;
  2503. Property creationDate : String Index 8 Read FcreationDate Write SetcreationDate;
  2504. Property quantity : integer Index 16 Read Fquantity Write Setquantity;
  2505. Property reason : String Index 24 Read Freason Write Setreason;
  2506. Property reasonText : String Index 32 Read FreasonText Write SetreasonText;
  2507. end;
  2508. TOrderReturnClass = Class of TOrderReturn;
  2509. { --------------------------------------------------------------------
  2510. TOrderShipment
  2511. --------------------------------------------------------------------}
  2512. TOrderShipment = Class(TGoogleBaseObject)
  2513. Private
  2514. Fcarrier : String;
  2515. FcreationDate : String;
  2516. FdeliveryDate : String;
  2517. Fid : String;
  2518. FlineItems : TOrderShipmentTypelineItemsArray;
  2519. Fstatus : String;
  2520. FtrackingId : String;
  2521. Protected
  2522. //Property setters
  2523. Procedure Setcarrier(AIndex : Integer; const AValue : String); virtual;
  2524. Procedure SetcreationDate(AIndex : Integer; const AValue : String); virtual;
  2525. Procedure SetdeliveryDate(AIndex : Integer; const AValue : String); virtual;
  2526. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2527. Procedure SetlineItems(AIndex : Integer; const AValue : TOrderShipmentTypelineItemsArray); virtual;
  2528. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2529. Procedure SettrackingId(AIndex : Integer; const AValue : String); virtual;
  2530. //2.6.4. bug workaround
  2531. {$IFDEF VER2_6}
  2532. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2533. {$ENDIF VER2_6}
  2534. Public
  2535. Published
  2536. Property carrier : String Index 0 Read Fcarrier Write Setcarrier;
  2537. Property creationDate : String Index 8 Read FcreationDate Write SetcreationDate;
  2538. Property deliveryDate : String Index 16 Read FdeliveryDate Write SetdeliveryDate;
  2539. Property id : String Index 24 Read Fid Write Setid;
  2540. Property lineItems : TOrderShipmentTypelineItemsArray Index 32 Read FlineItems Write SetlineItems;
  2541. Property status : String Index 40 Read Fstatus Write Setstatus;
  2542. Property trackingId : String Index 48 Read FtrackingId Write SettrackingId;
  2543. end;
  2544. TOrderShipmentClass = Class of TOrderShipment;
  2545. { --------------------------------------------------------------------
  2546. TOrderShipmentLineItemShipment
  2547. --------------------------------------------------------------------}
  2548. TOrderShipmentLineItemShipment = Class(TGoogleBaseObject)
  2549. Private
  2550. FlineItemId : String;
  2551. Fquantity : integer;
  2552. Protected
  2553. //Property setters
  2554. Procedure SetlineItemId(AIndex : Integer; const AValue : String); virtual;
  2555. Procedure Setquantity(AIndex : Integer; const AValue : integer); virtual;
  2556. Public
  2557. Published
  2558. Property lineItemId : String Index 0 Read FlineItemId Write SetlineItemId;
  2559. Property quantity : integer Index 8 Read Fquantity Write Setquantity;
  2560. end;
  2561. TOrderShipmentLineItemShipmentClass = Class of TOrderShipmentLineItemShipment;
  2562. { --------------------------------------------------------------------
  2563. TOrdersAcknowledgeRequest
  2564. --------------------------------------------------------------------}
  2565. TOrdersAcknowledgeRequest = Class(TGoogleBaseObject)
  2566. Private
  2567. FoperationId : String;
  2568. Protected
  2569. //Property setters
  2570. Procedure SetoperationId(AIndex : Integer; const AValue : String); virtual;
  2571. Public
  2572. Published
  2573. Property operationId : String Index 0 Read FoperationId Write SetoperationId;
  2574. end;
  2575. TOrdersAcknowledgeRequestClass = Class of TOrdersAcknowledgeRequest;
  2576. { --------------------------------------------------------------------
  2577. TOrdersAcknowledgeResponse
  2578. --------------------------------------------------------------------}
  2579. TOrdersAcknowledgeResponse = Class(TGoogleBaseObject)
  2580. Private
  2581. FexecutionStatus : String;
  2582. Fkind : String;
  2583. Protected
  2584. //Property setters
  2585. Procedure SetexecutionStatus(AIndex : Integer; const AValue : String); virtual;
  2586. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2587. Public
  2588. Published
  2589. Property executionStatus : String Index 0 Read FexecutionStatus Write SetexecutionStatus;
  2590. Property kind : String Index 8 Read Fkind Write Setkind;
  2591. end;
  2592. TOrdersAcknowledgeResponseClass = Class of TOrdersAcknowledgeResponse;
  2593. { --------------------------------------------------------------------
  2594. TOrdersAdvanceTestOrderResponse
  2595. --------------------------------------------------------------------}
  2596. TOrdersAdvanceTestOrderResponse = Class(TGoogleBaseObject)
  2597. Private
  2598. Fkind : String;
  2599. Protected
  2600. //Property setters
  2601. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2602. Public
  2603. Published
  2604. Property kind : String Index 0 Read Fkind Write Setkind;
  2605. end;
  2606. TOrdersAdvanceTestOrderResponseClass = Class of TOrdersAdvanceTestOrderResponse;
  2607. { --------------------------------------------------------------------
  2608. TOrdersCancelLineItemRequest
  2609. --------------------------------------------------------------------}
  2610. TOrdersCancelLineItemRequest = Class(TGoogleBaseObject)
  2611. Private
  2612. Famount : TPrice;
  2613. FlineItemId : String;
  2614. FoperationId : String;
  2615. Fquantity : integer;
  2616. Freason : String;
  2617. FreasonText : String;
  2618. Protected
  2619. //Property setters
  2620. Procedure Setamount(AIndex : Integer; const AValue : TPrice); virtual;
  2621. Procedure SetlineItemId(AIndex : Integer; const AValue : String); virtual;
  2622. Procedure SetoperationId(AIndex : Integer; const AValue : String); virtual;
  2623. Procedure Setquantity(AIndex : Integer; const AValue : integer); virtual;
  2624. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2625. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  2626. Public
  2627. Published
  2628. Property amount : TPrice Index 0 Read Famount Write Setamount;
  2629. Property lineItemId : String Index 8 Read FlineItemId Write SetlineItemId;
  2630. Property operationId : String Index 16 Read FoperationId Write SetoperationId;
  2631. Property quantity : integer Index 24 Read Fquantity Write Setquantity;
  2632. Property reason : String Index 32 Read Freason Write Setreason;
  2633. Property reasonText : String Index 40 Read FreasonText Write SetreasonText;
  2634. end;
  2635. TOrdersCancelLineItemRequestClass = Class of TOrdersCancelLineItemRequest;
  2636. { --------------------------------------------------------------------
  2637. TOrdersCancelLineItemResponse
  2638. --------------------------------------------------------------------}
  2639. TOrdersCancelLineItemResponse = Class(TGoogleBaseObject)
  2640. Private
  2641. FexecutionStatus : String;
  2642. Fkind : String;
  2643. Protected
  2644. //Property setters
  2645. Procedure SetexecutionStatus(AIndex : Integer; const AValue : String); virtual;
  2646. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2647. Public
  2648. Published
  2649. Property executionStatus : String Index 0 Read FexecutionStatus Write SetexecutionStatus;
  2650. Property kind : String Index 8 Read Fkind Write Setkind;
  2651. end;
  2652. TOrdersCancelLineItemResponseClass = Class of TOrdersCancelLineItemResponse;
  2653. { --------------------------------------------------------------------
  2654. TOrdersCancelRequest
  2655. --------------------------------------------------------------------}
  2656. TOrdersCancelRequest = Class(TGoogleBaseObject)
  2657. Private
  2658. FoperationId : String;
  2659. Freason : String;
  2660. FreasonText : String;
  2661. Protected
  2662. //Property setters
  2663. Procedure SetoperationId(AIndex : Integer; const AValue : String); virtual;
  2664. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2665. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  2666. Public
  2667. Published
  2668. Property operationId : String Index 0 Read FoperationId Write SetoperationId;
  2669. Property reason : String Index 8 Read Freason Write Setreason;
  2670. Property reasonText : String Index 16 Read FreasonText Write SetreasonText;
  2671. end;
  2672. TOrdersCancelRequestClass = Class of TOrdersCancelRequest;
  2673. { --------------------------------------------------------------------
  2674. TOrdersCancelResponse
  2675. --------------------------------------------------------------------}
  2676. TOrdersCancelResponse = Class(TGoogleBaseObject)
  2677. Private
  2678. FexecutionStatus : String;
  2679. Fkind : String;
  2680. Protected
  2681. //Property setters
  2682. Procedure SetexecutionStatus(AIndex : Integer; const AValue : String); virtual;
  2683. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2684. Public
  2685. Published
  2686. Property executionStatus : String Index 0 Read FexecutionStatus Write SetexecutionStatus;
  2687. Property kind : String Index 8 Read Fkind Write Setkind;
  2688. end;
  2689. TOrdersCancelResponseClass = Class of TOrdersCancelResponse;
  2690. { --------------------------------------------------------------------
  2691. TOrdersCreateTestOrderRequest
  2692. --------------------------------------------------------------------}
  2693. TOrdersCreateTestOrderRequest = Class(TGoogleBaseObject)
  2694. Private
  2695. FtemplateName : String;
  2696. FtestOrder : TTestOrder;
  2697. Protected
  2698. //Property setters
  2699. Procedure SettemplateName(AIndex : Integer; const AValue : String); virtual;
  2700. Procedure SettestOrder(AIndex : Integer; const AValue : TTestOrder); virtual;
  2701. Public
  2702. Published
  2703. Property templateName : String Index 0 Read FtemplateName Write SettemplateName;
  2704. Property testOrder : TTestOrder Index 8 Read FtestOrder Write SettestOrder;
  2705. end;
  2706. TOrdersCreateTestOrderRequestClass = Class of TOrdersCreateTestOrderRequest;
  2707. { --------------------------------------------------------------------
  2708. TOrdersCreateTestOrderResponse
  2709. --------------------------------------------------------------------}
  2710. TOrdersCreateTestOrderResponse = Class(TGoogleBaseObject)
  2711. Private
  2712. Fkind : String;
  2713. ForderId : String;
  2714. Protected
  2715. //Property setters
  2716. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2717. Procedure SetorderId(AIndex : Integer; const AValue : String); virtual;
  2718. Public
  2719. Published
  2720. Property kind : String Index 0 Read Fkind Write Setkind;
  2721. Property orderId : String Index 8 Read ForderId Write SetorderId;
  2722. end;
  2723. TOrdersCreateTestOrderResponseClass = Class of TOrdersCreateTestOrderResponse;
  2724. { --------------------------------------------------------------------
  2725. TOrdersCustomBatchRequest
  2726. --------------------------------------------------------------------}
  2727. TOrdersCustomBatchRequest = Class(TGoogleBaseObject)
  2728. Private
  2729. Fentries : TOrdersCustomBatchRequestTypeentriesArray;
  2730. Protected
  2731. //Property setters
  2732. Procedure Setentries(AIndex : Integer; const AValue : TOrdersCustomBatchRequestTypeentriesArray); virtual;
  2733. //2.6.4. bug workaround
  2734. {$IFDEF VER2_6}
  2735. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2736. {$ENDIF VER2_6}
  2737. Public
  2738. Published
  2739. Property entries : TOrdersCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  2740. end;
  2741. TOrdersCustomBatchRequestClass = Class of TOrdersCustomBatchRequest;
  2742. { --------------------------------------------------------------------
  2743. TOrdersCustomBatchRequestEntry
  2744. --------------------------------------------------------------------}
  2745. TOrdersCustomBatchRequestEntry = Class(TGoogleBaseObject)
  2746. Private
  2747. FbatchId : integer;
  2748. Fcancel : TOrdersCustomBatchRequestEntryCancel;
  2749. FcancelLineItem : TOrdersCustomBatchRequestEntryCancelLineItem;
  2750. FmerchantId : String;
  2751. FmerchantOrderId : String;
  2752. Fmethod : String;
  2753. FoperationId : String;
  2754. ForderId : String;
  2755. Frefund : TOrdersCustomBatchRequestEntryRefund;
  2756. FreturnLineItem : TOrdersCustomBatchRequestEntryReturnLineItem;
  2757. FshipLineItems : TOrdersCustomBatchRequestEntryShipLineItems;
  2758. FupdateShipment : TOrdersCustomBatchRequestEntryUpdateShipment;
  2759. Protected
  2760. //Property setters
  2761. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  2762. Procedure Setcancel(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryCancel); virtual;
  2763. Procedure SetcancelLineItem(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryCancelLineItem); virtual;
  2764. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  2765. Procedure SetmerchantOrderId(AIndex : Integer; const AValue : String); virtual;
  2766. Procedure Setmethod(AIndex : Integer; const AValue : String); virtual;
  2767. Procedure SetoperationId(AIndex : Integer; const AValue : String); virtual;
  2768. Procedure SetorderId(AIndex : Integer; const AValue : String); virtual;
  2769. Procedure Setrefund(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryRefund); virtual;
  2770. Procedure SetreturnLineItem(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryReturnLineItem); virtual;
  2771. Procedure SetshipLineItems(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryShipLineItems); virtual;
  2772. Procedure SetupdateShipment(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryUpdateShipment); virtual;
  2773. Public
  2774. Published
  2775. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  2776. Property cancel : TOrdersCustomBatchRequestEntryCancel Index 8 Read Fcancel Write Setcancel;
  2777. Property cancelLineItem : TOrdersCustomBatchRequestEntryCancelLineItem Index 16 Read FcancelLineItem Write SetcancelLineItem;
  2778. Property merchantId : String Index 24 Read FmerchantId Write SetmerchantId;
  2779. Property merchantOrderId : String Index 32 Read FmerchantOrderId Write SetmerchantOrderId;
  2780. Property method : String Index 40 Read Fmethod Write Setmethod;
  2781. Property operationId : String Index 48 Read FoperationId Write SetoperationId;
  2782. Property orderId : String Index 56 Read ForderId Write SetorderId;
  2783. Property refund : TOrdersCustomBatchRequestEntryRefund Index 64 Read Frefund Write Setrefund;
  2784. Property returnLineItem : TOrdersCustomBatchRequestEntryReturnLineItem Index 72 Read FreturnLineItem Write SetreturnLineItem;
  2785. Property shipLineItems : TOrdersCustomBatchRequestEntryShipLineItems Index 80 Read FshipLineItems Write SetshipLineItems;
  2786. Property updateShipment : TOrdersCustomBatchRequestEntryUpdateShipment Index 88 Read FupdateShipment Write SetupdateShipment;
  2787. end;
  2788. TOrdersCustomBatchRequestEntryClass = Class of TOrdersCustomBatchRequestEntry;
  2789. { --------------------------------------------------------------------
  2790. TOrdersCustomBatchRequestEntryCancel
  2791. --------------------------------------------------------------------}
  2792. TOrdersCustomBatchRequestEntryCancel = Class(TGoogleBaseObject)
  2793. Private
  2794. Freason : String;
  2795. FreasonText : String;
  2796. Protected
  2797. //Property setters
  2798. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2799. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  2800. Public
  2801. Published
  2802. Property reason : String Index 0 Read Freason Write Setreason;
  2803. Property reasonText : String Index 8 Read FreasonText Write SetreasonText;
  2804. end;
  2805. TOrdersCustomBatchRequestEntryCancelClass = Class of TOrdersCustomBatchRequestEntryCancel;
  2806. { --------------------------------------------------------------------
  2807. TOrdersCustomBatchRequestEntryCancelLineItem
  2808. --------------------------------------------------------------------}
  2809. TOrdersCustomBatchRequestEntryCancelLineItem = Class(TGoogleBaseObject)
  2810. Private
  2811. Famount : TPrice;
  2812. FlineItemId : String;
  2813. Fquantity : integer;
  2814. Freason : String;
  2815. FreasonText : String;
  2816. Protected
  2817. //Property setters
  2818. Procedure Setamount(AIndex : Integer; const AValue : TPrice); virtual;
  2819. Procedure SetlineItemId(AIndex : Integer; const AValue : String); virtual;
  2820. Procedure Setquantity(AIndex : Integer; const AValue : integer); virtual;
  2821. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2822. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  2823. Public
  2824. Published
  2825. Property amount : TPrice Index 0 Read Famount Write Setamount;
  2826. Property lineItemId : String Index 8 Read FlineItemId Write SetlineItemId;
  2827. Property quantity : integer Index 16 Read Fquantity Write Setquantity;
  2828. Property reason : String Index 24 Read Freason Write Setreason;
  2829. Property reasonText : String Index 32 Read FreasonText Write SetreasonText;
  2830. end;
  2831. TOrdersCustomBatchRequestEntryCancelLineItemClass = Class of TOrdersCustomBatchRequestEntryCancelLineItem;
  2832. { --------------------------------------------------------------------
  2833. TOrdersCustomBatchRequestEntryRefund
  2834. --------------------------------------------------------------------}
  2835. TOrdersCustomBatchRequestEntryRefund = Class(TGoogleBaseObject)
  2836. Private
  2837. Famount : TPrice;
  2838. Freason : String;
  2839. FreasonText : String;
  2840. Protected
  2841. //Property setters
  2842. Procedure Setamount(AIndex : Integer; const AValue : TPrice); virtual;
  2843. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2844. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  2845. Public
  2846. Published
  2847. Property amount : TPrice Index 0 Read Famount Write Setamount;
  2848. Property reason : String Index 8 Read Freason Write Setreason;
  2849. Property reasonText : String Index 16 Read FreasonText Write SetreasonText;
  2850. end;
  2851. TOrdersCustomBatchRequestEntryRefundClass = Class of TOrdersCustomBatchRequestEntryRefund;
  2852. { --------------------------------------------------------------------
  2853. TOrdersCustomBatchRequestEntryReturnLineItem
  2854. --------------------------------------------------------------------}
  2855. TOrdersCustomBatchRequestEntryReturnLineItem = Class(TGoogleBaseObject)
  2856. Private
  2857. FlineItemId : String;
  2858. Fquantity : integer;
  2859. Freason : String;
  2860. FreasonText : String;
  2861. Protected
  2862. //Property setters
  2863. Procedure SetlineItemId(AIndex : Integer; const AValue : String); virtual;
  2864. Procedure Setquantity(AIndex : Integer; const AValue : integer); virtual;
  2865. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2866. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  2867. Public
  2868. Published
  2869. Property lineItemId : String Index 0 Read FlineItemId Write SetlineItemId;
  2870. Property quantity : integer Index 8 Read Fquantity Write Setquantity;
  2871. Property reason : String Index 16 Read Freason Write Setreason;
  2872. Property reasonText : String Index 24 Read FreasonText Write SetreasonText;
  2873. end;
  2874. TOrdersCustomBatchRequestEntryReturnLineItemClass = Class of TOrdersCustomBatchRequestEntryReturnLineItem;
  2875. { --------------------------------------------------------------------
  2876. TOrdersCustomBatchRequestEntryShipLineItems
  2877. --------------------------------------------------------------------}
  2878. TOrdersCustomBatchRequestEntryShipLineItems = Class(TGoogleBaseObject)
  2879. Private
  2880. Fcarrier : String;
  2881. FlineItems : TOrdersCustomBatchRequestEntryShipLineItemsTypelineItemsArray;
  2882. FshipmentId : String;
  2883. FtrackingId : String;
  2884. Protected
  2885. //Property setters
  2886. Procedure Setcarrier(AIndex : Integer; const AValue : String); virtual;
  2887. Procedure SetlineItems(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryShipLineItemsTypelineItemsArray); virtual;
  2888. Procedure SetshipmentId(AIndex : Integer; const AValue : String); virtual;
  2889. Procedure SettrackingId(AIndex : Integer; const AValue : String); virtual;
  2890. //2.6.4. bug workaround
  2891. {$IFDEF VER2_6}
  2892. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2893. {$ENDIF VER2_6}
  2894. Public
  2895. Published
  2896. Property carrier : String Index 0 Read Fcarrier Write Setcarrier;
  2897. Property lineItems : TOrdersCustomBatchRequestEntryShipLineItemsTypelineItemsArray Index 8 Read FlineItems Write SetlineItems;
  2898. Property shipmentId : String Index 16 Read FshipmentId Write SetshipmentId;
  2899. Property trackingId : String Index 24 Read FtrackingId Write SettrackingId;
  2900. end;
  2901. TOrdersCustomBatchRequestEntryShipLineItemsClass = Class of TOrdersCustomBatchRequestEntryShipLineItems;
  2902. { --------------------------------------------------------------------
  2903. TOrdersCustomBatchRequestEntryUpdateShipment
  2904. --------------------------------------------------------------------}
  2905. TOrdersCustomBatchRequestEntryUpdateShipment = Class(TGoogleBaseObject)
  2906. Private
  2907. Fcarrier : String;
  2908. FshipmentId : String;
  2909. Fstatus : String;
  2910. FtrackingId : String;
  2911. Protected
  2912. //Property setters
  2913. Procedure Setcarrier(AIndex : Integer; const AValue : String); virtual;
  2914. Procedure SetshipmentId(AIndex : Integer; const AValue : String); virtual;
  2915. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2916. Procedure SettrackingId(AIndex : Integer; const AValue : String); virtual;
  2917. Public
  2918. Published
  2919. Property carrier : String Index 0 Read Fcarrier Write Setcarrier;
  2920. Property shipmentId : String Index 8 Read FshipmentId Write SetshipmentId;
  2921. Property status : String Index 16 Read Fstatus Write Setstatus;
  2922. Property trackingId : String Index 24 Read FtrackingId Write SettrackingId;
  2923. end;
  2924. TOrdersCustomBatchRequestEntryUpdateShipmentClass = Class of TOrdersCustomBatchRequestEntryUpdateShipment;
  2925. { --------------------------------------------------------------------
  2926. TOrdersCustomBatchResponse
  2927. --------------------------------------------------------------------}
  2928. TOrdersCustomBatchResponse = Class(TGoogleBaseObject)
  2929. Private
  2930. Fentries : TOrdersCustomBatchResponseTypeentriesArray;
  2931. Fkind : String;
  2932. Protected
  2933. //Property setters
  2934. Procedure Setentries(AIndex : Integer; const AValue : TOrdersCustomBatchResponseTypeentriesArray); virtual;
  2935. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2936. //2.6.4. bug workaround
  2937. {$IFDEF VER2_6}
  2938. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2939. {$ENDIF VER2_6}
  2940. Public
  2941. Published
  2942. Property entries : TOrdersCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  2943. Property kind : String Index 8 Read Fkind Write Setkind;
  2944. end;
  2945. TOrdersCustomBatchResponseClass = Class of TOrdersCustomBatchResponse;
  2946. { --------------------------------------------------------------------
  2947. TOrdersCustomBatchResponseEntry
  2948. --------------------------------------------------------------------}
  2949. TOrdersCustomBatchResponseEntry = Class(TGoogleBaseObject)
  2950. Private
  2951. FbatchId : integer;
  2952. Ferrors : TErrors;
  2953. FexecutionStatus : String;
  2954. Fkind : String;
  2955. Forder : TOrder;
  2956. Protected
  2957. //Property setters
  2958. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  2959. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  2960. Procedure SetexecutionStatus(AIndex : Integer; const AValue : String); virtual;
  2961. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2962. Procedure Setorder(AIndex : Integer; const AValue : TOrder); virtual;
  2963. Public
  2964. Published
  2965. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  2966. Property errors : TErrors Index 8 Read Ferrors Write Seterrors;
  2967. Property executionStatus : String Index 16 Read FexecutionStatus Write SetexecutionStatus;
  2968. Property kind : String Index 24 Read Fkind Write Setkind;
  2969. Property order : TOrder Index 32 Read Forder Write Setorder;
  2970. end;
  2971. TOrdersCustomBatchResponseEntryClass = Class of TOrdersCustomBatchResponseEntry;
  2972. { --------------------------------------------------------------------
  2973. TOrdersGetByMerchantOrderIdResponse
  2974. --------------------------------------------------------------------}
  2975. TOrdersGetByMerchantOrderIdResponse = Class(TGoogleBaseObject)
  2976. Private
  2977. Fkind : String;
  2978. Forder : TOrder;
  2979. Protected
  2980. //Property setters
  2981. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2982. Procedure Setorder(AIndex : Integer; const AValue : TOrder); virtual;
  2983. Public
  2984. Published
  2985. Property kind : String Index 0 Read Fkind Write Setkind;
  2986. Property order : TOrder Index 8 Read Forder Write Setorder;
  2987. end;
  2988. TOrdersGetByMerchantOrderIdResponseClass = Class of TOrdersGetByMerchantOrderIdResponse;
  2989. { --------------------------------------------------------------------
  2990. TOrdersGetTestOrderTemplateResponse
  2991. --------------------------------------------------------------------}
  2992. TOrdersGetTestOrderTemplateResponse = Class(TGoogleBaseObject)
  2993. Private
  2994. Fkind : String;
  2995. Ftemplate : TTestOrder;
  2996. Protected
  2997. //Property setters
  2998. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2999. Procedure Settemplate(AIndex : Integer; const AValue : TTestOrder); virtual;
  3000. Public
  3001. Published
  3002. Property kind : String Index 0 Read Fkind Write Setkind;
  3003. Property template : TTestOrder Index 8 Read Ftemplate Write Settemplate;
  3004. end;
  3005. TOrdersGetTestOrderTemplateResponseClass = Class of TOrdersGetTestOrderTemplateResponse;
  3006. { --------------------------------------------------------------------
  3007. TOrdersListResponse
  3008. --------------------------------------------------------------------}
  3009. TOrdersListResponse = Class(TGoogleBaseObject)
  3010. Private
  3011. Fkind : String;
  3012. FnextPageToken : String;
  3013. Fresources : TOrdersListResponseTyperesourcesArray;
  3014. Protected
  3015. //Property setters
  3016. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3017. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  3018. Procedure Setresources(AIndex : Integer; const AValue : TOrdersListResponseTyperesourcesArray); virtual;
  3019. //2.6.4. bug workaround
  3020. {$IFDEF VER2_6}
  3021. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3022. {$ENDIF VER2_6}
  3023. Public
  3024. Published
  3025. Property kind : String Index 0 Read Fkind Write Setkind;
  3026. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  3027. Property resources : TOrdersListResponseTyperesourcesArray Index 16 Read Fresources Write Setresources;
  3028. end;
  3029. TOrdersListResponseClass = Class of TOrdersListResponse;
  3030. { --------------------------------------------------------------------
  3031. TOrdersRefundRequest
  3032. --------------------------------------------------------------------}
  3033. TOrdersRefundRequest = Class(TGoogleBaseObject)
  3034. Private
  3035. Famount : TPrice;
  3036. FoperationId : String;
  3037. Freason : String;
  3038. FreasonText : String;
  3039. Protected
  3040. //Property setters
  3041. Procedure Setamount(AIndex : Integer; const AValue : TPrice); virtual;
  3042. Procedure SetoperationId(AIndex : Integer; const AValue : String); virtual;
  3043. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  3044. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  3045. Public
  3046. Published
  3047. Property amount : TPrice Index 0 Read Famount Write Setamount;
  3048. Property operationId : String Index 8 Read FoperationId Write SetoperationId;
  3049. Property reason : String Index 16 Read Freason Write Setreason;
  3050. Property reasonText : String Index 24 Read FreasonText Write SetreasonText;
  3051. end;
  3052. TOrdersRefundRequestClass = Class of TOrdersRefundRequest;
  3053. { --------------------------------------------------------------------
  3054. TOrdersRefundResponse
  3055. --------------------------------------------------------------------}
  3056. TOrdersRefundResponse = Class(TGoogleBaseObject)
  3057. Private
  3058. FexecutionStatus : String;
  3059. Fkind : String;
  3060. Protected
  3061. //Property setters
  3062. Procedure SetexecutionStatus(AIndex : Integer; const AValue : String); virtual;
  3063. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3064. Public
  3065. Published
  3066. Property executionStatus : String Index 0 Read FexecutionStatus Write SetexecutionStatus;
  3067. Property kind : String Index 8 Read Fkind Write Setkind;
  3068. end;
  3069. TOrdersRefundResponseClass = Class of TOrdersRefundResponse;
  3070. { --------------------------------------------------------------------
  3071. TOrdersReturnLineItemRequest
  3072. --------------------------------------------------------------------}
  3073. TOrdersReturnLineItemRequest = Class(TGoogleBaseObject)
  3074. Private
  3075. FlineItemId : String;
  3076. FoperationId : String;
  3077. Fquantity : integer;
  3078. Freason : String;
  3079. FreasonText : String;
  3080. Protected
  3081. //Property setters
  3082. Procedure SetlineItemId(AIndex : Integer; const AValue : String); virtual;
  3083. Procedure SetoperationId(AIndex : Integer; const AValue : String); virtual;
  3084. Procedure Setquantity(AIndex : Integer; const AValue : integer); virtual;
  3085. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  3086. Procedure SetreasonText(AIndex : Integer; const AValue : String); virtual;
  3087. Public
  3088. Published
  3089. Property lineItemId : String Index 0 Read FlineItemId Write SetlineItemId;
  3090. Property operationId : String Index 8 Read FoperationId Write SetoperationId;
  3091. Property quantity : integer Index 16 Read Fquantity Write Setquantity;
  3092. Property reason : String Index 24 Read Freason Write Setreason;
  3093. Property reasonText : String Index 32 Read FreasonText Write SetreasonText;
  3094. end;
  3095. TOrdersReturnLineItemRequestClass = Class of TOrdersReturnLineItemRequest;
  3096. { --------------------------------------------------------------------
  3097. TOrdersReturnLineItemResponse
  3098. --------------------------------------------------------------------}
  3099. TOrdersReturnLineItemResponse = Class(TGoogleBaseObject)
  3100. Private
  3101. FexecutionStatus : String;
  3102. Fkind : String;
  3103. Protected
  3104. //Property setters
  3105. Procedure SetexecutionStatus(AIndex : Integer; const AValue : String); virtual;
  3106. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3107. Public
  3108. Published
  3109. Property executionStatus : String Index 0 Read FexecutionStatus Write SetexecutionStatus;
  3110. Property kind : String Index 8 Read Fkind Write Setkind;
  3111. end;
  3112. TOrdersReturnLineItemResponseClass = Class of TOrdersReturnLineItemResponse;
  3113. { --------------------------------------------------------------------
  3114. TOrdersShipLineItemsRequest
  3115. --------------------------------------------------------------------}
  3116. TOrdersShipLineItemsRequest = Class(TGoogleBaseObject)
  3117. Private
  3118. Fcarrier : String;
  3119. FlineItems : TOrdersShipLineItemsRequestTypelineItemsArray;
  3120. FoperationId : String;
  3121. FshipmentId : String;
  3122. FtrackingId : String;
  3123. Protected
  3124. //Property setters
  3125. Procedure Setcarrier(AIndex : Integer; const AValue : String); virtual;
  3126. Procedure SetlineItems(AIndex : Integer; const AValue : TOrdersShipLineItemsRequestTypelineItemsArray); virtual;
  3127. Procedure SetoperationId(AIndex : Integer; const AValue : String); virtual;
  3128. Procedure SetshipmentId(AIndex : Integer; const AValue : String); virtual;
  3129. Procedure SettrackingId(AIndex : Integer; const AValue : String); virtual;
  3130. //2.6.4. bug workaround
  3131. {$IFDEF VER2_6}
  3132. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3133. {$ENDIF VER2_6}
  3134. Public
  3135. Published
  3136. Property carrier : String Index 0 Read Fcarrier Write Setcarrier;
  3137. Property lineItems : TOrdersShipLineItemsRequestTypelineItemsArray Index 8 Read FlineItems Write SetlineItems;
  3138. Property operationId : String Index 16 Read FoperationId Write SetoperationId;
  3139. Property shipmentId : String Index 24 Read FshipmentId Write SetshipmentId;
  3140. Property trackingId : String Index 32 Read FtrackingId Write SettrackingId;
  3141. end;
  3142. TOrdersShipLineItemsRequestClass = Class of TOrdersShipLineItemsRequest;
  3143. { --------------------------------------------------------------------
  3144. TOrdersShipLineItemsResponse
  3145. --------------------------------------------------------------------}
  3146. TOrdersShipLineItemsResponse = Class(TGoogleBaseObject)
  3147. Private
  3148. FexecutionStatus : String;
  3149. Fkind : String;
  3150. Protected
  3151. //Property setters
  3152. Procedure SetexecutionStatus(AIndex : Integer; const AValue : String); virtual;
  3153. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3154. Public
  3155. Published
  3156. Property executionStatus : String Index 0 Read FexecutionStatus Write SetexecutionStatus;
  3157. Property kind : String Index 8 Read Fkind Write Setkind;
  3158. end;
  3159. TOrdersShipLineItemsResponseClass = Class of TOrdersShipLineItemsResponse;
  3160. { --------------------------------------------------------------------
  3161. TOrdersUpdateMerchantOrderIdRequest
  3162. --------------------------------------------------------------------}
  3163. TOrdersUpdateMerchantOrderIdRequest = Class(TGoogleBaseObject)
  3164. Private
  3165. FmerchantOrderId : String;
  3166. FoperationId : String;
  3167. Protected
  3168. //Property setters
  3169. Procedure SetmerchantOrderId(AIndex : Integer; const AValue : String); virtual;
  3170. Procedure SetoperationId(AIndex : Integer; const AValue : String); virtual;
  3171. Public
  3172. Published
  3173. Property merchantOrderId : String Index 0 Read FmerchantOrderId Write SetmerchantOrderId;
  3174. Property operationId : String Index 8 Read FoperationId Write SetoperationId;
  3175. end;
  3176. TOrdersUpdateMerchantOrderIdRequestClass = Class of TOrdersUpdateMerchantOrderIdRequest;
  3177. { --------------------------------------------------------------------
  3178. TOrdersUpdateMerchantOrderIdResponse
  3179. --------------------------------------------------------------------}
  3180. TOrdersUpdateMerchantOrderIdResponse = Class(TGoogleBaseObject)
  3181. Private
  3182. FexecutionStatus : String;
  3183. Fkind : String;
  3184. Protected
  3185. //Property setters
  3186. Procedure SetexecutionStatus(AIndex : Integer; const AValue : String); virtual;
  3187. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3188. Public
  3189. Published
  3190. Property executionStatus : String Index 0 Read FexecutionStatus Write SetexecutionStatus;
  3191. Property kind : String Index 8 Read Fkind Write Setkind;
  3192. end;
  3193. TOrdersUpdateMerchantOrderIdResponseClass = Class of TOrdersUpdateMerchantOrderIdResponse;
  3194. { --------------------------------------------------------------------
  3195. TOrdersUpdateShipmentRequest
  3196. --------------------------------------------------------------------}
  3197. TOrdersUpdateShipmentRequest = Class(TGoogleBaseObject)
  3198. Private
  3199. Fcarrier : String;
  3200. FoperationId : String;
  3201. FshipmentId : String;
  3202. Fstatus : String;
  3203. FtrackingId : String;
  3204. Protected
  3205. //Property setters
  3206. Procedure Setcarrier(AIndex : Integer; const AValue : String); virtual;
  3207. Procedure SetoperationId(AIndex : Integer; const AValue : String); virtual;
  3208. Procedure SetshipmentId(AIndex : Integer; const AValue : String); virtual;
  3209. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  3210. Procedure SettrackingId(AIndex : Integer; const AValue : String); virtual;
  3211. Public
  3212. Published
  3213. Property carrier : String Index 0 Read Fcarrier Write Setcarrier;
  3214. Property operationId : String Index 8 Read FoperationId Write SetoperationId;
  3215. Property shipmentId : String Index 16 Read FshipmentId Write SetshipmentId;
  3216. Property status : String Index 24 Read Fstatus Write Setstatus;
  3217. Property trackingId : String Index 32 Read FtrackingId Write SettrackingId;
  3218. end;
  3219. TOrdersUpdateShipmentRequestClass = Class of TOrdersUpdateShipmentRequest;
  3220. { --------------------------------------------------------------------
  3221. TOrdersUpdateShipmentResponse
  3222. --------------------------------------------------------------------}
  3223. TOrdersUpdateShipmentResponse = Class(TGoogleBaseObject)
  3224. Private
  3225. FexecutionStatus : String;
  3226. Fkind : String;
  3227. Protected
  3228. //Property setters
  3229. Procedure SetexecutionStatus(AIndex : Integer; const AValue : String); virtual;
  3230. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3231. Public
  3232. Published
  3233. Property executionStatus : String Index 0 Read FexecutionStatus Write SetexecutionStatus;
  3234. Property kind : String Index 8 Read Fkind Write Setkind;
  3235. end;
  3236. TOrdersUpdateShipmentResponseClass = Class of TOrdersUpdateShipmentResponse;
  3237. { --------------------------------------------------------------------
  3238. TPrice
  3239. --------------------------------------------------------------------}
  3240. TPrice = Class(TGoogleBaseObject)
  3241. Private
  3242. Fcurrency : String;
  3243. Fvalue : String;
  3244. Protected
  3245. //Property setters
  3246. Procedure Setcurrency(AIndex : Integer; const AValue : String); virtual;
  3247. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  3248. Public
  3249. Published
  3250. Property currency : String Index 0 Read Fcurrency Write Setcurrency;
  3251. Property value : String Index 8 Read Fvalue Write Setvalue;
  3252. end;
  3253. TPriceClass = Class of TPrice;
  3254. { --------------------------------------------------------------------
  3255. TProduct
  3256. --------------------------------------------------------------------}
  3257. TProduct = Class(TGoogleBaseObject)
  3258. Private
  3259. FadditionalImageLinks : TStringArray;
  3260. Fadult : boolean;
  3261. FadwordsGrouping : String;
  3262. FadwordsLabels : TStringArray;
  3263. FadwordsRedirect : String;
  3264. FageGroup : String;
  3265. Faspects : TProductTypeaspectsArray;
  3266. Favailability : String;
  3267. FavailabilityDate : String;
  3268. Fbrand : String;
  3269. Fchannel : String;
  3270. Fcolor : String;
  3271. Fcondition : String;
  3272. FcontentLanguage : String;
  3273. FcustomAttributes : TProductTypecustomAttributesArray;
  3274. FcustomGroups : TProductTypecustomGroupsArray;
  3275. FcustomLabel0 : String;
  3276. FcustomLabel1 : String;
  3277. FcustomLabel2 : String;
  3278. FcustomLabel3 : String;
  3279. FcustomLabel4 : String;
  3280. Fdescription : String;
  3281. Fdestinations : TProductTypedestinationsArray;
  3282. FdisplayAdsId : String;
  3283. FdisplayAdsLink : String;
  3284. FdisplayAdsSimilarIds : TStringArray;
  3285. FdisplayAdsTitle : String;
  3286. FdisplayAdsValue : double;
  3287. FenergyEfficiencyClass : String;
  3288. FexpirationDate : String;
  3289. Fgender : String;
  3290. FgoogleProductCategory : String;
  3291. Fgtin : String;
  3292. Fid : String;
  3293. FidentifierExists : boolean;
  3294. FimageLink : String;
  3295. Finstallment : TInstallment;
  3296. FisBundle : boolean;
  3297. FitemGroupId : String;
  3298. Fkind : String;
  3299. Flink : String;
  3300. FloyaltyPoints : TLoyaltyPoints;
  3301. Fmaterial : String;
  3302. FmobileLink : String;
  3303. Fmpn : String;
  3304. Fmultipack : String;
  3305. FofferId : String;
  3306. FonlineOnly : boolean;
  3307. Fpattern : String;
  3308. Fprice : TPrice;
  3309. FproductType : String;
  3310. FpromotionIds : TStringArray;
  3311. FsalePrice : TPrice;
  3312. FsalePriceEffectiveDate : String;
  3313. FsellOnGoogleQuantity : String;
  3314. Fshipping : TProductTypeshippingArray;
  3315. FshippingHeight : TProductShippingDimension;
  3316. FshippingLabel : String;
  3317. FshippingLength : TProductShippingDimension;
  3318. FshippingWeight : TProductShippingWeight;
  3319. FshippingWidth : TProductShippingDimension;
  3320. FsizeSystem : String;
  3321. FsizeType : String;
  3322. Fsizes : TStringArray;
  3323. FtargetCountry : String;
  3324. Ftaxes : TProductTypetaxesArray;
  3325. Ftitle : String;
  3326. FunitPricingBaseMeasure : TProductUnitPricingBaseMeasure;
  3327. FunitPricingMeasure : TProductUnitPricingMeasure;
  3328. FvalidatedDestinations : TStringArray;
  3329. Fwarnings : TProductTypewarningsArray;
  3330. Protected
  3331. //Property setters
  3332. Procedure SetadditionalImageLinks(AIndex : Integer; const AValue : TStringArray); virtual;
  3333. Procedure Setadult(AIndex : Integer; const AValue : boolean); virtual;
  3334. Procedure SetadwordsGrouping(AIndex : Integer; const AValue : String); virtual;
  3335. Procedure SetadwordsLabels(AIndex : Integer; const AValue : TStringArray); virtual;
  3336. Procedure SetadwordsRedirect(AIndex : Integer; const AValue : String); virtual;
  3337. Procedure SetageGroup(AIndex : Integer; const AValue : String); virtual;
  3338. Procedure Setaspects(AIndex : Integer; const AValue : TProductTypeaspectsArray); virtual;
  3339. Procedure Setavailability(AIndex : Integer; const AValue : String); virtual;
  3340. Procedure SetavailabilityDate(AIndex : Integer; const AValue : String); virtual;
  3341. Procedure Setbrand(AIndex : Integer; const AValue : String); virtual;
  3342. Procedure Setchannel(AIndex : Integer; const AValue : String); virtual;
  3343. Procedure Setcolor(AIndex : Integer; const AValue : String); virtual;
  3344. Procedure Setcondition(AIndex : Integer; const AValue : String); virtual;
  3345. Procedure SetcontentLanguage(AIndex : Integer; const AValue : String); virtual;
  3346. Procedure SetcustomAttributes(AIndex : Integer; const AValue : TProductTypecustomAttributesArray); virtual;
  3347. Procedure SetcustomGroups(AIndex : Integer; const AValue : TProductTypecustomGroupsArray); virtual;
  3348. Procedure SetcustomLabel0(AIndex : Integer; const AValue : String); virtual;
  3349. Procedure SetcustomLabel1(AIndex : Integer; const AValue : String); virtual;
  3350. Procedure SetcustomLabel2(AIndex : Integer; const AValue : String); virtual;
  3351. Procedure SetcustomLabel3(AIndex : Integer; const AValue : String); virtual;
  3352. Procedure SetcustomLabel4(AIndex : Integer; const AValue : String); virtual;
  3353. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  3354. Procedure Setdestinations(AIndex : Integer; const AValue : TProductTypedestinationsArray); virtual;
  3355. Procedure SetdisplayAdsId(AIndex : Integer; const AValue : String); virtual;
  3356. Procedure SetdisplayAdsLink(AIndex : Integer; const AValue : String); virtual;
  3357. Procedure SetdisplayAdsSimilarIds(AIndex : Integer; const AValue : TStringArray); virtual;
  3358. Procedure SetdisplayAdsTitle(AIndex : Integer; const AValue : String); virtual;
  3359. Procedure SetdisplayAdsValue(AIndex : Integer; const AValue : double); virtual;
  3360. Procedure SetenergyEfficiencyClass(AIndex : Integer; const AValue : String); virtual;
  3361. Procedure SetexpirationDate(AIndex : Integer; const AValue : String); virtual;
  3362. Procedure Setgender(AIndex : Integer; const AValue : String); virtual;
  3363. Procedure SetgoogleProductCategory(AIndex : Integer; const AValue : String); virtual;
  3364. Procedure Setgtin(AIndex : Integer; const AValue : String); virtual;
  3365. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3366. Procedure SetidentifierExists(AIndex : Integer; const AValue : boolean); virtual;
  3367. Procedure SetimageLink(AIndex : Integer; const AValue : String); virtual;
  3368. Procedure Setinstallment(AIndex : Integer; const AValue : TInstallment); virtual;
  3369. Procedure SetisBundle(AIndex : Integer; const AValue : boolean); virtual;
  3370. Procedure SetitemGroupId(AIndex : Integer; const AValue : String); virtual;
  3371. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3372. Procedure Setlink(AIndex : Integer; const AValue : String); virtual;
  3373. Procedure SetloyaltyPoints(AIndex : Integer; const AValue : TLoyaltyPoints); virtual;
  3374. Procedure Setmaterial(AIndex : Integer; const AValue : String); virtual;
  3375. Procedure SetmobileLink(AIndex : Integer; const AValue : String); virtual;
  3376. Procedure Setmpn(AIndex : Integer; const AValue : String); virtual;
  3377. Procedure Setmultipack(AIndex : Integer; const AValue : String); virtual;
  3378. Procedure SetofferId(AIndex : Integer; const AValue : String); virtual;
  3379. Procedure SetonlineOnly(AIndex : Integer; const AValue : boolean); virtual;
  3380. Procedure Setpattern(AIndex : Integer; const AValue : String); virtual;
  3381. Procedure Setprice(AIndex : Integer; const AValue : TPrice); virtual;
  3382. Procedure SetproductType(AIndex : Integer; const AValue : String); virtual;
  3383. Procedure SetpromotionIds(AIndex : Integer; const AValue : TStringArray); virtual;
  3384. Procedure SetsalePrice(AIndex : Integer; const AValue : TPrice); virtual;
  3385. Procedure SetsalePriceEffectiveDate(AIndex : Integer; const AValue : String); virtual;
  3386. Procedure SetsellOnGoogleQuantity(AIndex : Integer; const AValue : String); virtual;
  3387. Procedure Setshipping(AIndex : Integer; const AValue : TProductTypeshippingArray); virtual;
  3388. Procedure SetshippingHeight(AIndex : Integer; const AValue : TProductShippingDimension); virtual;
  3389. Procedure SetshippingLabel(AIndex : Integer; const AValue : String); virtual;
  3390. Procedure SetshippingLength(AIndex : Integer; const AValue : TProductShippingDimension); virtual;
  3391. Procedure SetshippingWeight(AIndex : Integer; const AValue : TProductShippingWeight); virtual;
  3392. Procedure SetshippingWidth(AIndex : Integer; const AValue : TProductShippingDimension); virtual;
  3393. Procedure SetsizeSystem(AIndex : Integer; const AValue : String); virtual;
  3394. Procedure SetsizeType(AIndex : Integer; const AValue : String); virtual;
  3395. Procedure Setsizes(AIndex : Integer; const AValue : TStringArray); virtual;
  3396. Procedure SettargetCountry(AIndex : Integer; const AValue : String); virtual;
  3397. Procedure Settaxes(AIndex : Integer; const AValue : TProductTypetaxesArray); virtual;
  3398. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  3399. Procedure SetunitPricingBaseMeasure(AIndex : Integer; const AValue : TProductUnitPricingBaseMeasure); virtual;
  3400. Procedure SetunitPricingMeasure(AIndex : Integer; const AValue : TProductUnitPricingMeasure); virtual;
  3401. Procedure SetvalidatedDestinations(AIndex : Integer; const AValue : TStringArray); virtual;
  3402. Procedure Setwarnings(AIndex : Integer; const AValue : TProductTypewarningsArray); virtual;
  3403. //2.6.4. bug workaround
  3404. {$IFDEF VER2_6}
  3405. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3406. {$ENDIF VER2_6}
  3407. Public
  3408. Published
  3409. Property additionalImageLinks : TStringArray Index 0 Read FadditionalImageLinks Write SetadditionalImageLinks;
  3410. Property adult : boolean Index 8 Read Fadult Write Setadult;
  3411. Property adwordsGrouping : String Index 16 Read FadwordsGrouping Write SetadwordsGrouping;
  3412. Property adwordsLabels : TStringArray Index 24 Read FadwordsLabels Write SetadwordsLabels;
  3413. Property adwordsRedirect : String Index 32 Read FadwordsRedirect Write SetadwordsRedirect;
  3414. Property ageGroup : String Index 40 Read FageGroup Write SetageGroup;
  3415. Property aspects : TProductTypeaspectsArray Index 48 Read Faspects Write Setaspects;
  3416. Property availability : String Index 56 Read Favailability Write Setavailability;
  3417. Property availabilityDate : String Index 64 Read FavailabilityDate Write SetavailabilityDate;
  3418. Property brand : String Index 72 Read Fbrand Write Setbrand;
  3419. Property channel : String Index 80 Read Fchannel Write Setchannel;
  3420. Property color : String Index 88 Read Fcolor Write Setcolor;
  3421. Property condition : String Index 96 Read Fcondition Write Setcondition;
  3422. Property contentLanguage : String Index 104 Read FcontentLanguage Write SetcontentLanguage;
  3423. Property customAttributes : TProductTypecustomAttributesArray Index 112 Read FcustomAttributes Write SetcustomAttributes;
  3424. Property customGroups : TProductTypecustomGroupsArray Index 120 Read FcustomGroups Write SetcustomGroups;
  3425. Property customLabel0 : String Index 128 Read FcustomLabel0 Write SetcustomLabel0;
  3426. Property customLabel1 : String Index 136 Read FcustomLabel1 Write SetcustomLabel1;
  3427. Property customLabel2 : String Index 144 Read FcustomLabel2 Write SetcustomLabel2;
  3428. Property customLabel3 : String Index 152 Read FcustomLabel3 Write SetcustomLabel3;
  3429. Property customLabel4 : String Index 160 Read FcustomLabel4 Write SetcustomLabel4;
  3430. Property description : String Index 168 Read Fdescription Write Setdescription;
  3431. Property destinations : TProductTypedestinationsArray Index 176 Read Fdestinations Write Setdestinations;
  3432. Property displayAdsId : String Index 184 Read FdisplayAdsId Write SetdisplayAdsId;
  3433. Property displayAdsLink : String Index 192 Read FdisplayAdsLink Write SetdisplayAdsLink;
  3434. Property displayAdsSimilarIds : TStringArray Index 200 Read FdisplayAdsSimilarIds Write SetdisplayAdsSimilarIds;
  3435. Property displayAdsTitle : String Index 208 Read FdisplayAdsTitle Write SetdisplayAdsTitle;
  3436. Property displayAdsValue : double Index 216 Read FdisplayAdsValue Write SetdisplayAdsValue;
  3437. Property energyEfficiencyClass : String Index 224 Read FenergyEfficiencyClass Write SetenergyEfficiencyClass;
  3438. Property expirationDate : String Index 232 Read FexpirationDate Write SetexpirationDate;
  3439. Property gender : String Index 240 Read Fgender Write Setgender;
  3440. Property googleProductCategory : String Index 248 Read FgoogleProductCategory Write SetgoogleProductCategory;
  3441. Property gtin : String Index 256 Read Fgtin Write Setgtin;
  3442. Property id : String Index 264 Read Fid Write Setid;
  3443. Property identifierExists : boolean Index 272 Read FidentifierExists Write SetidentifierExists;
  3444. Property imageLink : String Index 280 Read FimageLink Write SetimageLink;
  3445. Property installment : TInstallment Index 288 Read Finstallment Write Setinstallment;
  3446. Property isBundle : boolean Index 296 Read FisBundle Write SetisBundle;
  3447. Property itemGroupId : String Index 304 Read FitemGroupId Write SetitemGroupId;
  3448. Property kind : String Index 312 Read Fkind Write Setkind;
  3449. Property link : String Index 320 Read Flink Write Setlink;
  3450. Property loyaltyPoints : TLoyaltyPoints Index 328 Read FloyaltyPoints Write SetloyaltyPoints;
  3451. Property material : String Index 336 Read Fmaterial Write Setmaterial;
  3452. Property mobileLink : String Index 344 Read FmobileLink Write SetmobileLink;
  3453. Property mpn : String Index 352 Read Fmpn Write Setmpn;
  3454. Property multipack : String Index 360 Read Fmultipack Write Setmultipack;
  3455. Property offerId : String Index 368 Read FofferId Write SetofferId;
  3456. Property onlineOnly : boolean Index 376 Read FonlineOnly Write SetonlineOnly;
  3457. Property pattern : String Index 384 Read Fpattern Write Setpattern;
  3458. Property price : TPrice Index 392 Read Fprice Write Setprice;
  3459. Property productType : String Index 400 Read FproductType Write SetproductType;
  3460. Property promotionIds : TStringArray Index 408 Read FpromotionIds Write SetpromotionIds;
  3461. Property salePrice : TPrice Index 416 Read FsalePrice Write SetsalePrice;
  3462. Property salePriceEffectiveDate : String Index 424 Read FsalePriceEffectiveDate Write SetsalePriceEffectiveDate;
  3463. Property sellOnGoogleQuantity : String Index 432 Read FsellOnGoogleQuantity Write SetsellOnGoogleQuantity;
  3464. Property shipping : TProductTypeshippingArray Index 440 Read Fshipping Write Setshipping;
  3465. Property shippingHeight : TProductShippingDimension Index 448 Read FshippingHeight Write SetshippingHeight;
  3466. Property shippingLabel : String Index 456 Read FshippingLabel Write SetshippingLabel;
  3467. Property shippingLength : TProductShippingDimension Index 464 Read FshippingLength Write SetshippingLength;
  3468. Property shippingWeight : TProductShippingWeight Index 472 Read FshippingWeight Write SetshippingWeight;
  3469. Property shippingWidth : TProductShippingDimension Index 480 Read FshippingWidth Write SetshippingWidth;
  3470. Property sizeSystem : String Index 488 Read FsizeSystem Write SetsizeSystem;
  3471. Property sizeType : String Index 496 Read FsizeType Write SetsizeType;
  3472. Property sizes : TStringArray Index 504 Read Fsizes Write Setsizes;
  3473. Property targetCountry : String Index 512 Read FtargetCountry Write SettargetCountry;
  3474. Property taxes : TProductTypetaxesArray Index 520 Read Ftaxes Write Settaxes;
  3475. Property title : String Index 528 Read Ftitle Write Settitle;
  3476. Property unitPricingBaseMeasure : TProductUnitPricingBaseMeasure Index 536 Read FunitPricingBaseMeasure Write SetunitPricingBaseMeasure;
  3477. Property unitPricingMeasure : TProductUnitPricingMeasure Index 544 Read FunitPricingMeasure Write SetunitPricingMeasure;
  3478. Property validatedDestinations : TStringArray Index 552 Read FvalidatedDestinations Write SetvalidatedDestinations;
  3479. Property warnings : TProductTypewarningsArray Index 560 Read Fwarnings Write Setwarnings;
  3480. end;
  3481. TProductClass = Class of TProduct;
  3482. { --------------------------------------------------------------------
  3483. TProductAspect
  3484. --------------------------------------------------------------------}
  3485. TProductAspect = Class(TGoogleBaseObject)
  3486. Private
  3487. FaspectName : String;
  3488. FdestinationName : String;
  3489. Fintention : String;
  3490. Protected
  3491. //Property setters
  3492. Procedure SetaspectName(AIndex : Integer; const AValue : String); virtual;
  3493. Procedure SetdestinationName(AIndex : Integer; const AValue : String); virtual;
  3494. Procedure Setintention(AIndex : Integer; const AValue : String); virtual;
  3495. Public
  3496. Published
  3497. Property aspectName : String Index 0 Read FaspectName Write SetaspectName;
  3498. Property destinationName : String Index 8 Read FdestinationName Write SetdestinationName;
  3499. Property intention : String Index 16 Read Fintention Write Setintention;
  3500. end;
  3501. TProductAspectClass = Class of TProductAspect;
  3502. { --------------------------------------------------------------------
  3503. TProductCustomAttribute
  3504. --------------------------------------------------------------------}
  3505. TProductCustomAttribute = Class(TGoogleBaseObject)
  3506. Private
  3507. Fname : String;
  3508. F_type : String;
  3509. F_unit : String;
  3510. Fvalue : String;
  3511. Protected
  3512. Class Function ExportPropertyName(Const AName : String) : string; override;
  3513. //Property setters
  3514. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  3515. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  3516. Procedure Set_unit(AIndex : Integer; const AValue : String); virtual;
  3517. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  3518. Public
  3519. Published
  3520. Property name : String Index 0 Read Fname Write Setname;
  3521. Property _type : String Index 8 Read F_type Write Set_type;
  3522. Property _unit : String Index 16 Read F_unit Write Set_unit;
  3523. Property value : String Index 24 Read Fvalue Write Setvalue;
  3524. end;
  3525. TProductCustomAttributeClass = Class of TProductCustomAttribute;
  3526. { --------------------------------------------------------------------
  3527. TProductCustomGroup
  3528. --------------------------------------------------------------------}
  3529. TProductCustomGroup = Class(TGoogleBaseObject)
  3530. Private
  3531. Fattributes : TProductCustomGroupTypeattributesArray;
  3532. Fname : String;
  3533. Protected
  3534. //Property setters
  3535. Procedure Setattributes(AIndex : Integer; const AValue : TProductCustomGroupTypeattributesArray); virtual;
  3536. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  3537. //2.6.4. bug workaround
  3538. {$IFDEF VER2_6}
  3539. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3540. {$ENDIF VER2_6}
  3541. Public
  3542. Published
  3543. Property attributes : TProductCustomGroupTypeattributesArray Index 0 Read Fattributes Write Setattributes;
  3544. Property name : String Index 8 Read Fname Write Setname;
  3545. end;
  3546. TProductCustomGroupClass = Class of TProductCustomGroup;
  3547. { --------------------------------------------------------------------
  3548. TProductDestination
  3549. --------------------------------------------------------------------}
  3550. TProductDestination = Class(TGoogleBaseObject)
  3551. Private
  3552. FdestinationName : String;
  3553. Fintention : String;
  3554. Protected
  3555. //Property setters
  3556. Procedure SetdestinationName(AIndex : Integer; const AValue : String); virtual;
  3557. Procedure Setintention(AIndex : Integer; const AValue : String); virtual;
  3558. Public
  3559. Published
  3560. Property destinationName : String Index 0 Read FdestinationName Write SetdestinationName;
  3561. Property intention : String Index 8 Read Fintention Write Setintention;
  3562. end;
  3563. TProductDestinationClass = Class of TProductDestination;
  3564. { --------------------------------------------------------------------
  3565. TProductShipping
  3566. --------------------------------------------------------------------}
  3567. TProductShipping = Class(TGoogleBaseObject)
  3568. Private
  3569. Fcountry : String;
  3570. FlocationGroupName : String;
  3571. FlocationId : String;
  3572. FpostalCode : String;
  3573. Fprice : TPrice;
  3574. Fregion : String;
  3575. Fservice : String;
  3576. Protected
  3577. //Property setters
  3578. Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
  3579. Procedure SetlocationGroupName(AIndex : Integer; const AValue : String); virtual;
  3580. Procedure SetlocationId(AIndex : Integer; const AValue : String); virtual;
  3581. Procedure SetpostalCode(AIndex : Integer; const AValue : String); virtual;
  3582. Procedure Setprice(AIndex : Integer; const AValue : TPrice); virtual;
  3583. Procedure Setregion(AIndex : Integer; const AValue : String); virtual;
  3584. Procedure Setservice(AIndex : Integer; const AValue : String); virtual;
  3585. Public
  3586. Published
  3587. Property country : String Index 0 Read Fcountry Write Setcountry;
  3588. Property locationGroupName : String Index 8 Read FlocationGroupName Write SetlocationGroupName;
  3589. Property locationId : String Index 16 Read FlocationId Write SetlocationId;
  3590. Property postalCode : String Index 24 Read FpostalCode Write SetpostalCode;
  3591. Property price : TPrice Index 32 Read Fprice Write Setprice;
  3592. Property region : String Index 40 Read Fregion Write Setregion;
  3593. Property service : String Index 48 Read Fservice Write Setservice;
  3594. end;
  3595. TProductShippingClass = Class of TProductShipping;
  3596. { --------------------------------------------------------------------
  3597. TProductShippingDimension
  3598. --------------------------------------------------------------------}
  3599. TProductShippingDimension = Class(TGoogleBaseObject)
  3600. Private
  3601. F_unit : String;
  3602. Fvalue : double;
  3603. Protected
  3604. Class Function ExportPropertyName(Const AName : String) : string; override;
  3605. //Property setters
  3606. Procedure Set_unit(AIndex : Integer; const AValue : String); virtual;
  3607. Procedure Setvalue(AIndex : Integer; const AValue : double); virtual;
  3608. Public
  3609. Published
  3610. Property _unit : String Index 0 Read F_unit Write Set_unit;
  3611. Property value : double Index 8 Read Fvalue Write Setvalue;
  3612. end;
  3613. TProductShippingDimensionClass = Class of TProductShippingDimension;
  3614. { --------------------------------------------------------------------
  3615. TProductShippingWeight
  3616. --------------------------------------------------------------------}
  3617. TProductShippingWeight = Class(TGoogleBaseObject)
  3618. Private
  3619. F_unit : String;
  3620. Fvalue : double;
  3621. Protected
  3622. Class Function ExportPropertyName(Const AName : String) : string; override;
  3623. //Property setters
  3624. Procedure Set_unit(AIndex : Integer; const AValue : String); virtual;
  3625. Procedure Setvalue(AIndex : Integer; const AValue : double); virtual;
  3626. Public
  3627. Published
  3628. Property _unit : String Index 0 Read F_unit Write Set_unit;
  3629. Property value : double Index 8 Read Fvalue Write Setvalue;
  3630. end;
  3631. TProductShippingWeightClass = Class of TProductShippingWeight;
  3632. { --------------------------------------------------------------------
  3633. TProductStatus
  3634. --------------------------------------------------------------------}
  3635. TProductStatus = Class(TGoogleBaseObject)
  3636. Private
  3637. FcreationDate : String;
  3638. FdataQualityIssues : TProductStatusTypedataQualityIssuesArray;
  3639. FdestinationStatuses : TProductStatusTypedestinationStatusesArray;
  3640. FgoogleExpirationDate : String;
  3641. Fkind : String;
  3642. FlastUpdateDate : String;
  3643. Flink : String;
  3644. FproductId : String;
  3645. Ftitle : String;
  3646. Protected
  3647. //Property setters
  3648. Procedure SetcreationDate(AIndex : Integer; const AValue : String); virtual;
  3649. Procedure SetdataQualityIssues(AIndex : Integer; const AValue : TProductStatusTypedataQualityIssuesArray); virtual;
  3650. Procedure SetdestinationStatuses(AIndex : Integer; const AValue : TProductStatusTypedestinationStatusesArray); virtual;
  3651. Procedure SetgoogleExpirationDate(AIndex : Integer; const AValue : String); virtual;
  3652. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3653. Procedure SetlastUpdateDate(AIndex : Integer; const AValue : String); virtual;
  3654. Procedure Setlink(AIndex : Integer; const AValue : String); virtual;
  3655. Procedure SetproductId(AIndex : Integer; const AValue : String); virtual;
  3656. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  3657. //2.6.4. bug workaround
  3658. {$IFDEF VER2_6}
  3659. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3660. {$ENDIF VER2_6}
  3661. Public
  3662. Published
  3663. Property creationDate : String Index 0 Read FcreationDate Write SetcreationDate;
  3664. Property dataQualityIssues : TProductStatusTypedataQualityIssuesArray Index 8 Read FdataQualityIssues Write SetdataQualityIssues;
  3665. Property destinationStatuses : TProductStatusTypedestinationStatusesArray Index 16 Read FdestinationStatuses Write SetdestinationStatuses;
  3666. Property googleExpirationDate : String Index 24 Read FgoogleExpirationDate Write SetgoogleExpirationDate;
  3667. Property kind : String Index 32 Read Fkind Write Setkind;
  3668. Property lastUpdateDate : String Index 40 Read FlastUpdateDate Write SetlastUpdateDate;
  3669. Property link : String Index 48 Read Flink Write Setlink;
  3670. Property productId : String Index 56 Read FproductId Write SetproductId;
  3671. Property title : String Index 64 Read Ftitle Write Settitle;
  3672. end;
  3673. TProductStatusClass = Class of TProductStatus;
  3674. { --------------------------------------------------------------------
  3675. TProductStatusDataQualityIssue
  3676. --------------------------------------------------------------------}
  3677. TProductStatusDataQualityIssue = Class(TGoogleBaseObject)
  3678. Private
  3679. Fdetail : String;
  3680. FfetchStatus : String;
  3681. Fid : String;
  3682. Flocation : String;
  3683. Fseverity : String;
  3684. Ftimestamp : String;
  3685. FvalueOnLandingPage : String;
  3686. FvalueProvided : String;
  3687. Protected
  3688. //Property setters
  3689. Procedure Setdetail(AIndex : Integer; const AValue : String); virtual;
  3690. Procedure SetfetchStatus(AIndex : Integer; const AValue : String); virtual;
  3691. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3692. Procedure Setlocation(AIndex : Integer; const AValue : String); virtual;
  3693. Procedure Setseverity(AIndex : Integer; const AValue : String); virtual;
  3694. Procedure Settimestamp(AIndex : Integer; const AValue : String); virtual;
  3695. Procedure SetvalueOnLandingPage(AIndex : Integer; const AValue : String); virtual;
  3696. Procedure SetvalueProvided(AIndex : Integer; const AValue : String); virtual;
  3697. Public
  3698. Published
  3699. Property detail : String Index 0 Read Fdetail Write Setdetail;
  3700. Property fetchStatus : String Index 8 Read FfetchStatus Write SetfetchStatus;
  3701. Property id : String Index 16 Read Fid Write Setid;
  3702. Property location : String Index 24 Read Flocation Write Setlocation;
  3703. Property severity : String Index 32 Read Fseverity Write Setseverity;
  3704. Property timestamp : String Index 40 Read Ftimestamp Write Settimestamp;
  3705. Property valueOnLandingPage : String Index 48 Read FvalueOnLandingPage Write SetvalueOnLandingPage;
  3706. Property valueProvided : String Index 56 Read FvalueProvided Write SetvalueProvided;
  3707. end;
  3708. TProductStatusDataQualityIssueClass = Class of TProductStatusDataQualityIssue;
  3709. { --------------------------------------------------------------------
  3710. TProductStatusDestinationStatus
  3711. --------------------------------------------------------------------}
  3712. TProductStatusDestinationStatus = Class(TGoogleBaseObject)
  3713. Private
  3714. FapprovalStatus : String;
  3715. Fdestination : String;
  3716. Fintention : String;
  3717. Protected
  3718. //Property setters
  3719. Procedure SetapprovalStatus(AIndex : Integer; const AValue : String); virtual;
  3720. Procedure Setdestination(AIndex : Integer; const AValue : String); virtual;
  3721. Procedure Setintention(AIndex : Integer; const AValue : String); virtual;
  3722. Public
  3723. Published
  3724. Property approvalStatus : String Index 0 Read FapprovalStatus Write SetapprovalStatus;
  3725. Property destination : String Index 8 Read Fdestination Write Setdestination;
  3726. Property intention : String Index 16 Read Fintention Write Setintention;
  3727. end;
  3728. TProductStatusDestinationStatusClass = Class of TProductStatusDestinationStatus;
  3729. { --------------------------------------------------------------------
  3730. TProductTax
  3731. --------------------------------------------------------------------}
  3732. TProductTax = Class(TGoogleBaseObject)
  3733. Private
  3734. Fcountry : String;
  3735. FlocationId : String;
  3736. FpostalCode : String;
  3737. Frate : double;
  3738. Fregion : String;
  3739. FtaxShip : boolean;
  3740. Protected
  3741. //Property setters
  3742. Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
  3743. Procedure SetlocationId(AIndex : Integer; const AValue : String); virtual;
  3744. Procedure SetpostalCode(AIndex : Integer; const AValue : String); virtual;
  3745. Procedure Setrate(AIndex : Integer; const AValue : double); virtual;
  3746. Procedure Setregion(AIndex : Integer; const AValue : String); virtual;
  3747. Procedure SettaxShip(AIndex : Integer; const AValue : boolean); virtual;
  3748. Public
  3749. Published
  3750. Property country : String Index 0 Read Fcountry Write Setcountry;
  3751. Property locationId : String Index 8 Read FlocationId Write SetlocationId;
  3752. Property postalCode : String Index 16 Read FpostalCode Write SetpostalCode;
  3753. Property rate : double Index 24 Read Frate Write Setrate;
  3754. Property region : String Index 32 Read Fregion Write Setregion;
  3755. Property taxShip : boolean Index 40 Read FtaxShip Write SettaxShip;
  3756. end;
  3757. TProductTaxClass = Class of TProductTax;
  3758. { --------------------------------------------------------------------
  3759. TProductUnitPricingBaseMeasure
  3760. --------------------------------------------------------------------}
  3761. TProductUnitPricingBaseMeasure = Class(TGoogleBaseObject)
  3762. Private
  3763. F_unit : String;
  3764. Fvalue : String;
  3765. Protected
  3766. Class Function ExportPropertyName(Const AName : String) : string; override;
  3767. //Property setters
  3768. Procedure Set_unit(AIndex : Integer; const AValue : String); virtual;
  3769. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  3770. Public
  3771. Published
  3772. Property _unit : String Index 0 Read F_unit Write Set_unit;
  3773. Property value : String Index 8 Read Fvalue Write Setvalue;
  3774. end;
  3775. TProductUnitPricingBaseMeasureClass = Class of TProductUnitPricingBaseMeasure;
  3776. { --------------------------------------------------------------------
  3777. TProductUnitPricingMeasure
  3778. --------------------------------------------------------------------}
  3779. TProductUnitPricingMeasure = Class(TGoogleBaseObject)
  3780. Private
  3781. F_unit : String;
  3782. Fvalue : double;
  3783. Protected
  3784. Class Function ExportPropertyName(Const AName : String) : string; override;
  3785. //Property setters
  3786. Procedure Set_unit(AIndex : Integer; const AValue : String); virtual;
  3787. Procedure Setvalue(AIndex : Integer; const AValue : double); virtual;
  3788. Public
  3789. Published
  3790. Property _unit : String Index 0 Read F_unit Write Set_unit;
  3791. Property value : double Index 8 Read Fvalue Write Setvalue;
  3792. end;
  3793. TProductUnitPricingMeasureClass = Class of TProductUnitPricingMeasure;
  3794. { --------------------------------------------------------------------
  3795. TProductsCustomBatchRequest
  3796. --------------------------------------------------------------------}
  3797. TProductsCustomBatchRequest = Class(TGoogleBaseObject)
  3798. Private
  3799. Fentries : TProductsCustomBatchRequestTypeentriesArray;
  3800. Protected
  3801. //Property setters
  3802. Procedure Setentries(AIndex : Integer; const AValue : TProductsCustomBatchRequestTypeentriesArray); virtual;
  3803. //2.6.4. bug workaround
  3804. {$IFDEF VER2_6}
  3805. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3806. {$ENDIF VER2_6}
  3807. Public
  3808. Published
  3809. Property entries : TProductsCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  3810. end;
  3811. TProductsCustomBatchRequestClass = Class of TProductsCustomBatchRequest;
  3812. { --------------------------------------------------------------------
  3813. TProductsCustomBatchRequestEntry
  3814. --------------------------------------------------------------------}
  3815. TProductsCustomBatchRequestEntry = Class(TGoogleBaseObject)
  3816. Private
  3817. FbatchId : integer;
  3818. FmerchantId : String;
  3819. Fmethod : String;
  3820. Fproduct : TProduct;
  3821. FproductId : String;
  3822. Protected
  3823. //Property setters
  3824. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  3825. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  3826. Procedure Setmethod(AIndex : Integer; const AValue : String); virtual;
  3827. Procedure Setproduct(AIndex : Integer; const AValue : TProduct); virtual;
  3828. Procedure SetproductId(AIndex : Integer; const AValue : String); virtual;
  3829. Public
  3830. Published
  3831. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  3832. Property merchantId : String Index 8 Read FmerchantId Write SetmerchantId;
  3833. Property method : String Index 16 Read Fmethod Write Setmethod;
  3834. Property product : TProduct Index 24 Read Fproduct Write Setproduct;
  3835. Property productId : String Index 32 Read FproductId Write SetproductId;
  3836. end;
  3837. TProductsCustomBatchRequestEntryClass = Class of TProductsCustomBatchRequestEntry;
  3838. { --------------------------------------------------------------------
  3839. TProductsCustomBatchResponse
  3840. --------------------------------------------------------------------}
  3841. TProductsCustomBatchResponse = Class(TGoogleBaseObject)
  3842. Private
  3843. Fentries : TProductsCustomBatchResponseTypeentriesArray;
  3844. Fkind : String;
  3845. Protected
  3846. //Property setters
  3847. Procedure Setentries(AIndex : Integer; const AValue : TProductsCustomBatchResponseTypeentriesArray); virtual;
  3848. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3849. //2.6.4. bug workaround
  3850. {$IFDEF VER2_6}
  3851. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3852. {$ENDIF VER2_6}
  3853. Public
  3854. Published
  3855. Property entries : TProductsCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  3856. Property kind : String Index 8 Read Fkind Write Setkind;
  3857. end;
  3858. TProductsCustomBatchResponseClass = Class of TProductsCustomBatchResponse;
  3859. { --------------------------------------------------------------------
  3860. TProductsCustomBatchResponseEntry
  3861. --------------------------------------------------------------------}
  3862. TProductsCustomBatchResponseEntry = Class(TGoogleBaseObject)
  3863. Private
  3864. FbatchId : integer;
  3865. Ferrors : TErrors;
  3866. Fkind : String;
  3867. Fproduct : TProduct;
  3868. Protected
  3869. //Property setters
  3870. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  3871. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  3872. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3873. Procedure Setproduct(AIndex : Integer; const AValue : TProduct); virtual;
  3874. Public
  3875. Published
  3876. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  3877. Property errors : TErrors Index 8 Read Ferrors Write Seterrors;
  3878. Property kind : String Index 16 Read Fkind Write Setkind;
  3879. Property product : TProduct Index 24 Read Fproduct Write Setproduct;
  3880. end;
  3881. TProductsCustomBatchResponseEntryClass = Class of TProductsCustomBatchResponseEntry;
  3882. { --------------------------------------------------------------------
  3883. TProductsListResponse
  3884. --------------------------------------------------------------------}
  3885. TProductsListResponse = Class(TGoogleBaseObject)
  3886. Private
  3887. Fkind : String;
  3888. FnextPageToken : String;
  3889. Fresources : TProductsListResponseTyperesourcesArray;
  3890. Protected
  3891. //Property setters
  3892. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3893. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  3894. Procedure Setresources(AIndex : Integer; const AValue : TProductsListResponseTyperesourcesArray); virtual;
  3895. //2.6.4. bug workaround
  3896. {$IFDEF VER2_6}
  3897. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3898. {$ENDIF VER2_6}
  3899. Public
  3900. Published
  3901. Property kind : String Index 0 Read Fkind Write Setkind;
  3902. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  3903. Property resources : TProductsListResponseTyperesourcesArray Index 16 Read Fresources Write Setresources;
  3904. end;
  3905. TProductsListResponseClass = Class of TProductsListResponse;
  3906. { --------------------------------------------------------------------
  3907. TProductstatusesCustomBatchRequest
  3908. --------------------------------------------------------------------}
  3909. TProductstatusesCustomBatchRequest = Class(TGoogleBaseObject)
  3910. Private
  3911. Fentries : TProductstatusesCustomBatchRequestTypeentriesArray;
  3912. Protected
  3913. //Property setters
  3914. Procedure Setentries(AIndex : Integer; const AValue : TProductstatusesCustomBatchRequestTypeentriesArray); virtual;
  3915. //2.6.4. bug workaround
  3916. {$IFDEF VER2_6}
  3917. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3918. {$ENDIF VER2_6}
  3919. Public
  3920. Published
  3921. Property entries : TProductstatusesCustomBatchRequestTypeentriesArray Index 0 Read Fentries Write Setentries;
  3922. end;
  3923. TProductstatusesCustomBatchRequestClass = Class of TProductstatusesCustomBatchRequest;
  3924. { --------------------------------------------------------------------
  3925. TProductstatusesCustomBatchRequestEntry
  3926. --------------------------------------------------------------------}
  3927. TProductstatusesCustomBatchRequestEntry = Class(TGoogleBaseObject)
  3928. Private
  3929. FbatchId : integer;
  3930. FmerchantId : String;
  3931. Fmethod : String;
  3932. FproductId : String;
  3933. Protected
  3934. //Property setters
  3935. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  3936. Procedure SetmerchantId(AIndex : Integer; const AValue : String); virtual;
  3937. Procedure Setmethod(AIndex : Integer; const AValue : String); virtual;
  3938. Procedure SetproductId(AIndex : Integer; const AValue : String); virtual;
  3939. Public
  3940. Published
  3941. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  3942. Property merchantId : String Index 8 Read FmerchantId Write SetmerchantId;
  3943. Property method : String Index 16 Read Fmethod Write Setmethod;
  3944. Property productId : String Index 24 Read FproductId Write SetproductId;
  3945. end;
  3946. TProductstatusesCustomBatchRequestEntryClass = Class of TProductstatusesCustomBatchRequestEntry;
  3947. { --------------------------------------------------------------------
  3948. TProductstatusesCustomBatchResponse
  3949. --------------------------------------------------------------------}
  3950. TProductstatusesCustomBatchResponse = Class(TGoogleBaseObject)
  3951. Private
  3952. Fentries : TProductstatusesCustomBatchResponseTypeentriesArray;
  3953. Fkind : String;
  3954. Protected
  3955. //Property setters
  3956. Procedure Setentries(AIndex : Integer; const AValue : TProductstatusesCustomBatchResponseTypeentriesArray); virtual;
  3957. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3958. //2.6.4. bug workaround
  3959. {$IFDEF VER2_6}
  3960. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3961. {$ENDIF VER2_6}
  3962. Public
  3963. Published
  3964. Property entries : TProductstatusesCustomBatchResponseTypeentriesArray Index 0 Read Fentries Write Setentries;
  3965. Property kind : String Index 8 Read Fkind Write Setkind;
  3966. end;
  3967. TProductstatusesCustomBatchResponseClass = Class of TProductstatusesCustomBatchResponse;
  3968. { --------------------------------------------------------------------
  3969. TProductstatusesCustomBatchResponseEntry
  3970. --------------------------------------------------------------------}
  3971. TProductstatusesCustomBatchResponseEntry = Class(TGoogleBaseObject)
  3972. Private
  3973. FbatchId : integer;
  3974. Ferrors : TErrors;
  3975. Fkind : String;
  3976. FproductStatus : TProductStatus;
  3977. Protected
  3978. //Property setters
  3979. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  3980. Procedure Seterrors(AIndex : Integer; const AValue : TErrors); virtual;
  3981. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3982. Procedure SetproductStatus(AIndex : Integer; const AValue : TProductStatus); virtual;
  3983. Public
  3984. Published
  3985. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  3986. Property errors : TErrors Index 8 Read Ferrors Write Seterrors;
  3987. Property kind : String Index 16 Read Fkind Write Setkind;
  3988. Property productStatus : TProductStatus Index 24 Read FproductStatus Write SetproductStatus;
  3989. end;
  3990. TProductstatusesCustomBatchResponseEntryClass = Class of TProductstatusesCustomBatchResponseEntry;
  3991. { --------------------------------------------------------------------
  3992. TProductstatusesListResponse
  3993. --------------------------------------------------------------------}
  3994. TProductstatusesListResponse = Class(TGoogleBaseObject)
  3995. Private
  3996. Fkind : String;
  3997. FnextPageToken : String;
  3998. Fresources : TProductstatusesListResponseTyperesourcesArray;
  3999. Protected
  4000. //Property setters
  4001. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4002. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  4003. Procedure Setresources(AIndex : Integer; const AValue : TProductstatusesListResponseTyperesourcesArray); virtual;
  4004. //2.6.4. bug workaround
  4005. {$IFDEF VER2_6}
  4006. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4007. {$ENDIF VER2_6}
  4008. Public
  4009. Published
  4010. Property kind : String Index 0 Read Fkind Write Setkind;
  4011. Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
  4012. Property resources : TProductstatusesListResponseTyperesourcesArray Index 16 Read Fresources Write Setresources;
  4013. end;
  4014. TProductstatusesListResponseClass = Class of TProductstatusesListResponse;
  4015. { --------------------------------------------------------------------
  4016. TTestOrder
  4017. --------------------------------------------------------------------}
  4018. TTestOrder = Class(TGoogleBaseObject)
  4019. Private
  4020. Fcustomer : TTestOrderCustomer;
  4021. Fkind : String;
  4022. FlineItems : TTestOrderTypelineItemsArray;
  4023. FpaymentMethod : TTestOrderPaymentMethod;
  4024. FpredefinedDeliveryAddress : String;
  4025. Fpromotions : TTestOrderTypepromotionsArray;
  4026. FshippingCost : TPrice;
  4027. FshippingCostTax : TPrice;
  4028. FshippingOption : String;
  4029. Protected
  4030. //Property setters
  4031. Procedure Setcustomer(AIndex : Integer; const AValue : TTestOrderCustomer); virtual;
  4032. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4033. Procedure SetlineItems(AIndex : Integer; const AValue : TTestOrderTypelineItemsArray); virtual;
  4034. Procedure SetpaymentMethod(AIndex : Integer; const AValue : TTestOrderPaymentMethod); virtual;
  4035. Procedure SetpredefinedDeliveryAddress(AIndex : Integer; const AValue : String); virtual;
  4036. Procedure Setpromotions(AIndex : Integer; const AValue : TTestOrderTypepromotionsArray); virtual;
  4037. Procedure SetshippingCost(AIndex : Integer; const AValue : TPrice); virtual;
  4038. Procedure SetshippingCostTax(AIndex : Integer; const AValue : TPrice); virtual;
  4039. Procedure SetshippingOption(AIndex : Integer; const AValue : String); virtual;
  4040. //2.6.4. bug workaround
  4041. {$IFDEF VER2_6}
  4042. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4043. {$ENDIF VER2_6}
  4044. Public
  4045. Published
  4046. Property customer : TTestOrderCustomer Index 0 Read Fcustomer Write Setcustomer;
  4047. Property kind : String Index 8 Read Fkind Write Setkind;
  4048. Property lineItems : TTestOrderTypelineItemsArray Index 16 Read FlineItems Write SetlineItems;
  4049. Property paymentMethod : TTestOrderPaymentMethod Index 24 Read FpaymentMethod Write SetpaymentMethod;
  4050. Property predefinedDeliveryAddress : String Index 32 Read FpredefinedDeliveryAddress Write SetpredefinedDeliveryAddress;
  4051. Property promotions : TTestOrderTypepromotionsArray Index 40 Read Fpromotions Write Setpromotions;
  4052. Property shippingCost : TPrice Index 48 Read FshippingCost Write SetshippingCost;
  4053. Property shippingCostTax : TPrice Index 56 Read FshippingCostTax Write SetshippingCostTax;
  4054. Property shippingOption : String Index 64 Read FshippingOption Write SetshippingOption;
  4055. end;
  4056. TTestOrderClass = Class of TTestOrder;
  4057. { --------------------------------------------------------------------
  4058. TTestOrderCustomer
  4059. --------------------------------------------------------------------}
  4060. TTestOrderCustomer = Class(TGoogleBaseObject)
  4061. Private
  4062. Femail : String;
  4063. FexplicitMarketingPreference : boolean;
  4064. FfullName : String;
  4065. Protected
  4066. //Property setters
  4067. Procedure Setemail(AIndex : Integer; const AValue : String); virtual;
  4068. Procedure SetexplicitMarketingPreference(AIndex : Integer; const AValue : boolean); virtual;
  4069. Procedure SetfullName(AIndex : Integer; const AValue : String); virtual;
  4070. Public
  4071. Published
  4072. Property email : String Index 0 Read Femail Write Setemail;
  4073. Property explicitMarketingPreference : boolean Index 8 Read FexplicitMarketingPreference Write SetexplicitMarketingPreference;
  4074. Property fullName : String Index 16 Read FfullName Write SetfullName;
  4075. end;
  4076. TTestOrderCustomerClass = Class of TTestOrderCustomer;
  4077. { --------------------------------------------------------------------
  4078. TTestOrderLineItem
  4079. --------------------------------------------------------------------}
  4080. TTestOrderLineItem = Class(TGoogleBaseObject)
  4081. Private
  4082. Fproduct : TTestOrderLineItemProduct;
  4083. FquantityOrdered : integer;
  4084. FreturnInfo : TOrderLineItemReturnInfo;
  4085. FshippingDetails : TOrderLineItemShippingDetails;
  4086. FunitTax : TPrice;
  4087. Protected
  4088. //Property setters
  4089. Procedure Setproduct(AIndex : Integer; const AValue : TTestOrderLineItemProduct); virtual;
  4090. Procedure SetquantityOrdered(AIndex : Integer; const AValue : integer); virtual;
  4091. Procedure SetreturnInfo(AIndex : Integer; const AValue : TOrderLineItemReturnInfo); virtual;
  4092. Procedure SetshippingDetails(AIndex : Integer; const AValue : TOrderLineItemShippingDetails); virtual;
  4093. Procedure SetunitTax(AIndex : Integer; const AValue : TPrice); virtual;
  4094. Public
  4095. Published
  4096. Property product : TTestOrderLineItemProduct Index 0 Read Fproduct Write Setproduct;
  4097. Property quantityOrdered : integer Index 8 Read FquantityOrdered Write SetquantityOrdered;
  4098. Property returnInfo : TOrderLineItemReturnInfo Index 16 Read FreturnInfo Write SetreturnInfo;
  4099. Property shippingDetails : TOrderLineItemShippingDetails Index 24 Read FshippingDetails Write SetshippingDetails;
  4100. Property unitTax : TPrice Index 32 Read FunitTax Write SetunitTax;
  4101. end;
  4102. TTestOrderLineItemClass = Class of TTestOrderLineItem;
  4103. { --------------------------------------------------------------------
  4104. TTestOrderLineItemProduct
  4105. --------------------------------------------------------------------}
  4106. TTestOrderLineItemProduct = Class(TGoogleBaseObject)
  4107. Private
  4108. Fbrand : String;
  4109. Fchannel : String;
  4110. Fcondition : String;
  4111. FcontentLanguage : String;
  4112. Fgtin : String;
  4113. FimageLink : String;
  4114. FitemGroupId : String;
  4115. Fmpn : String;
  4116. FofferId : String;
  4117. Fprice : TPrice;
  4118. FtargetCountry : String;
  4119. Ftitle : String;
  4120. FvariantAttributes : TTestOrderLineItemProductTypevariantAttributesArray;
  4121. Protected
  4122. //Property setters
  4123. Procedure Setbrand(AIndex : Integer; const AValue : String); virtual;
  4124. Procedure Setchannel(AIndex : Integer; const AValue : String); virtual;
  4125. Procedure Setcondition(AIndex : Integer; const AValue : String); virtual;
  4126. Procedure SetcontentLanguage(AIndex : Integer; const AValue : String); virtual;
  4127. Procedure Setgtin(AIndex : Integer; const AValue : String); virtual;
  4128. Procedure SetimageLink(AIndex : Integer; const AValue : String); virtual;
  4129. Procedure SetitemGroupId(AIndex : Integer; const AValue : String); virtual;
  4130. Procedure Setmpn(AIndex : Integer; const AValue : String); virtual;
  4131. Procedure SetofferId(AIndex : Integer; const AValue : String); virtual;
  4132. Procedure Setprice(AIndex : Integer; const AValue : TPrice); virtual;
  4133. Procedure SettargetCountry(AIndex : Integer; const AValue : String); virtual;
  4134. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  4135. Procedure SetvariantAttributes(AIndex : Integer; const AValue : TTestOrderLineItemProductTypevariantAttributesArray); virtual;
  4136. //2.6.4. bug workaround
  4137. {$IFDEF VER2_6}
  4138. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4139. {$ENDIF VER2_6}
  4140. Public
  4141. Published
  4142. Property brand : String Index 0 Read Fbrand Write Setbrand;
  4143. Property channel : String Index 8 Read Fchannel Write Setchannel;
  4144. Property condition : String Index 16 Read Fcondition Write Setcondition;
  4145. Property contentLanguage : String Index 24 Read FcontentLanguage Write SetcontentLanguage;
  4146. Property gtin : String Index 32 Read Fgtin Write Setgtin;
  4147. Property imageLink : String Index 40 Read FimageLink Write SetimageLink;
  4148. Property itemGroupId : String Index 48 Read FitemGroupId Write SetitemGroupId;
  4149. Property mpn : String Index 56 Read Fmpn Write Setmpn;
  4150. Property offerId : String Index 64 Read FofferId Write SetofferId;
  4151. Property price : TPrice Index 72 Read Fprice Write Setprice;
  4152. Property targetCountry : String Index 80 Read FtargetCountry Write SettargetCountry;
  4153. Property title : String Index 88 Read Ftitle Write Settitle;
  4154. Property variantAttributes : TTestOrderLineItemProductTypevariantAttributesArray Index 96 Read FvariantAttributes Write SetvariantAttributes;
  4155. end;
  4156. TTestOrderLineItemProductClass = Class of TTestOrderLineItemProduct;
  4157. { --------------------------------------------------------------------
  4158. TTestOrderPaymentMethod
  4159. --------------------------------------------------------------------}
  4160. TTestOrderPaymentMethod = Class(TGoogleBaseObject)
  4161. Private
  4162. FexpirationMonth : integer;
  4163. FexpirationYear : integer;
  4164. FlastFourDigits : String;
  4165. FpredefinedBillingAddress : String;
  4166. F_type : String;
  4167. Protected
  4168. Class Function ExportPropertyName(Const AName : String) : string; override;
  4169. //Property setters
  4170. Procedure SetexpirationMonth(AIndex : Integer; const AValue : integer); virtual;
  4171. Procedure SetexpirationYear(AIndex : Integer; const AValue : integer); virtual;
  4172. Procedure SetlastFourDigits(AIndex : Integer; const AValue : String); virtual;
  4173. Procedure SetpredefinedBillingAddress(AIndex : Integer; const AValue : String); virtual;
  4174. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  4175. Public
  4176. Published
  4177. Property expirationMonth : integer Index 0 Read FexpirationMonth Write SetexpirationMonth;
  4178. Property expirationYear : integer Index 8 Read FexpirationYear Write SetexpirationYear;
  4179. Property lastFourDigits : String Index 16 Read FlastFourDigits Write SetlastFourDigits;
  4180. Property predefinedBillingAddress : String Index 24 Read FpredefinedBillingAddress Write SetpredefinedBillingAddress;
  4181. Property _type : String Index 32 Read F_type Write Set_type;
  4182. end;
  4183. TTestOrderPaymentMethodClass = Class of TTestOrderPaymentMethod;
  4184. { --------------------------------------------------------------------
  4185. TWeight
  4186. --------------------------------------------------------------------}
  4187. TWeight = Class(TGoogleBaseObject)
  4188. Private
  4189. F_unit : String;
  4190. Fvalue : String;
  4191. Protected
  4192. Class Function ExportPropertyName(Const AName : String) : string; override;
  4193. //Property setters
  4194. Procedure Set_unit(AIndex : Integer; const AValue : String); virtual;
  4195. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  4196. Public
  4197. Published
  4198. Property _unit : String Index 0 Read F_unit Write Set_unit;
  4199. Property value : String Index 8 Read Fvalue Write Setvalue;
  4200. end;
  4201. TWeightClass = Class of TWeight;
  4202. { --------------------------------------------------------------------
  4203. TAccountsResource
  4204. --------------------------------------------------------------------}
  4205. //Optional query Options for TAccountsResource, method Custombatch
  4206. TAccountsCustombatchOptions = Record
  4207. dryRun : boolean;
  4208. end;
  4209. //Optional query Options for TAccountsResource, method Delete
  4210. TAccountsDeleteOptions = Record
  4211. dryRun : boolean;
  4212. end;
  4213. //Optional query Options for TAccountsResource, method Insert
  4214. TAccountsInsertOptions = Record
  4215. dryRun : boolean;
  4216. end;
  4217. //Optional query Options for TAccountsResource, method List
  4218. TAccountsListOptions = Record
  4219. maxResults : integer;
  4220. pageToken : String;
  4221. end;
  4222. //Optional query Options for TAccountsResource, method Patch
  4223. TAccountsPatchOptions = Record
  4224. dryRun : boolean;
  4225. end;
  4226. //Optional query Options for TAccountsResource, method Update
  4227. TAccountsUpdateOptions = Record
  4228. dryRun : boolean;
  4229. end;
  4230. TAccountsResource = Class(TGoogleResource)
  4231. Public
  4232. Class Function ResourceName : String; override;
  4233. Class Function DefaultAPI : TGoogleAPIClass; override;
  4234. Function Authinfo : TAccountsAuthInfoResponse;
  4235. Function Custombatch(aAccountsCustomBatchRequest : TAccountsCustomBatchRequest; AQuery : string = '') : TAccountsCustomBatchResponse;
  4236. Function Custombatch(aAccountsCustomBatchRequest : TAccountsCustomBatchRequest; AQuery : TAccountscustombatchOptions) : TAccountsCustomBatchResponse;
  4237. Procedure Delete(accountId: string; merchantId: string; AQuery : string = '');
  4238. Procedure Delete(accountId: string; merchantId: string; AQuery : TAccountsdeleteOptions);
  4239. Function Get(accountId: string; merchantId: string) : TAccount;
  4240. Function Insert(merchantId: string; aAccount : TAccount; AQuery : string = '') : TAccount;
  4241. Function Insert(merchantId: string; aAccount : TAccount; AQuery : TAccountsinsertOptions) : TAccount;
  4242. Function List(merchantId: string; AQuery : string = '') : TAccountsListResponse;
  4243. Function List(merchantId: string; AQuery : TAccountslistOptions) : TAccountsListResponse;
  4244. Function Patch(accountId: string; merchantId: string; aAccount : TAccount; AQuery : string = '') : TAccount;
  4245. Function Patch(accountId: string; merchantId: string; aAccount : TAccount; AQuery : TAccountspatchOptions) : TAccount;
  4246. Function Update(accountId: string; merchantId: string; aAccount : TAccount; AQuery : string = '') : TAccount;
  4247. Function Update(accountId: string; merchantId: string; aAccount : TAccount; AQuery : TAccountsupdateOptions) : TAccount;
  4248. end;
  4249. { --------------------------------------------------------------------
  4250. TAccountshippingResource
  4251. --------------------------------------------------------------------}
  4252. //Optional query Options for TAccountshippingResource, method Custombatch
  4253. TAccountshippingCustombatchOptions = Record
  4254. dryRun : boolean;
  4255. end;
  4256. //Optional query Options for TAccountshippingResource, method List
  4257. TAccountshippingListOptions = Record
  4258. maxResults : integer;
  4259. pageToken : String;
  4260. end;
  4261. //Optional query Options for TAccountshippingResource, method Patch
  4262. TAccountshippingPatchOptions = Record
  4263. dryRun : boolean;
  4264. end;
  4265. //Optional query Options for TAccountshippingResource, method Update
  4266. TAccountshippingUpdateOptions = Record
  4267. dryRun : boolean;
  4268. end;
  4269. TAccountshippingResource = Class(TGoogleResource)
  4270. Public
  4271. Class Function ResourceName : String; override;
  4272. Class Function DefaultAPI : TGoogleAPIClass; override;
  4273. Function Custombatch(aAccountshippingCustomBatchRequest : TAccountshippingCustomBatchRequest; AQuery : string = '') : TAccountshippingCustomBatchResponse;
  4274. Function Custombatch(aAccountshippingCustomBatchRequest : TAccountshippingCustomBatchRequest; AQuery : TAccountshippingcustombatchOptions) : TAccountshippingCustomBatchResponse;
  4275. Function Get(accountId: string; merchantId: string) : TAccountShipping;
  4276. Function List(merchantId: string; AQuery : string = '') : TAccountshippingListResponse;
  4277. Function List(merchantId: string; AQuery : TAccountshippinglistOptions) : TAccountshippingListResponse;
  4278. Function Patch(accountId: string; merchantId: string; aAccountShipping : TAccountShipping; AQuery : string = '') : TAccountShipping;
  4279. Function Patch(accountId: string; merchantId: string; aAccountShipping : TAccountShipping; AQuery : TAccountshippingpatchOptions) : TAccountShipping;
  4280. Function Update(accountId: string; merchantId: string; aAccountShipping : TAccountShipping; AQuery : string = '') : TAccountShipping;
  4281. Function Update(accountId: string; merchantId: string; aAccountShipping : TAccountShipping; AQuery : TAccountshippingupdateOptions) : TAccountShipping;
  4282. end;
  4283. { --------------------------------------------------------------------
  4284. TAccountstatusesResource
  4285. --------------------------------------------------------------------}
  4286. //Optional query Options for TAccountstatusesResource, method List
  4287. TAccountstatusesListOptions = Record
  4288. maxResults : integer;
  4289. pageToken : String;
  4290. end;
  4291. TAccountstatusesResource = Class(TGoogleResource)
  4292. Public
  4293. Class Function ResourceName : String; override;
  4294. Class Function DefaultAPI : TGoogleAPIClass; override;
  4295. Function Custombatch(aAccountstatusesCustomBatchRequest : TAccountstatusesCustomBatchRequest) : TAccountstatusesCustomBatchResponse;
  4296. Function Get(accountId: string; merchantId: string) : TAccountStatus;
  4297. Function List(merchantId: string; AQuery : string = '') : TAccountstatusesListResponse;
  4298. Function List(merchantId: string; AQuery : TAccountstatuseslistOptions) : TAccountstatusesListResponse;
  4299. end;
  4300. { --------------------------------------------------------------------
  4301. TAccounttaxResource
  4302. --------------------------------------------------------------------}
  4303. //Optional query Options for TAccounttaxResource, method Custombatch
  4304. TAccounttaxCustombatchOptions = Record
  4305. dryRun : boolean;
  4306. end;
  4307. //Optional query Options for TAccounttaxResource, method List
  4308. TAccounttaxListOptions = Record
  4309. maxResults : integer;
  4310. pageToken : String;
  4311. end;
  4312. //Optional query Options for TAccounttaxResource, method Patch
  4313. TAccounttaxPatchOptions = Record
  4314. dryRun : boolean;
  4315. end;
  4316. //Optional query Options for TAccounttaxResource, method Update
  4317. TAccounttaxUpdateOptions = Record
  4318. dryRun : boolean;
  4319. end;
  4320. TAccounttaxResource = Class(TGoogleResource)
  4321. Public
  4322. Class Function ResourceName : String; override;
  4323. Class Function DefaultAPI : TGoogleAPIClass; override;
  4324. Function Custombatch(aAccounttaxCustomBatchRequest : TAccounttaxCustomBatchRequest; AQuery : string = '') : TAccounttaxCustomBatchResponse;
  4325. Function Custombatch(aAccounttaxCustomBatchRequest : TAccounttaxCustomBatchRequest; AQuery : TAccounttaxcustombatchOptions) : TAccounttaxCustomBatchResponse;
  4326. Function Get(accountId: string; merchantId: string) : TAccountTax;
  4327. Function List(merchantId: string; AQuery : string = '') : TAccounttaxListResponse;
  4328. Function List(merchantId: string; AQuery : TAccounttaxlistOptions) : TAccounttaxListResponse;
  4329. Function Patch(accountId: string; merchantId: string; aAccountTax : TAccountTax; AQuery : string = '') : TAccountTax;
  4330. Function Patch(accountId: string; merchantId: string; aAccountTax : TAccountTax; AQuery : TAccounttaxpatchOptions) : TAccountTax;
  4331. Function Update(accountId: string; merchantId: string; aAccountTax : TAccountTax; AQuery : string = '') : TAccountTax;
  4332. Function Update(accountId: string; merchantId: string; aAccountTax : TAccountTax; AQuery : TAccounttaxupdateOptions) : TAccountTax;
  4333. end;
  4334. { --------------------------------------------------------------------
  4335. TDatafeedsResource
  4336. --------------------------------------------------------------------}
  4337. //Optional query Options for TDatafeedsResource, method Custombatch
  4338. TDatafeedsCustombatchOptions = Record
  4339. dryRun : boolean;
  4340. end;
  4341. //Optional query Options for TDatafeedsResource, method Delete
  4342. TDatafeedsDeleteOptions = Record
  4343. dryRun : boolean;
  4344. end;
  4345. //Optional query Options for TDatafeedsResource, method Insert
  4346. TDatafeedsInsertOptions = Record
  4347. dryRun : boolean;
  4348. end;
  4349. //Optional query Options for TDatafeedsResource, method List
  4350. TDatafeedsListOptions = Record
  4351. maxResults : integer;
  4352. pageToken : String;
  4353. end;
  4354. //Optional query Options for TDatafeedsResource, method Patch
  4355. TDatafeedsPatchOptions = Record
  4356. dryRun : boolean;
  4357. end;
  4358. //Optional query Options for TDatafeedsResource, method Update
  4359. TDatafeedsUpdateOptions = Record
  4360. dryRun : boolean;
  4361. end;
  4362. TDatafeedsResource = Class(TGoogleResource)
  4363. Public
  4364. Class Function ResourceName : String; override;
  4365. Class Function DefaultAPI : TGoogleAPIClass; override;
  4366. Function Custombatch(aDatafeedsCustomBatchRequest : TDatafeedsCustomBatchRequest; AQuery : string = '') : TDatafeedsCustomBatchResponse;
  4367. Function Custombatch(aDatafeedsCustomBatchRequest : TDatafeedsCustomBatchRequest; AQuery : TDatafeedscustombatchOptions) : TDatafeedsCustomBatchResponse;
  4368. Procedure Delete(datafeedId: string; merchantId: string; AQuery : string = '');
  4369. Procedure Delete(datafeedId: string; merchantId: string; AQuery : TDatafeedsdeleteOptions);
  4370. Function Get(datafeedId: string; merchantId: string) : TDatafeed;
  4371. Function Insert(merchantId: string; aDatafeed : TDatafeed; AQuery : string = '') : TDatafeed;
  4372. Function Insert(merchantId: string; aDatafeed : TDatafeed; AQuery : TDatafeedsinsertOptions) : TDatafeed;
  4373. Function List(merchantId: string; AQuery : string = '') : TDatafeedsListResponse;
  4374. Function List(merchantId: string; AQuery : TDatafeedslistOptions) : TDatafeedsListResponse;
  4375. Function Patch(datafeedId: string; merchantId: string; aDatafeed : TDatafeed; AQuery : string = '') : TDatafeed;
  4376. Function Patch(datafeedId: string; merchantId: string; aDatafeed : TDatafeed; AQuery : TDatafeedspatchOptions) : TDatafeed;
  4377. Function Update(datafeedId: string; merchantId: string; aDatafeed : TDatafeed; AQuery : string = '') : TDatafeed;
  4378. Function Update(datafeedId: string; merchantId: string; aDatafeed : TDatafeed; AQuery : TDatafeedsupdateOptions) : TDatafeed;
  4379. end;
  4380. { --------------------------------------------------------------------
  4381. TDatafeedstatusesResource
  4382. --------------------------------------------------------------------}
  4383. //Optional query Options for TDatafeedstatusesResource, method List
  4384. TDatafeedstatusesListOptions = Record
  4385. maxResults : integer;
  4386. pageToken : String;
  4387. end;
  4388. TDatafeedstatusesResource = Class(TGoogleResource)
  4389. Public
  4390. Class Function ResourceName : String; override;
  4391. Class Function DefaultAPI : TGoogleAPIClass; override;
  4392. Function Custombatch(aDatafeedstatusesCustomBatchRequest : TDatafeedstatusesCustomBatchRequest) : TDatafeedstatusesCustomBatchResponse;
  4393. Function Get(datafeedId: string; merchantId: string) : TDatafeedStatus;
  4394. Function List(merchantId: string; AQuery : string = '') : TDatafeedstatusesListResponse;
  4395. Function List(merchantId: string; AQuery : TDatafeedstatuseslistOptions) : TDatafeedstatusesListResponse;
  4396. end;
  4397. { --------------------------------------------------------------------
  4398. TInventoryResource
  4399. --------------------------------------------------------------------}
  4400. //Optional query Options for TInventoryResource, method Custombatch
  4401. TInventoryCustombatchOptions = Record
  4402. dryRun : boolean;
  4403. end;
  4404. //Optional query Options for TInventoryResource, method Set
  4405. TInventorySetOptions = Record
  4406. dryRun : boolean;
  4407. end;
  4408. TInventoryResource = Class(TGoogleResource)
  4409. Public
  4410. Class Function ResourceName : String; override;
  4411. Class Function DefaultAPI : TGoogleAPIClass; override;
  4412. Function Custombatch(aInventoryCustomBatchRequest : TInventoryCustomBatchRequest; AQuery : string = '') : TInventoryCustomBatchResponse;
  4413. Function Custombatch(aInventoryCustomBatchRequest : TInventoryCustomBatchRequest; AQuery : TInventorycustombatchOptions) : TInventoryCustomBatchResponse;
  4414. Function _set(merchantId: string; productId: string; storeCode: string; aInventorySetRequest : TInventorySetRequest; AQuery : string = '') : TInventorySetResponse;
  4415. Function _set(merchantId: string; productId: string; storeCode: string; aInventorySetRequest : TInventorySetRequest; AQuery : TInventorysetOptions) : TInventorySetResponse;
  4416. end;
  4417. { --------------------------------------------------------------------
  4418. TOrdersResource
  4419. --------------------------------------------------------------------}
  4420. //Optional query Options for TOrdersResource, method List
  4421. TOrdersListOptions = Record
  4422. acknowledged : boolean;
  4423. maxResults : integer;
  4424. orderBy : String;
  4425. pageToken : String;
  4426. placedDateEnd : String;
  4427. placedDateStart : String;
  4428. statuses : String;
  4429. end;
  4430. TOrdersResource = Class(TGoogleResource)
  4431. Public
  4432. Class Function ResourceName : String; override;
  4433. Class Function DefaultAPI : TGoogleAPIClass; override;
  4434. Function Acknowledge(merchantId: string; orderId: string; aOrdersAcknowledgeRequest : TOrdersAcknowledgeRequest) : TOrdersAcknowledgeResponse;
  4435. Function Advancetestorder(merchantId: string; orderId: string) : TOrdersAdvanceTestOrderResponse;
  4436. Function Cancel(merchantId: string; orderId: string; aOrdersCancelRequest : TOrdersCancelRequest) : TOrdersCancelResponse;
  4437. Function Cancellineitem(merchantId: string; orderId: string; aOrdersCancelLineItemRequest : TOrdersCancelLineItemRequest) : TOrdersCancelLineItemResponse;
  4438. Function Createtestorder(merchantId: string; aOrdersCreateTestOrderRequest : TOrdersCreateTestOrderRequest) : TOrdersCreateTestOrderResponse;
  4439. Function Custombatch(aOrdersCustomBatchRequest : TOrdersCustomBatchRequest) : TOrdersCustomBatchResponse;
  4440. Function Get(merchantId: string; orderId: string) : TOrder;
  4441. Function Getbymerchantorderid(merchantId: string; merchantOrderId: string) : TOrdersGetByMerchantOrderIdResponse;
  4442. Function Gettestordertemplate(merchantId: string; templateName: string) : TOrdersGetTestOrderTemplateResponse;
  4443. Function List(merchantId: string; AQuery : string = '') : TOrdersListResponse;
  4444. Function List(merchantId: string; AQuery : TOrderslistOptions) : TOrdersListResponse;
  4445. Function Refund(merchantId: string; orderId: string; aOrdersRefundRequest : TOrdersRefundRequest) : TOrdersRefundResponse;
  4446. Function Returnlineitem(merchantId: string; orderId: string; aOrdersReturnLineItemRequest : TOrdersReturnLineItemRequest) : TOrdersReturnLineItemResponse;
  4447. Function Shiplineitems(merchantId: string; orderId: string; aOrdersShipLineItemsRequest : TOrdersShipLineItemsRequest) : TOrdersShipLineItemsResponse;
  4448. Function Updatemerchantorderid(merchantId: string; orderId: string; aOrdersUpdateMerchantOrderIdRequest : TOrdersUpdateMerchantOrderIdRequest) : TOrdersUpdateMerchantOrderIdResponse;
  4449. Function Updateshipment(merchantId: string; orderId: string; aOrdersUpdateShipmentRequest : TOrdersUpdateShipmentRequest) : TOrdersUpdateShipmentResponse;
  4450. end;
  4451. { --------------------------------------------------------------------
  4452. TProductsResource
  4453. --------------------------------------------------------------------}
  4454. //Optional query Options for TProductsResource, method Custombatch
  4455. TProductsCustombatchOptions = Record
  4456. dryRun : boolean;
  4457. end;
  4458. //Optional query Options for TProductsResource, method Delete
  4459. TProductsDeleteOptions = Record
  4460. dryRun : boolean;
  4461. end;
  4462. //Optional query Options for TProductsResource, method Insert
  4463. TProductsInsertOptions = Record
  4464. dryRun : boolean;
  4465. end;
  4466. //Optional query Options for TProductsResource, method List
  4467. TProductsListOptions = Record
  4468. includeInvalidInsertedItems : boolean;
  4469. maxResults : integer;
  4470. pageToken : String;
  4471. end;
  4472. TProductsResource = Class(TGoogleResource)
  4473. Public
  4474. Class Function ResourceName : String; override;
  4475. Class Function DefaultAPI : TGoogleAPIClass; override;
  4476. Function Custombatch(aProductsCustomBatchRequest : TProductsCustomBatchRequest; AQuery : string = '') : TProductsCustomBatchResponse;
  4477. Function Custombatch(aProductsCustomBatchRequest : TProductsCustomBatchRequest; AQuery : TProductscustombatchOptions) : TProductsCustomBatchResponse;
  4478. Procedure Delete(merchantId: string; productId: string; AQuery : string = '');
  4479. Procedure Delete(merchantId: string; productId: string; AQuery : TProductsdeleteOptions);
  4480. Function Get(merchantId: string; productId: string) : TProduct;
  4481. Function Insert(merchantId: string; aProduct : TProduct; AQuery : string = '') : TProduct;
  4482. Function Insert(merchantId: string; aProduct : TProduct; AQuery : TProductsinsertOptions) : TProduct;
  4483. Function List(merchantId: string; AQuery : string = '') : TProductsListResponse;
  4484. Function List(merchantId: string; AQuery : TProductslistOptions) : TProductsListResponse;
  4485. end;
  4486. { --------------------------------------------------------------------
  4487. TProductstatusesResource
  4488. --------------------------------------------------------------------}
  4489. //Optional query Options for TProductstatusesResource, method List
  4490. TProductstatusesListOptions = Record
  4491. includeInvalidInsertedItems : boolean;
  4492. maxResults : integer;
  4493. pageToken : String;
  4494. end;
  4495. TProductstatusesResource = Class(TGoogleResource)
  4496. Public
  4497. Class Function ResourceName : String; override;
  4498. Class Function DefaultAPI : TGoogleAPIClass; override;
  4499. Function Custombatch(aProductstatusesCustomBatchRequest : TProductstatusesCustomBatchRequest) : TProductstatusesCustomBatchResponse;
  4500. Function Get(merchantId: string; productId: string) : TProductStatus;
  4501. Function List(merchantId: string; AQuery : string = '') : TProductstatusesListResponse;
  4502. Function List(merchantId: string; AQuery : TProductstatuseslistOptions) : TProductstatusesListResponse;
  4503. end;
  4504. { --------------------------------------------------------------------
  4505. TContentAPI
  4506. --------------------------------------------------------------------}
  4507. TContentAPI = Class(TGoogleAPI)
  4508. Private
  4509. FAccountsInstance : TAccountsResource;
  4510. FAccountshippingInstance : TAccountshippingResource;
  4511. FAccountstatusesInstance : TAccountstatusesResource;
  4512. FAccounttaxInstance : TAccounttaxResource;
  4513. FDatafeedsInstance : TDatafeedsResource;
  4514. FDatafeedstatusesInstance : TDatafeedstatusesResource;
  4515. FInventoryInstance : TInventoryResource;
  4516. FOrdersInstance : TOrdersResource;
  4517. FProductsInstance : TProductsResource;
  4518. FProductstatusesInstance : TProductstatusesResource;
  4519. Function GetAccountsInstance : TAccountsResource;virtual;
  4520. Function GetAccountshippingInstance : TAccountshippingResource;virtual;
  4521. Function GetAccountstatusesInstance : TAccountstatusesResource;virtual;
  4522. Function GetAccounttaxInstance : TAccounttaxResource;virtual;
  4523. Function GetDatafeedsInstance : TDatafeedsResource;virtual;
  4524. Function GetDatafeedstatusesInstance : TDatafeedstatusesResource;virtual;
  4525. Function GetInventoryInstance : TInventoryResource;virtual;
  4526. Function GetOrdersInstance : TOrdersResource;virtual;
  4527. Function GetProductsInstance : TProductsResource;virtual;
  4528. Function GetProductstatusesInstance : TProductstatusesResource;virtual;
  4529. Public
  4530. //Override class functions with API info
  4531. Class Function APIName : String; override;
  4532. Class Function APIVersion : String; override;
  4533. Class Function APIRevision : String; override;
  4534. Class Function APIID : String; override;
  4535. Class Function APITitle : String; override;
  4536. Class Function APIDescription : String; override;
  4537. Class Function APIOwnerDomain : String; override;
  4538. Class Function APIOwnerName : String; override;
  4539. Class Function APIIcon16 : String; override;
  4540. Class Function APIIcon32 : String; override;
  4541. Class Function APIdocumentationLink : String; override;
  4542. Class Function APIrootUrl : string; override;
  4543. Class Function APIbasePath : string;override;
  4544. Class Function APIbaseURL : String;override;
  4545. Class Function APIProtocol : string;override;
  4546. Class Function APIservicePath : string;override;
  4547. Class Function APIbatchPath : String;override;
  4548. Class Function APIAuthScopes : TScopeInfoArray;override;
  4549. Class Function APINeedsAuth : Boolean;override;
  4550. Class Procedure RegisterAPIResources; override;
  4551. //Add create function for resources
  4552. Function CreateAccountsResource(AOwner : TComponent) : TAccountsResource;virtual;overload;
  4553. Function CreateAccountsResource : TAccountsResource;virtual;overload;
  4554. Function CreateAccountshippingResource(AOwner : TComponent) : TAccountshippingResource;virtual;overload;
  4555. Function CreateAccountshippingResource : TAccountshippingResource;virtual;overload;
  4556. Function CreateAccountstatusesResource(AOwner : TComponent) : TAccountstatusesResource;virtual;overload;
  4557. Function CreateAccountstatusesResource : TAccountstatusesResource;virtual;overload;
  4558. Function CreateAccounttaxResource(AOwner : TComponent) : TAccounttaxResource;virtual;overload;
  4559. Function CreateAccounttaxResource : TAccounttaxResource;virtual;overload;
  4560. Function CreateDatafeedsResource(AOwner : TComponent) : TDatafeedsResource;virtual;overload;
  4561. Function CreateDatafeedsResource : TDatafeedsResource;virtual;overload;
  4562. Function CreateDatafeedstatusesResource(AOwner : TComponent) : TDatafeedstatusesResource;virtual;overload;
  4563. Function CreateDatafeedstatusesResource : TDatafeedstatusesResource;virtual;overload;
  4564. Function CreateInventoryResource(AOwner : TComponent) : TInventoryResource;virtual;overload;
  4565. Function CreateInventoryResource : TInventoryResource;virtual;overload;
  4566. Function CreateOrdersResource(AOwner : TComponent) : TOrdersResource;virtual;overload;
  4567. Function CreateOrdersResource : TOrdersResource;virtual;overload;
  4568. Function CreateProductsResource(AOwner : TComponent) : TProductsResource;virtual;overload;
  4569. Function CreateProductsResource : TProductsResource;virtual;overload;
  4570. Function CreateProductstatusesResource(AOwner : TComponent) : TProductstatusesResource;virtual;overload;
  4571. Function CreateProductstatusesResource : TProductstatusesResource;virtual;overload;
  4572. //Add default on-demand instances for resources
  4573. Property AccountsResource : TAccountsResource Read GetAccountsInstance;
  4574. Property AccountshippingResource : TAccountshippingResource Read GetAccountshippingInstance;
  4575. Property AccountstatusesResource : TAccountstatusesResource Read GetAccountstatusesInstance;
  4576. Property AccounttaxResource : TAccounttaxResource Read GetAccounttaxInstance;
  4577. Property DatafeedsResource : TDatafeedsResource Read GetDatafeedsInstance;
  4578. Property DatafeedstatusesResource : TDatafeedstatusesResource Read GetDatafeedstatusesInstance;
  4579. Property InventoryResource : TInventoryResource Read GetInventoryInstance;
  4580. Property OrdersResource : TOrdersResource Read GetOrdersInstance;
  4581. Property ProductsResource : TProductsResource Read GetProductsInstance;
  4582. Property ProductstatusesResource : TProductstatusesResource Read GetProductstatusesInstance;
  4583. end;
  4584. implementation
  4585. { --------------------------------------------------------------------
  4586. TAccount
  4587. --------------------------------------------------------------------}
  4588. Procedure TAccount.SetadultContent(AIndex : Integer; const AValue : boolean);
  4589. begin
  4590. If (FadultContent=AValue) then exit;
  4591. FadultContent:=AValue;
  4592. MarkPropertyChanged(AIndex);
  4593. end;
  4594. Procedure TAccount.SetadwordsLinks(AIndex : Integer; const AValue : TAccountTypeadwordsLinksArray);
  4595. begin
  4596. If (FadwordsLinks=AValue) then exit;
  4597. FadwordsLinks:=AValue;
  4598. MarkPropertyChanged(AIndex);
  4599. end;
  4600. Procedure TAccount.Setid(AIndex : Integer; const AValue : String);
  4601. begin
  4602. If (Fid=AValue) then exit;
  4603. Fid:=AValue;
  4604. MarkPropertyChanged(AIndex);
  4605. end;
  4606. Procedure TAccount.Setkind(AIndex : Integer; const AValue : String);
  4607. begin
  4608. If (Fkind=AValue) then exit;
  4609. Fkind:=AValue;
  4610. MarkPropertyChanged(AIndex);
  4611. end;
  4612. Procedure TAccount.Setname(AIndex : Integer; const AValue : String);
  4613. begin
  4614. If (Fname=AValue) then exit;
  4615. Fname:=AValue;
  4616. MarkPropertyChanged(AIndex);
  4617. end;
  4618. Procedure TAccount.SetreviewsUrl(AIndex : Integer; const AValue : String);
  4619. begin
  4620. If (FreviewsUrl=AValue) then exit;
  4621. FreviewsUrl:=AValue;
  4622. MarkPropertyChanged(AIndex);
  4623. end;
  4624. Procedure TAccount.SetsellerId(AIndex : Integer; const AValue : String);
  4625. begin
  4626. If (FsellerId=AValue) then exit;
  4627. FsellerId:=AValue;
  4628. MarkPropertyChanged(AIndex);
  4629. end;
  4630. Procedure TAccount.Setusers(AIndex : Integer; const AValue : TAccountTypeusersArray);
  4631. begin
  4632. If (Fusers=AValue) then exit;
  4633. Fusers:=AValue;
  4634. MarkPropertyChanged(AIndex);
  4635. end;
  4636. Procedure TAccount.SetwebsiteUrl(AIndex : Integer; const AValue : String);
  4637. begin
  4638. If (FwebsiteUrl=AValue) then exit;
  4639. FwebsiteUrl:=AValue;
  4640. MarkPropertyChanged(AIndex);
  4641. end;
  4642. //2.6.4. bug workaround
  4643. {$IFDEF VER2_6}
  4644. Procedure TAccount.SetArrayLength(Const AName : String; ALength : Longint);
  4645. begin
  4646. Case AName of
  4647. 'adwordslinks' : SetLength(FadwordsLinks,ALength);
  4648. 'users' : SetLength(Fusers,ALength);
  4649. else
  4650. Inherited SetArrayLength(AName,ALength);
  4651. end;
  4652. end;
  4653. {$ENDIF VER2_6}
  4654. { --------------------------------------------------------------------
  4655. TAccountAdwordsLink
  4656. --------------------------------------------------------------------}
  4657. Procedure TAccountAdwordsLink.SetadwordsId(AIndex : Integer; const AValue : String);
  4658. begin
  4659. If (FadwordsId=AValue) then exit;
  4660. FadwordsId:=AValue;
  4661. MarkPropertyChanged(AIndex);
  4662. end;
  4663. Procedure TAccountAdwordsLink.Setstatus(AIndex : Integer; const AValue : String);
  4664. begin
  4665. If (Fstatus=AValue) then exit;
  4666. Fstatus:=AValue;
  4667. MarkPropertyChanged(AIndex);
  4668. end;
  4669. { --------------------------------------------------------------------
  4670. TAccountIdentifier
  4671. --------------------------------------------------------------------}
  4672. Procedure TAccountIdentifier.SetaggregatorId(AIndex : Integer; const AValue : String);
  4673. begin
  4674. If (FaggregatorId=AValue) then exit;
  4675. FaggregatorId:=AValue;
  4676. MarkPropertyChanged(AIndex);
  4677. end;
  4678. Procedure TAccountIdentifier.SetmerchantId(AIndex : Integer; const AValue : String);
  4679. begin
  4680. If (FmerchantId=AValue) then exit;
  4681. FmerchantId:=AValue;
  4682. MarkPropertyChanged(AIndex);
  4683. end;
  4684. { --------------------------------------------------------------------
  4685. TAccountShipping
  4686. --------------------------------------------------------------------}
  4687. Procedure TAccountShipping.SetaccountId(AIndex : Integer; const AValue : String);
  4688. begin
  4689. If (FaccountId=AValue) then exit;
  4690. FaccountId:=AValue;
  4691. MarkPropertyChanged(AIndex);
  4692. end;
  4693. Procedure TAccountShipping.SetcarrierRates(AIndex : Integer; const AValue : TAccountShippingTypecarrierRatesArray);
  4694. begin
  4695. If (FcarrierRates=AValue) then exit;
  4696. FcarrierRates:=AValue;
  4697. MarkPropertyChanged(AIndex);
  4698. end;
  4699. Procedure TAccountShipping.Setkind(AIndex : Integer; const AValue : String);
  4700. begin
  4701. If (Fkind=AValue) then exit;
  4702. Fkind:=AValue;
  4703. MarkPropertyChanged(AIndex);
  4704. end;
  4705. Procedure TAccountShipping.SetlocationGroups(AIndex : Integer; const AValue : TAccountShippingTypelocationGroupsArray);
  4706. begin
  4707. If (FlocationGroups=AValue) then exit;
  4708. FlocationGroups:=AValue;
  4709. MarkPropertyChanged(AIndex);
  4710. end;
  4711. Procedure TAccountShipping.SetrateTables(AIndex : Integer; const AValue : TAccountShippingTyperateTablesArray);
  4712. begin
  4713. If (FrateTables=AValue) then exit;
  4714. FrateTables:=AValue;
  4715. MarkPropertyChanged(AIndex);
  4716. end;
  4717. Procedure TAccountShipping.Setservices(AIndex : Integer; const AValue : TAccountShippingTypeservicesArray);
  4718. begin
  4719. If (Fservices=AValue) then exit;
  4720. Fservices:=AValue;
  4721. MarkPropertyChanged(AIndex);
  4722. end;
  4723. //2.6.4. bug workaround
  4724. {$IFDEF VER2_6}
  4725. Procedure TAccountShipping.SetArrayLength(Const AName : String; ALength : Longint);
  4726. begin
  4727. Case AName of
  4728. 'carrierrates' : SetLength(FcarrierRates,ALength);
  4729. 'locationgroups' : SetLength(FlocationGroups,ALength);
  4730. 'ratetables' : SetLength(FrateTables,ALength);
  4731. 'services' : SetLength(Fservices,ALength);
  4732. else
  4733. Inherited SetArrayLength(AName,ALength);
  4734. end;
  4735. end;
  4736. {$ENDIF VER2_6}
  4737. { --------------------------------------------------------------------
  4738. TAccountShippingCarrierRate
  4739. --------------------------------------------------------------------}
  4740. Procedure TAccountShippingCarrierRate.Setcarrier(AIndex : Integer; const AValue : String);
  4741. begin
  4742. If (Fcarrier=AValue) then exit;
  4743. Fcarrier:=AValue;
  4744. MarkPropertyChanged(AIndex);
  4745. end;
  4746. Procedure TAccountShippingCarrierRate.SetcarrierService(AIndex : Integer; const AValue : String);
  4747. begin
  4748. If (FcarrierService=AValue) then exit;
  4749. FcarrierService:=AValue;
  4750. MarkPropertyChanged(AIndex);
  4751. end;
  4752. Procedure TAccountShippingCarrierRate.SetmodifierFlatRate(AIndex : Integer; const AValue : TPrice);
  4753. begin
  4754. If (FmodifierFlatRate=AValue) then exit;
  4755. FmodifierFlatRate:=AValue;
  4756. MarkPropertyChanged(AIndex);
  4757. end;
  4758. Procedure TAccountShippingCarrierRate.SetmodifierPercent(AIndex : Integer; const AValue : String);
  4759. begin
  4760. If (FmodifierPercent=AValue) then exit;
  4761. FmodifierPercent:=AValue;
  4762. MarkPropertyChanged(AIndex);
  4763. end;
  4764. Procedure TAccountShippingCarrierRate.Setname(AIndex : Integer; const AValue : String);
  4765. begin
  4766. If (Fname=AValue) then exit;
  4767. Fname:=AValue;
  4768. MarkPropertyChanged(AIndex);
  4769. end;
  4770. Procedure TAccountShippingCarrierRate.SetsaleCountry(AIndex : Integer; const AValue : String);
  4771. begin
  4772. If (FsaleCountry=AValue) then exit;
  4773. FsaleCountry:=AValue;
  4774. MarkPropertyChanged(AIndex);
  4775. end;
  4776. Procedure TAccountShippingCarrierRate.SetshippingOrigin(AIndex : Integer; const AValue : String);
  4777. begin
  4778. If (FshippingOrigin=AValue) then exit;
  4779. FshippingOrigin:=AValue;
  4780. MarkPropertyChanged(AIndex);
  4781. end;
  4782. { --------------------------------------------------------------------
  4783. TAccountShippingCondition
  4784. --------------------------------------------------------------------}
  4785. Procedure TAccountShippingCondition.SetdeliveryLocationGroup(AIndex : Integer; const AValue : String);
  4786. begin
  4787. If (FdeliveryLocationGroup=AValue) then exit;
  4788. FdeliveryLocationGroup:=AValue;
  4789. MarkPropertyChanged(AIndex);
  4790. end;
  4791. Procedure TAccountShippingCondition.SetdeliveryLocationId(AIndex : Integer; const AValue : String);
  4792. begin
  4793. If (FdeliveryLocationId=AValue) then exit;
  4794. FdeliveryLocationId:=AValue;
  4795. MarkPropertyChanged(AIndex);
  4796. end;
  4797. Procedure TAccountShippingCondition.SetdeliveryPostalCode(AIndex : Integer; const AValue : String);
  4798. begin
  4799. If (FdeliveryPostalCode=AValue) then exit;
  4800. FdeliveryPostalCode:=AValue;
  4801. MarkPropertyChanged(AIndex);
  4802. end;
  4803. Procedure TAccountShippingCondition.SetdeliveryPostalCodeRange(AIndex : Integer; const AValue : TAccountShippingPostalCodeRange);
  4804. begin
  4805. If (FdeliveryPostalCodeRange=AValue) then exit;
  4806. FdeliveryPostalCodeRange:=AValue;
  4807. MarkPropertyChanged(AIndex);
  4808. end;
  4809. Procedure TAccountShippingCondition.SetpriceMax(AIndex : Integer; const AValue : TPrice);
  4810. begin
  4811. If (FpriceMax=AValue) then exit;
  4812. FpriceMax:=AValue;
  4813. MarkPropertyChanged(AIndex);
  4814. end;
  4815. Procedure TAccountShippingCondition.SetshippingLabel(AIndex : Integer; const AValue : String);
  4816. begin
  4817. If (FshippingLabel=AValue) then exit;
  4818. FshippingLabel:=AValue;
  4819. MarkPropertyChanged(AIndex);
  4820. end;
  4821. Procedure TAccountShippingCondition.SetweightMax(AIndex : Integer; const AValue : TWeight);
  4822. begin
  4823. If (FweightMax=AValue) then exit;
  4824. FweightMax:=AValue;
  4825. MarkPropertyChanged(AIndex);
  4826. end;
  4827. { --------------------------------------------------------------------
  4828. TAccountShippingLocationGroup
  4829. --------------------------------------------------------------------}
  4830. Procedure TAccountShippingLocationGroup.Setcountry(AIndex : Integer; const AValue : String);
  4831. begin
  4832. If (Fcountry=AValue) then exit;
  4833. Fcountry:=AValue;
  4834. MarkPropertyChanged(AIndex);
  4835. end;
  4836. Procedure TAccountShippingLocationGroup.SetlocationIds(AIndex : Integer; const AValue : TStringArray);
  4837. begin
  4838. If (FlocationIds=AValue) then exit;
  4839. FlocationIds:=AValue;
  4840. MarkPropertyChanged(AIndex);
  4841. end;
  4842. Procedure TAccountShippingLocationGroup.Setname(AIndex : Integer; const AValue : String);
  4843. begin
  4844. If (Fname=AValue) then exit;
  4845. Fname:=AValue;
  4846. MarkPropertyChanged(AIndex);
  4847. end;
  4848. Procedure TAccountShippingLocationGroup.SetpostalCodeRanges(AIndex : Integer; const AValue : TAccountShippingLocationGroupTypepostalCodeRangesArray);
  4849. begin
  4850. If (FpostalCodeRanges=AValue) then exit;
  4851. FpostalCodeRanges:=AValue;
  4852. MarkPropertyChanged(AIndex);
  4853. end;
  4854. Procedure TAccountShippingLocationGroup.SetpostalCodes(AIndex : Integer; const AValue : TStringArray);
  4855. begin
  4856. If (FpostalCodes=AValue) then exit;
  4857. FpostalCodes:=AValue;
  4858. MarkPropertyChanged(AIndex);
  4859. end;
  4860. //2.6.4. bug workaround
  4861. {$IFDEF VER2_6}
  4862. Procedure TAccountShippingLocationGroup.SetArrayLength(Const AName : String; ALength : Longint);
  4863. begin
  4864. Case AName of
  4865. 'locationids' : SetLength(FlocationIds,ALength);
  4866. 'postalcoderanges' : SetLength(FpostalCodeRanges,ALength);
  4867. 'postalcodes' : SetLength(FpostalCodes,ALength);
  4868. else
  4869. Inherited SetArrayLength(AName,ALength);
  4870. end;
  4871. end;
  4872. {$ENDIF VER2_6}
  4873. { --------------------------------------------------------------------
  4874. TAccountShippingPostalCodeRange
  4875. --------------------------------------------------------------------}
  4876. Procedure TAccountShippingPostalCodeRange.Set_end(AIndex : Integer; const AValue : String);
  4877. begin
  4878. If (F_end=AValue) then exit;
  4879. F_end:=AValue;
  4880. MarkPropertyChanged(AIndex);
  4881. end;
  4882. Procedure TAccountShippingPostalCodeRange.Setstart(AIndex : Integer; const AValue : String);
  4883. begin
  4884. If (Fstart=AValue) then exit;
  4885. Fstart:=AValue;
  4886. MarkPropertyChanged(AIndex);
  4887. end;
  4888. Class Function TAccountShippingPostalCodeRange.ExportPropertyName(Const AName : String) :String;
  4889. begin
  4890. Case AName of
  4891. '_end' : Result:='end';
  4892. else
  4893. Result:=Inherited ExportPropertyName(AName);
  4894. end;
  4895. end;
  4896. { --------------------------------------------------------------------
  4897. TAccountShippingRateTable
  4898. --------------------------------------------------------------------}
  4899. Procedure TAccountShippingRateTable.Setcontent(AIndex : Integer; const AValue : TAccountShippingRateTableTypecontentArray);
  4900. begin
  4901. If (Fcontent=AValue) then exit;
  4902. Fcontent:=AValue;
  4903. MarkPropertyChanged(AIndex);
  4904. end;
  4905. Procedure TAccountShippingRateTable.Setname(AIndex : Integer; const AValue : String);
  4906. begin
  4907. If (Fname=AValue) then exit;
  4908. Fname:=AValue;
  4909. MarkPropertyChanged(AIndex);
  4910. end;
  4911. Procedure TAccountShippingRateTable.SetsaleCountry(AIndex : Integer; const AValue : String);
  4912. begin
  4913. If (FsaleCountry=AValue) then exit;
  4914. FsaleCountry:=AValue;
  4915. MarkPropertyChanged(AIndex);
  4916. end;
  4917. //2.6.4. bug workaround
  4918. {$IFDEF VER2_6}
  4919. Procedure TAccountShippingRateTable.SetArrayLength(Const AName : String; ALength : Longint);
  4920. begin
  4921. Case AName of
  4922. 'content' : SetLength(Fcontent,ALength);
  4923. else
  4924. Inherited SetArrayLength(AName,ALength);
  4925. end;
  4926. end;
  4927. {$ENDIF VER2_6}
  4928. { --------------------------------------------------------------------
  4929. TAccountShippingRateTableCell
  4930. --------------------------------------------------------------------}
  4931. Procedure TAccountShippingRateTableCell.Setcondition(AIndex : Integer; const AValue : TAccountShippingCondition);
  4932. begin
  4933. If (Fcondition=AValue) then exit;
  4934. Fcondition:=AValue;
  4935. MarkPropertyChanged(AIndex);
  4936. end;
  4937. Procedure TAccountShippingRateTableCell.Setrate(AIndex : Integer; const AValue : TPrice);
  4938. begin
  4939. If (Frate=AValue) then exit;
  4940. Frate:=AValue;
  4941. MarkPropertyChanged(AIndex);
  4942. end;
  4943. { --------------------------------------------------------------------
  4944. TAccountShippingShippingService
  4945. --------------------------------------------------------------------}
  4946. Procedure TAccountShippingShippingService.Setactive(AIndex : Integer; const AValue : boolean);
  4947. begin
  4948. If (Factive=AValue) then exit;
  4949. Factive:=AValue;
  4950. MarkPropertyChanged(AIndex);
  4951. end;
  4952. Procedure TAccountShippingShippingService.SetcalculationMethod(AIndex : Integer; const AValue : TAccountShippingShippingServiceCalculationMethod);
  4953. begin
  4954. If (FcalculationMethod=AValue) then exit;
  4955. FcalculationMethod:=AValue;
  4956. MarkPropertyChanged(AIndex);
  4957. end;
  4958. Procedure TAccountShippingShippingService.SetcostRuleTree(AIndex : Integer; const AValue : TAccountShippingShippingServiceCostRule);
  4959. begin
  4960. If (FcostRuleTree=AValue) then exit;
  4961. FcostRuleTree:=AValue;
  4962. MarkPropertyChanged(AIndex);
  4963. end;
  4964. Procedure TAccountShippingShippingService.Setname(AIndex : Integer; const AValue : String);
  4965. begin
  4966. If (Fname=AValue) then exit;
  4967. Fname:=AValue;
  4968. MarkPropertyChanged(AIndex);
  4969. end;
  4970. Procedure TAccountShippingShippingService.SetsaleCountry(AIndex : Integer; const AValue : String);
  4971. begin
  4972. If (FsaleCountry=AValue) then exit;
  4973. FsaleCountry:=AValue;
  4974. MarkPropertyChanged(AIndex);
  4975. end;
  4976. { --------------------------------------------------------------------
  4977. TAccountShippingShippingServiceCalculationMethod
  4978. --------------------------------------------------------------------}
  4979. Procedure TAccountShippingShippingServiceCalculationMethod.SetcarrierRate(AIndex : Integer; const AValue : String);
  4980. begin
  4981. If (FcarrierRate=AValue) then exit;
  4982. FcarrierRate:=AValue;
  4983. MarkPropertyChanged(AIndex);
  4984. end;
  4985. Procedure TAccountShippingShippingServiceCalculationMethod.Setexcluded(AIndex : Integer; const AValue : boolean);
  4986. begin
  4987. If (Fexcluded=AValue) then exit;
  4988. Fexcluded:=AValue;
  4989. MarkPropertyChanged(AIndex);
  4990. end;
  4991. Procedure TAccountShippingShippingServiceCalculationMethod.SetflatRate(AIndex : Integer; const AValue : TPrice);
  4992. begin
  4993. If (FflatRate=AValue) then exit;
  4994. FflatRate:=AValue;
  4995. MarkPropertyChanged(AIndex);
  4996. end;
  4997. Procedure TAccountShippingShippingServiceCalculationMethod.SetpercentageRate(AIndex : Integer; const AValue : String);
  4998. begin
  4999. If (FpercentageRate=AValue) then exit;
  5000. FpercentageRate:=AValue;
  5001. MarkPropertyChanged(AIndex);
  5002. end;
  5003. Procedure TAccountShippingShippingServiceCalculationMethod.SetrateTable(AIndex : Integer; const AValue : String);
  5004. begin
  5005. If (FrateTable=AValue) then exit;
  5006. FrateTable:=AValue;
  5007. MarkPropertyChanged(AIndex);
  5008. end;
  5009. { --------------------------------------------------------------------
  5010. TAccountShippingShippingServiceCostRule
  5011. --------------------------------------------------------------------}
  5012. Procedure TAccountShippingShippingServiceCostRule.SetcalculationMethod(AIndex : Integer; const AValue : TAccountShippingShippingServiceCalculationMethod);
  5013. begin
  5014. If (FcalculationMethod=AValue) then exit;
  5015. FcalculationMethod:=AValue;
  5016. MarkPropertyChanged(AIndex);
  5017. end;
  5018. Procedure TAccountShippingShippingServiceCostRule.Setchildren(AIndex : Integer; const AValue : TAccountShippingShippingServiceCostRuleTypechildrenArray);
  5019. begin
  5020. If (Fchildren=AValue) then exit;
  5021. Fchildren:=AValue;
  5022. MarkPropertyChanged(AIndex);
  5023. end;
  5024. Procedure TAccountShippingShippingServiceCostRule.Setcondition(AIndex : Integer; const AValue : TAccountShippingCondition);
  5025. begin
  5026. If (Fcondition=AValue) then exit;
  5027. Fcondition:=AValue;
  5028. MarkPropertyChanged(AIndex);
  5029. end;
  5030. //2.6.4. bug workaround
  5031. {$IFDEF VER2_6}
  5032. Procedure TAccountShippingShippingServiceCostRule.SetArrayLength(Const AName : String; ALength : Longint);
  5033. begin
  5034. Case AName of
  5035. 'children' : SetLength(Fchildren,ALength);
  5036. else
  5037. Inherited SetArrayLength(AName,ALength);
  5038. end;
  5039. end;
  5040. {$ENDIF VER2_6}
  5041. { --------------------------------------------------------------------
  5042. TAccountStatus
  5043. --------------------------------------------------------------------}
  5044. Procedure TAccountStatus.SetaccountId(AIndex : Integer; const AValue : String);
  5045. begin
  5046. If (FaccountId=AValue) then exit;
  5047. FaccountId:=AValue;
  5048. MarkPropertyChanged(AIndex);
  5049. end;
  5050. Procedure TAccountStatus.SetdataQualityIssues(AIndex : Integer; const AValue : TAccountStatusTypedataQualityIssuesArray);
  5051. begin
  5052. If (FdataQualityIssues=AValue) then exit;
  5053. FdataQualityIssues:=AValue;
  5054. MarkPropertyChanged(AIndex);
  5055. end;
  5056. Procedure TAccountStatus.Setkind(AIndex : Integer; const AValue : String);
  5057. begin
  5058. If (Fkind=AValue) then exit;
  5059. Fkind:=AValue;
  5060. MarkPropertyChanged(AIndex);
  5061. end;
  5062. //2.6.4. bug workaround
  5063. {$IFDEF VER2_6}
  5064. Procedure TAccountStatus.SetArrayLength(Const AName : String; ALength : Longint);
  5065. begin
  5066. Case AName of
  5067. 'dataqualityissues' : SetLength(FdataQualityIssues,ALength);
  5068. else
  5069. Inherited SetArrayLength(AName,ALength);
  5070. end;
  5071. end;
  5072. {$ENDIF VER2_6}
  5073. { --------------------------------------------------------------------
  5074. TAccountStatusDataQualityIssue
  5075. --------------------------------------------------------------------}
  5076. Procedure TAccountStatusDataQualityIssue.Setcountry(AIndex : Integer; const AValue : String);
  5077. begin
  5078. If (Fcountry=AValue) then exit;
  5079. Fcountry:=AValue;
  5080. MarkPropertyChanged(AIndex);
  5081. end;
  5082. Procedure TAccountStatusDataQualityIssue.SetdisplayedValue(AIndex : Integer; const AValue : String);
  5083. begin
  5084. If (FdisplayedValue=AValue) then exit;
  5085. FdisplayedValue:=AValue;
  5086. MarkPropertyChanged(AIndex);
  5087. end;
  5088. Procedure TAccountStatusDataQualityIssue.SetexampleItems(AIndex : Integer; const AValue : TAccountStatusDataQualityIssueTypeexampleItemsArray);
  5089. begin
  5090. If (FexampleItems=AValue) then exit;
  5091. FexampleItems:=AValue;
  5092. MarkPropertyChanged(AIndex);
  5093. end;
  5094. Procedure TAccountStatusDataQualityIssue.Setid(AIndex : Integer; const AValue : String);
  5095. begin
  5096. If (Fid=AValue) then exit;
  5097. Fid:=AValue;
  5098. MarkPropertyChanged(AIndex);
  5099. end;
  5100. Procedure TAccountStatusDataQualityIssue.SetlastChecked(AIndex : Integer; const AValue : String);
  5101. begin
  5102. If (FlastChecked=AValue) then exit;
  5103. FlastChecked:=AValue;
  5104. MarkPropertyChanged(AIndex);
  5105. end;
  5106. Procedure TAccountStatusDataQualityIssue.SetnumItems(AIndex : Integer; const AValue : integer);
  5107. begin
  5108. If (FnumItems=AValue) then exit;
  5109. FnumItems:=AValue;
  5110. MarkPropertyChanged(AIndex);
  5111. end;
  5112. Procedure TAccountStatusDataQualityIssue.Setseverity(AIndex : Integer; const AValue : String);
  5113. begin
  5114. If (Fseverity=AValue) then exit;
  5115. Fseverity:=AValue;
  5116. MarkPropertyChanged(AIndex);
  5117. end;
  5118. Procedure TAccountStatusDataQualityIssue.SetsubmittedValue(AIndex : Integer; const AValue : String);
  5119. begin
  5120. If (FsubmittedValue=AValue) then exit;
  5121. FsubmittedValue:=AValue;
  5122. MarkPropertyChanged(AIndex);
  5123. end;
  5124. //2.6.4. bug workaround
  5125. {$IFDEF VER2_6}
  5126. Procedure TAccountStatusDataQualityIssue.SetArrayLength(Const AName : String; ALength : Longint);
  5127. begin
  5128. Case AName of
  5129. 'exampleitems' : SetLength(FexampleItems,ALength);
  5130. else
  5131. Inherited SetArrayLength(AName,ALength);
  5132. end;
  5133. end;
  5134. {$ENDIF VER2_6}
  5135. { --------------------------------------------------------------------
  5136. TAccountStatusExampleItem
  5137. --------------------------------------------------------------------}
  5138. Procedure TAccountStatusExampleItem.SetitemId(AIndex : Integer; const AValue : String);
  5139. begin
  5140. If (FitemId=AValue) then exit;
  5141. FitemId:=AValue;
  5142. MarkPropertyChanged(AIndex);
  5143. end;
  5144. Procedure TAccountStatusExampleItem.Setlink(AIndex : Integer; const AValue : String);
  5145. begin
  5146. If (Flink=AValue) then exit;
  5147. Flink:=AValue;
  5148. MarkPropertyChanged(AIndex);
  5149. end;
  5150. Procedure TAccountStatusExampleItem.SetsubmittedValue(AIndex : Integer; const AValue : String);
  5151. begin
  5152. If (FsubmittedValue=AValue) then exit;
  5153. FsubmittedValue:=AValue;
  5154. MarkPropertyChanged(AIndex);
  5155. end;
  5156. Procedure TAccountStatusExampleItem.Settitle(AIndex : Integer; const AValue : String);
  5157. begin
  5158. If (Ftitle=AValue) then exit;
  5159. Ftitle:=AValue;
  5160. MarkPropertyChanged(AIndex);
  5161. end;
  5162. Procedure TAccountStatusExampleItem.SetvalueOnLandingPage(AIndex : Integer; const AValue : String);
  5163. begin
  5164. If (FvalueOnLandingPage=AValue) then exit;
  5165. FvalueOnLandingPage:=AValue;
  5166. MarkPropertyChanged(AIndex);
  5167. end;
  5168. { --------------------------------------------------------------------
  5169. TAccountTax
  5170. --------------------------------------------------------------------}
  5171. Procedure TAccountTax.SetaccountId(AIndex : Integer; const AValue : String);
  5172. begin
  5173. If (FaccountId=AValue) then exit;
  5174. FaccountId:=AValue;
  5175. MarkPropertyChanged(AIndex);
  5176. end;
  5177. Procedure TAccountTax.Setkind(AIndex : Integer; const AValue : String);
  5178. begin
  5179. If (Fkind=AValue) then exit;
  5180. Fkind:=AValue;
  5181. MarkPropertyChanged(AIndex);
  5182. end;
  5183. Procedure TAccountTax.Setrules(AIndex : Integer; const AValue : TAccountTaxTyperulesArray);
  5184. begin
  5185. If (Frules=AValue) then exit;
  5186. Frules:=AValue;
  5187. MarkPropertyChanged(AIndex);
  5188. end;
  5189. //2.6.4. bug workaround
  5190. {$IFDEF VER2_6}
  5191. Procedure TAccountTax.SetArrayLength(Const AName : String; ALength : Longint);
  5192. begin
  5193. Case AName of
  5194. 'rules' : SetLength(Frules,ALength);
  5195. else
  5196. Inherited SetArrayLength(AName,ALength);
  5197. end;
  5198. end;
  5199. {$ENDIF VER2_6}
  5200. { --------------------------------------------------------------------
  5201. TAccountTaxTaxRule
  5202. --------------------------------------------------------------------}
  5203. Procedure TAccountTaxTaxRule.Setcountry(AIndex : Integer; const AValue : String);
  5204. begin
  5205. If (Fcountry=AValue) then exit;
  5206. Fcountry:=AValue;
  5207. MarkPropertyChanged(AIndex);
  5208. end;
  5209. Procedure TAccountTaxTaxRule.SetlocationId(AIndex : Integer; const AValue : String);
  5210. begin
  5211. If (FlocationId=AValue) then exit;
  5212. FlocationId:=AValue;
  5213. MarkPropertyChanged(AIndex);
  5214. end;
  5215. Procedure TAccountTaxTaxRule.SetratePercent(AIndex : Integer; const AValue : String);
  5216. begin
  5217. If (FratePercent=AValue) then exit;
  5218. FratePercent:=AValue;
  5219. MarkPropertyChanged(AIndex);
  5220. end;
  5221. Procedure TAccountTaxTaxRule.SetshippingTaxed(AIndex : Integer; const AValue : boolean);
  5222. begin
  5223. If (FshippingTaxed=AValue) then exit;
  5224. FshippingTaxed:=AValue;
  5225. MarkPropertyChanged(AIndex);
  5226. end;
  5227. Procedure TAccountTaxTaxRule.SetuseGlobalRate(AIndex : Integer; const AValue : boolean);
  5228. begin
  5229. If (FuseGlobalRate=AValue) then exit;
  5230. FuseGlobalRate:=AValue;
  5231. MarkPropertyChanged(AIndex);
  5232. end;
  5233. { --------------------------------------------------------------------
  5234. TAccountUser
  5235. --------------------------------------------------------------------}
  5236. Procedure TAccountUser.Setadmin(AIndex : Integer; const AValue : boolean);
  5237. begin
  5238. If (Fadmin=AValue) then exit;
  5239. Fadmin:=AValue;
  5240. MarkPropertyChanged(AIndex);
  5241. end;
  5242. Procedure TAccountUser.SetemailAddress(AIndex : Integer; const AValue : String);
  5243. begin
  5244. If (FemailAddress=AValue) then exit;
  5245. FemailAddress:=AValue;
  5246. MarkPropertyChanged(AIndex);
  5247. end;
  5248. { --------------------------------------------------------------------
  5249. TAccountsAuthInfoResponse
  5250. --------------------------------------------------------------------}
  5251. Procedure TAccountsAuthInfoResponse.SetaccountIdentifiers(AIndex : Integer; const AValue : TAccountsAuthInfoResponseTypeaccountIdentifiersArray);
  5252. begin
  5253. If (FaccountIdentifiers=AValue) then exit;
  5254. FaccountIdentifiers:=AValue;
  5255. MarkPropertyChanged(AIndex);
  5256. end;
  5257. Procedure TAccountsAuthInfoResponse.Setkind(AIndex : Integer; const AValue : String);
  5258. begin
  5259. If (Fkind=AValue) then exit;
  5260. Fkind:=AValue;
  5261. MarkPropertyChanged(AIndex);
  5262. end;
  5263. //2.6.4. bug workaround
  5264. {$IFDEF VER2_6}
  5265. Procedure TAccountsAuthInfoResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5266. begin
  5267. Case AName of
  5268. 'accountidentifiers' : SetLength(FaccountIdentifiers,ALength);
  5269. else
  5270. Inherited SetArrayLength(AName,ALength);
  5271. end;
  5272. end;
  5273. {$ENDIF VER2_6}
  5274. { --------------------------------------------------------------------
  5275. TAccountsCustomBatchRequest
  5276. --------------------------------------------------------------------}
  5277. Procedure TAccountsCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TAccountsCustomBatchRequestTypeentriesArray);
  5278. begin
  5279. If (Fentries=AValue) then exit;
  5280. Fentries:=AValue;
  5281. MarkPropertyChanged(AIndex);
  5282. end;
  5283. //2.6.4. bug workaround
  5284. {$IFDEF VER2_6}
  5285. Procedure TAccountsCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  5286. begin
  5287. Case AName of
  5288. 'entries' : SetLength(Fentries,ALength);
  5289. else
  5290. Inherited SetArrayLength(AName,ALength);
  5291. end;
  5292. end;
  5293. {$ENDIF VER2_6}
  5294. { --------------------------------------------------------------------
  5295. TAccountsCustomBatchRequestEntry
  5296. --------------------------------------------------------------------}
  5297. Procedure TAccountsCustomBatchRequestEntry.Setaccount(AIndex : Integer; const AValue : TAccount);
  5298. begin
  5299. If (Faccount=AValue) then exit;
  5300. Faccount:=AValue;
  5301. MarkPropertyChanged(AIndex);
  5302. end;
  5303. Procedure TAccountsCustomBatchRequestEntry.SetaccountId(AIndex : Integer; const AValue : String);
  5304. begin
  5305. If (FaccountId=AValue) then exit;
  5306. FaccountId:=AValue;
  5307. MarkPropertyChanged(AIndex);
  5308. end;
  5309. Procedure TAccountsCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  5310. begin
  5311. If (FbatchId=AValue) then exit;
  5312. FbatchId:=AValue;
  5313. MarkPropertyChanged(AIndex);
  5314. end;
  5315. Procedure TAccountsCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  5316. begin
  5317. If (FmerchantId=AValue) then exit;
  5318. FmerchantId:=AValue;
  5319. MarkPropertyChanged(AIndex);
  5320. end;
  5321. Procedure TAccountsCustomBatchRequestEntry.Setmethod(AIndex : Integer; const AValue : String);
  5322. begin
  5323. If (Fmethod=AValue) then exit;
  5324. Fmethod:=AValue;
  5325. MarkPropertyChanged(AIndex);
  5326. end;
  5327. { --------------------------------------------------------------------
  5328. TAccountsCustomBatchResponse
  5329. --------------------------------------------------------------------}
  5330. Procedure TAccountsCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TAccountsCustomBatchResponseTypeentriesArray);
  5331. begin
  5332. If (Fentries=AValue) then exit;
  5333. Fentries:=AValue;
  5334. MarkPropertyChanged(AIndex);
  5335. end;
  5336. Procedure TAccountsCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  5337. begin
  5338. If (Fkind=AValue) then exit;
  5339. Fkind:=AValue;
  5340. MarkPropertyChanged(AIndex);
  5341. end;
  5342. //2.6.4. bug workaround
  5343. {$IFDEF VER2_6}
  5344. Procedure TAccountsCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5345. begin
  5346. Case AName of
  5347. 'entries' : SetLength(Fentries,ALength);
  5348. else
  5349. Inherited SetArrayLength(AName,ALength);
  5350. end;
  5351. end;
  5352. {$ENDIF VER2_6}
  5353. { --------------------------------------------------------------------
  5354. TAccountsCustomBatchResponseEntry
  5355. --------------------------------------------------------------------}
  5356. Procedure TAccountsCustomBatchResponseEntry.Setaccount(AIndex : Integer; const AValue : TAccount);
  5357. begin
  5358. If (Faccount=AValue) then exit;
  5359. Faccount:=AValue;
  5360. MarkPropertyChanged(AIndex);
  5361. end;
  5362. Procedure TAccountsCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  5363. begin
  5364. If (FbatchId=AValue) then exit;
  5365. FbatchId:=AValue;
  5366. MarkPropertyChanged(AIndex);
  5367. end;
  5368. Procedure TAccountsCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  5369. begin
  5370. If (Ferrors=AValue) then exit;
  5371. Ferrors:=AValue;
  5372. MarkPropertyChanged(AIndex);
  5373. end;
  5374. Procedure TAccountsCustomBatchResponseEntry.Setkind(AIndex : Integer; const AValue : String);
  5375. begin
  5376. If (Fkind=AValue) then exit;
  5377. Fkind:=AValue;
  5378. MarkPropertyChanged(AIndex);
  5379. end;
  5380. { --------------------------------------------------------------------
  5381. TAccountsListResponse
  5382. --------------------------------------------------------------------}
  5383. Procedure TAccountsListResponse.Setkind(AIndex : Integer; const AValue : String);
  5384. begin
  5385. If (Fkind=AValue) then exit;
  5386. Fkind:=AValue;
  5387. MarkPropertyChanged(AIndex);
  5388. end;
  5389. Procedure TAccountsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  5390. begin
  5391. If (FnextPageToken=AValue) then exit;
  5392. FnextPageToken:=AValue;
  5393. MarkPropertyChanged(AIndex);
  5394. end;
  5395. Procedure TAccountsListResponse.Setresources(AIndex : Integer; const AValue : TAccountsListResponseTyperesourcesArray);
  5396. begin
  5397. If (Fresources=AValue) then exit;
  5398. Fresources:=AValue;
  5399. MarkPropertyChanged(AIndex);
  5400. end;
  5401. //2.6.4. bug workaround
  5402. {$IFDEF VER2_6}
  5403. Procedure TAccountsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5404. begin
  5405. Case AName of
  5406. 'resources' : SetLength(Fresources,ALength);
  5407. else
  5408. Inherited SetArrayLength(AName,ALength);
  5409. end;
  5410. end;
  5411. {$ENDIF VER2_6}
  5412. { --------------------------------------------------------------------
  5413. TAccountshippingCustomBatchRequest
  5414. --------------------------------------------------------------------}
  5415. Procedure TAccountshippingCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TAccountshippingCustomBatchRequestTypeentriesArray);
  5416. begin
  5417. If (Fentries=AValue) then exit;
  5418. Fentries:=AValue;
  5419. MarkPropertyChanged(AIndex);
  5420. end;
  5421. //2.6.4. bug workaround
  5422. {$IFDEF VER2_6}
  5423. Procedure TAccountshippingCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  5424. begin
  5425. Case AName of
  5426. 'entries' : SetLength(Fentries,ALength);
  5427. else
  5428. Inherited SetArrayLength(AName,ALength);
  5429. end;
  5430. end;
  5431. {$ENDIF VER2_6}
  5432. { --------------------------------------------------------------------
  5433. TAccountshippingCustomBatchRequestEntry
  5434. --------------------------------------------------------------------}
  5435. Procedure TAccountshippingCustomBatchRequestEntry.SetaccountId(AIndex : Integer; const AValue : String);
  5436. begin
  5437. If (FaccountId=AValue) then exit;
  5438. FaccountId:=AValue;
  5439. MarkPropertyChanged(AIndex);
  5440. end;
  5441. Procedure TAccountshippingCustomBatchRequestEntry.SetaccountShipping(AIndex : Integer; const AValue : TAccountShipping);
  5442. begin
  5443. If (FaccountShipping=AValue) then exit;
  5444. FaccountShipping:=AValue;
  5445. MarkPropertyChanged(AIndex);
  5446. end;
  5447. Procedure TAccountshippingCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  5448. begin
  5449. If (FbatchId=AValue) then exit;
  5450. FbatchId:=AValue;
  5451. MarkPropertyChanged(AIndex);
  5452. end;
  5453. Procedure TAccountshippingCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  5454. begin
  5455. If (FmerchantId=AValue) then exit;
  5456. FmerchantId:=AValue;
  5457. MarkPropertyChanged(AIndex);
  5458. end;
  5459. Procedure TAccountshippingCustomBatchRequestEntry.Setmethod(AIndex : Integer; const AValue : String);
  5460. begin
  5461. If (Fmethod=AValue) then exit;
  5462. Fmethod:=AValue;
  5463. MarkPropertyChanged(AIndex);
  5464. end;
  5465. { --------------------------------------------------------------------
  5466. TAccountshippingCustomBatchResponse
  5467. --------------------------------------------------------------------}
  5468. Procedure TAccountshippingCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TAccountshippingCustomBatchResponseTypeentriesArray);
  5469. begin
  5470. If (Fentries=AValue) then exit;
  5471. Fentries:=AValue;
  5472. MarkPropertyChanged(AIndex);
  5473. end;
  5474. Procedure TAccountshippingCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  5475. begin
  5476. If (Fkind=AValue) then exit;
  5477. Fkind:=AValue;
  5478. MarkPropertyChanged(AIndex);
  5479. end;
  5480. //2.6.4. bug workaround
  5481. {$IFDEF VER2_6}
  5482. Procedure TAccountshippingCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5483. begin
  5484. Case AName of
  5485. 'entries' : SetLength(Fentries,ALength);
  5486. else
  5487. Inherited SetArrayLength(AName,ALength);
  5488. end;
  5489. end;
  5490. {$ENDIF VER2_6}
  5491. { --------------------------------------------------------------------
  5492. TAccountshippingCustomBatchResponseEntry
  5493. --------------------------------------------------------------------}
  5494. Procedure TAccountshippingCustomBatchResponseEntry.SetaccountShipping(AIndex : Integer; const AValue : TAccountShipping);
  5495. begin
  5496. If (FaccountShipping=AValue) then exit;
  5497. FaccountShipping:=AValue;
  5498. MarkPropertyChanged(AIndex);
  5499. end;
  5500. Procedure TAccountshippingCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  5501. begin
  5502. If (FbatchId=AValue) then exit;
  5503. FbatchId:=AValue;
  5504. MarkPropertyChanged(AIndex);
  5505. end;
  5506. Procedure TAccountshippingCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  5507. begin
  5508. If (Ferrors=AValue) then exit;
  5509. Ferrors:=AValue;
  5510. MarkPropertyChanged(AIndex);
  5511. end;
  5512. Procedure TAccountshippingCustomBatchResponseEntry.Setkind(AIndex : Integer; const AValue : String);
  5513. begin
  5514. If (Fkind=AValue) then exit;
  5515. Fkind:=AValue;
  5516. MarkPropertyChanged(AIndex);
  5517. end;
  5518. { --------------------------------------------------------------------
  5519. TAccountshippingListResponse
  5520. --------------------------------------------------------------------}
  5521. Procedure TAccountshippingListResponse.Setkind(AIndex : Integer; const AValue : String);
  5522. begin
  5523. If (Fkind=AValue) then exit;
  5524. Fkind:=AValue;
  5525. MarkPropertyChanged(AIndex);
  5526. end;
  5527. Procedure TAccountshippingListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  5528. begin
  5529. If (FnextPageToken=AValue) then exit;
  5530. FnextPageToken:=AValue;
  5531. MarkPropertyChanged(AIndex);
  5532. end;
  5533. Procedure TAccountshippingListResponse.Setresources(AIndex : Integer; const AValue : TAccountshippingListResponseTyperesourcesArray);
  5534. begin
  5535. If (Fresources=AValue) then exit;
  5536. Fresources:=AValue;
  5537. MarkPropertyChanged(AIndex);
  5538. end;
  5539. //2.6.4. bug workaround
  5540. {$IFDEF VER2_6}
  5541. Procedure TAccountshippingListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5542. begin
  5543. Case AName of
  5544. 'resources' : SetLength(Fresources,ALength);
  5545. else
  5546. Inherited SetArrayLength(AName,ALength);
  5547. end;
  5548. end;
  5549. {$ENDIF VER2_6}
  5550. { --------------------------------------------------------------------
  5551. TAccountstatusesCustomBatchRequest
  5552. --------------------------------------------------------------------}
  5553. Procedure TAccountstatusesCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TAccountstatusesCustomBatchRequestTypeentriesArray);
  5554. begin
  5555. If (Fentries=AValue) then exit;
  5556. Fentries:=AValue;
  5557. MarkPropertyChanged(AIndex);
  5558. end;
  5559. //2.6.4. bug workaround
  5560. {$IFDEF VER2_6}
  5561. Procedure TAccountstatusesCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  5562. begin
  5563. Case AName of
  5564. 'entries' : SetLength(Fentries,ALength);
  5565. else
  5566. Inherited SetArrayLength(AName,ALength);
  5567. end;
  5568. end;
  5569. {$ENDIF VER2_6}
  5570. { --------------------------------------------------------------------
  5571. TAccountstatusesCustomBatchRequestEntry
  5572. --------------------------------------------------------------------}
  5573. Procedure TAccountstatusesCustomBatchRequestEntry.SetaccountId(AIndex : Integer; const AValue : String);
  5574. begin
  5575. If (FaccountId=AValue) then exit;
  5576. FaccountId:=AValue;
  5577. MarkPropertyChanged(AIndex);
  5578. end;
  5579. Procedure TAccountstatusesCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  5580. begin
  5581. If (FbatchId=AValue) then exit;
  5582. FbatchId:=AValue;
  5583. MarkPropertyChanged(AIndex);
  5584. end;
  5585. Procedure TAccountstatusesCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  5586. begin
  5587. If (FmerchantId=AValue) then exit;
  5588. FmerchantId:=AValue;
  5589. MarkPropertyChanged(AIndex);
  5590. end;
  5591. Procedure TAccountstatusesCustomBatchRequestEntry.Setmethod(AIndex : Integer; const AValue : String);
  5592. begin
  5593. If (Fmethod=AValue) then exit;
  5594. Fmethod:=AValue;
  5595. MarkPropertyChanged(AIndex);
  5596. end;
  5597. { --------------------------------------------------------------------
  5598. TAccountstatusesCustomBatchResponse
  5599. --------------------------------------------------------------------}
  5600. Procedure TAccountstatusesCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TAccountstatusesCustomBatchResponseTypeentriesArray);
  5601. begin
  5602. If (Fentries=AValue) then exit;
  5603. Fentries:=AValue;
  5604. MarkPropertyChanged(AIndex);
  5605. end;
  5606. Procedure TAccountstatusesCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  5607. begin
  5608. If (Fkind=AValue) then exit;
  5609. Fkind:=AValue;
  5610. MarkPropertyChanged(AIndex);
  5611. end;
  5612. //2.6.4. bug workaround
  5613. {$IFDEF VER2_6}
  5614. Procedure TAccountstatusesCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5615. begin
  5616. Case AName of
  5617. 'entries' : SetLength(Fentries,ALength);
  5618. else
  5619. Inherited SetArrayLength(AName,ALength);
  5620. end;
  5621. end;
  5622. {$ENDIF VER2_6}
  5623. { --------------------------------------------------------------------
  5624. TAccountstatusesCustomBatchResponseEntry
  5625. --------------------------------------------------------------------}
  5626. Procedure TAccountstatusesCustomBatchResponseEntry.SetaccountStatus(AIndex : Integer; const AValue : TAccountStatus);
  5627. begin
  5628. If (FaccountStatus=AValue) then exit;
  5629. FaccountStatus:=AValue;
  5630. MarkPropertyChanged(AIndex);
  5631. end;
  5632. Procedure TAccountstatusesCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  5633. begin
  5634. If (FbatchId=AValue) then exit;
  5635. FbatchId:=AValue;
  5636. MarkPropertyChanged(AIndex);
  5637. end;
  5638. Procedure TAccountstatusesCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  5639. begin
  5640. If (Ferrors=AValue) then exit;
  5641. Ferrors:=AValue;
  5642. MarkPropertyChanged(AIndex);
  5643. end;
  5644. { --------------------------------------------------------------------
  5645. TAccountstatusesListResponse
  5646. --------------------------------------------------------------------}
  5647. Procedure TAccountstatusesListResponse.Setkind(AIndex : Integer; const AValue : String);
  5648. begin
  5649. If (Fkind=AValue) then exit;
  5650. Fkind:=AValue;
  5651. MarkPropertyChanged(AIndex);
  5652. end;
  5653. Procedure TAccountstatusesListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  5654. begin
  5655. If (FnextPageToken=AValue) then exit;
  5656. FnextPageToken:=AValue;
  5657. MarkPropertyChanged(AIndex);
  5658. end;
  5659. Procedure TAccountstatusesListResponse.Setresources(AIndex : Integer; const AValue : TAccountstatusesListResponseTyperesourcesArray);
  5660. begin
  5661. If (Fresources=AValue) then exit;
  5662. Fresources:=AValue;
  5663. MarkPropertyChanged(AIndex);
  5664. end;
  5665. //2.6.4. bug workaround
  5666. {$IFDEF VER2_6}
  5667. Procedure TAccountstatusesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5668. begin
  5669. Case AName of
  5670. 'resources' : SetLength(Fresources,ALength);
  5671. else
  5672. Inherited SetArrayLength(AName,ALength);
  5673. end;
  5674. end;
  5675. {$ENDIF VER2_6}
  5676. { --------------------------------------------------------------------
  5677. TAccounttaxCustomBatchRequest
  5678. --------------------------------------------------------------------}
  5679. Procedure TAccounttaxCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TAccounttaxCustomBatchRequestTypeentriesArray);
  5680. begin
  5681. If (Fentries=AValue) then exit;
  5682. Fentries:=AValue;
  5683. MarkPropertyChanged(AIndex);
  5684. end;
  5685. //2.6.4. bug workaround
  5686. {$IFDEF VER2_6}
  5687. Procedure TAccounttaxCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  5688. begin
  5689. Case AName of
  5690. 'entries' : SetLength(Fentries,ALength);
  5691. else
  5692. Inherited SetArrayLength(AName,ALength);
  5693. end;
  5694. end;
  5695. {$ENDIF VER2_6}
  5696. { --------------------------------------------------------------------
  5697. TAccounttaxCustomBatchRequestEntry
  5698. --------------------------------------------------------------------}
  5699. Procedure TAccounttaxCustomBatchRequestEntry.SetaccountId(AIndex : Integer; const AValue : String);
  5700. begin
  5701. If (FaccountId=AValue) then exit;
  5702. FaccountId:=AValue;
  5703. MarkPropertyChanged(AIndex);
  5704. end;
  5705. Procedure TAccounttaxCustomBatchRequestEntry.SetaccountTax(AIndex : Integer; const AValue : TAccountTax);
  5706. begin
  5707. If (FaccountTax=AValue) then exit;
  5708. FaccountTax:=AValue;
  5709. MarkPropertyChanged(AIndex);
  5710. end;
  5711. Procedure TAccounttaxCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  5712. begin
  5713. If (FbatchId=AValue) then exit;
  5714. FbatchId:=AValue;
  5715. MarkPropertyChanged(AIndex);
  5716. end;
  5717. Procedure TAccounttaxCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  5718. begin
  5719. If (FmerchantId=AValue) then exit;
  5720. FmerchantId:=AValue;
  5721. MarkPropertyChanged(AIndex);
  5722. end;
  5723. Procedure TAccounttaxCustomBatchRequestEntry.Setmethod(AIndex : Integer; const AValue : String);
  5724. begin
  5725. If (Fmethod=AValue) then exit;
  5726. Fmethod:=AValue;
  5727. MarkPropertyChanged(AIndex);
  5728. end;
  5729. { --------------------------------------------------------------------
  5730. TAccounttaxCustomBatchResponse
  5731. --------------------------------------------------------------------}
  5732. Procedure TAccounttaxCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TAccounttaxCustomBatchResponseTypeentriesArray);
  5733. begin
  5734. If (Fentries=AValue) then exit;
  5735. Fentries:=AValue;
  5736. MarkPropertyChanged(AIndex);
  5737. end;
  5738. Procedure TAccounttaxCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  5739. begin
  5740. If (Fkind=AValue) then exit;
  5741. Fkind:=AValue;
  5742. MarkPropertyChanged(AIndex);
  5743. end;
  5744. //2.6.4. bug workaround
  5745. {$IFDEF VER2_6}
  5746. Procedure TAccounttaxCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5747. begin
  5748. Case AName of
  5749. 'entries' : SetLength(Fentries,ALength);
  5750. else
  5751. Inherited SetArrayLength(AName,ALength);
  5752. end;
  5753. end;
  5754. {$ENDIF VER2_6}
  5755. { --------------------------------------------------------------------
  5756. TAccounttaxCustomBatchResponseEntry
  5757. --------------------------------------------------------------------}
  5758. Procedure TAccounttaxCustomBatchResponseEntry.SetaccountTax(AIndex : Integer; const AValue : TAccountTax);
  5759. begin
  5760. If (FaccountTax=AValue) then exit;
  5761. FaccountTax:=AValue;
  5762. MarkPropertyChanged(AIndex);
  5763. end;
  5764. Procedure TAccounttaxCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  5765. begin
  5766. If (FbatchId=AValue) then exit;
  5767. FbatchId:=AValue;
  5768. MarkPropertyChanged(AIndex);
  5769. end;
  5770. Procedure TAccounttaxCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  5771. begin
  5772. If (Ferrors=AValue) then exit;
  5773. Ferrors:=AValue;
  5774. MarkPropertyChanged(AIndex);
  5775. end;
  5776. Procedure TAccounttaxCustomBatchResponseEntry.Setkind(AIndex : Integer; const AValue : String);
  5777. begin
  5778. If (Fkind=AValue) then exit;
  5779. Fkind:=AValue;
  5780. MarkPropertyChanged(AIndex);
  5781. end;
  5782. { --------------------------------------------------------------------
  5783. TAccounttaxListResponse
  5784. --------------------------------------------------------------------}
  5785. Procedure TAccounttaxListResponse.Setkind(AIndex : Integer; const AValue : String);
  5786. begin
  5787. If (Fkind=AValue) then exit;
  5788. Fkind:=AValue;
  5789. MarkPropertyChanged(AIndex);
  5790. end;
  5791. Procedure TAccounttaxListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  5792. begin
  5793. If (FnextPageToken=AValue) then exit;
  5794. FnextPageToken:=AValue;
  5795. MarkPropertyChanged(AIndex);
  5796. end;
  5797. Procedure TAccounttaxListResponse.Setresources(AIndex : Integer; const AValue : TAccounttaxListResponseTyperesourcesArray);
  5798. begin
  5799. If (Fresources=AValue) then exit;
  5800. Fresources:=AValue;
  5801. MarkPropertyChanged(AIndex);
  5802. end;
  5803. //2.6.4. bug workaround
  5804. {$IFDEF VER2_6}
  5805. Procedure TAccounttaxListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5806. begin
  5807. Case AName of
  5808. 'resources' : SetLength(Fresources,ALength);
  5809. else
  5810. Inherited SetArrayLength(AName,ALength);
  5811. end;
  5812. end;
  5813. {$ENDIF VER2_6}
  5814. { --------------------------------------------------------------------
  5815. TDatafeed
  5816. --------------------------------------------------------------------}
  5817. Procedure TDatafeed.SetattributeLanguage(AIndex : Integer; const AValue : String);
  5818. begin
  5819. If (FattributeLanguage=AValue) then exit;
  5820. FattributeLanguage:=AValue;
  5821. MarkPropertyChanged(AIndex);
  5822. end;
  5823. Procedure TDatafeed.SetcontentLanguage(AIndex : Integer; const AValue : String);
  5824. begin
  5825. If (FcontentLanguage=AValue) then exit;
  5826. FcontentLanguage:=AValue;
  5827. MarkPropertyChanged(AIndex);
  5828. end;
  5829. Procedure TDatafeed.SetcontentType(AIndex : Integer; const AValue : String);
  5830. begin
  5831. If (FcontentType=AValue) then exit;
  5832. FcontentType:=AValue;
  5833. MarkPropertyChanged(AIndex);
  5834. end;
  5835. Procedure TDatafeed.SetfetchSchedule(AIndex : Integer; const AValue : TDatafeedFetchSchedule);
  5836. begin
  5837. If (FfetchSchedule=AValue) then exit;
  5838. FfetchSchedule:=AValue;
  5839. MarkPropertyChanged(AIndex);
  5840. end;
  5841. Procedure TDatafeed.SetfileName(AIndex : Integer; const AValue : String);
  5842. begin
  5843. If (FfileName=AValue) then exit;
  5844. FfileName:=AValue;
  5845. MarkPropertyChanged(AIndex);
  5846. end;
  5847. Procedure TDatafeed.Setformat(AIndex : Integer; const AValue : TDatafeedFormat);
  5848. begin
  5849. If (Fformat=AValue) then exit;
  5850. Fformat:=AValue;
  5851. MarkPropertyChanged(AIndex);
  5852. end;
  5853. Procedure TDatafeed.Setid(AIndex : Integer; const AValue : String);
  5854. begin
  5855. If (Fid=AValue) then exit;
  5856. Fid:=AValue;
  5857. MarkPropertyChanged(AIndex);
  5858. end;
  5859. Procedure TDatafeed.SetintendedDestinations(AIndex : Integer; const AValue : TStringArray);
  5860. begin
  5861. If (FintendedDestinations=AValue) then exit;
  5862. FintendedDestinations:=AValue;
  5863. MarkPropertyChanged(AIndex);
  5864. end;
  5865. Procedure TDatafeed.Setkind(AIndex : Integer; const AValue : String);
  5866. begin
  5867. If (Fkind=AValue) then exit;
  5868. Fkind:=AValue;
  5869. MarkPropertyChanged(AIndex);
  5870. end;
  5871. Procedure TDatafeed.Setname(AIndex : Integer; const AValue : String);
  5872. begin
  5873. If (Fname=AValue) then exit;
  5874. Fname:=AValue;
  5875. MarkPropertyChanged(AIndex);
  5876. end;
  5877. Procedure TDatafeed.SettargetCountry(AIndex : Integer; const AValue : String);
  5878. begin
  5879. If (FtargetCountry=AValue) then exit;
  5880. FtargetCountry:=AValue;
  5881. MarkPropertyChanged(AIndex);
  5882. end;
  5883. //2.6.4. bug workaround
  5884. {$IFDEF VER2_6}
  5885. Procedure TDatafeed.SetArrayLength(Const AName : String; ALength : Longint);
  5886. begin
  5887. Case AName of
  5888. 'intendeddestinations' : SetLength(FintendedDestinations,ALength);
  5889. else
  5890. Inherited SetArrayLength(AName,ALength);
  5891. end;
  5892. end;
  5893. {$ENDIF VER2_6}
  5894. { --------------------------------------------------------------------
  5895. TDatafeedFetchSchedule
  5896. --------------------------------------------------------------------}
  5897. Procedure TDatafeedFetchSchedule.SetdayOfMonth(AIndex : Integer; const AValue : integer);
  5898. begin
  5899. If (FdayOfMonth=AValue) then exit;
  5900. FdayOfMonth:=AValue;
  5901. MarkPropertyChanged(AIndex);
  5902. end;
  5903. Procedure TDatafeedFetchSchedule.SetfetchUrl(AIndex : Integer; const AValue : String);
  5904. begin
  5905. If (FfetchUrl=AValue) then exit;
  5906. FfetchUrl:=AValue;
  5907. MarkPropertyChanged(AIndex);
  5908. end;
  5909. Procedure TDatafeedFetchSchedule.Sethour(AIndex : Integer; const AValue : integer);
  5910. begin
  5911. If (Fhour=AValue) then exit;
  5912. Fhour:=AValue;
  5913. MarkPropertyChanged(AIndex);
  5914. end;
  5915. Procedure TDatafeedFetchSchedule.SetminuteOfHour(AIndex : Integer; const AValue : integer);
  5916. begin
  5917. If (FminuteOfHour=AValue) then exit;
  5918. FminuteOfHour:=AValue;
  5919. MarkPropertyChanged(AIndex);
  5920. end;
  5921. Procedure TDatafeedFetchSchedule.Setpassword(AIndex : Integer; const AValue : String);
  5922. begin
  5923. If (Fpassword=AValue) then exit;
  5924. Fpassword:=AValue;
  5925. MarkPropertyChanged(AIndex);
  5926. end;
  5927. Procedure TDatafeedFetchSchedule.SettimeZone(AIndex : Integer; const AValue : String);
  5928. begin
  5929. If (FtimeZone=AValue) then exit;
  5930. FtimeZone:=AValue;
  5931. MarkPropertyChanged(AIndex);
  5932. end;
  5933. Procedure TDatafeedFetchSchedule.Setusername(AIndex : Integer; const AValue : String);
  5934. begin
  5935. If (Fusername=AValue) then exit;
  5936. Fusername:=AValue;
  5937. MarkPropertyChanged(AIndex);
  5938. end;
  5939. Procedure TDatafeedFetchSchedule.Setweekday(AIndex : Integer; const AValue : String);
  5940. begin
  5941. If (Fweekday=AValue) then exit;
  5942. Fweekday:=AValue;
  5943. MarkPropertyChanged(AIndex);
  5944. end;
  5945. { --------------------------------------------------------------------
  5946. TDatafeedFormat
  5947. --------------------------------------------------------------------}
  5948. Procedure TDatafeedFormat.SetcolumnDelimiter(AIndex : Integer; const AValue : String);
  5949. begin
  5950. If (FcolumnDelimiter=AValue) then exit;
  5951. FcolumnDelimiter:=AValue;
  5952. MarkPropertyChanged(AIndex);
  5953. end;
  5954. Procedure TDatafeedFormat.SetfileEncoding(AIndex : Integer; const AValue : String);
  5955. begin
  5956. If (FfileEncoding=AValue) then exit;
  5957. FfileEncoding:=AValue;
  5958. MarkPropertyChanged(AIndex);
  5959. end;
  5960. Procedure TDatafeedFormat.SetquotingMode(AIndex : Integer; const AValue : String);
  5961. begin
  5962. If (FquotingMode=AValue) then exit;
  5963. FquotingMode:=AValue;
  5964. MarkPropertyChanged(AIndex);
  5965. end;
  5966. { --------------------------------------------------------------------
  5967. TDatafeedStatus
  5968. --------------------------------------------------------------------}
  5969. Procedure TDatafeedStatus.SetdatafeedId(AIndex : Integer; const AValue : String);
  5970. begin
  5971. If (FdatafeedId=AValue) then exit;
  5972. FdatafeedId:=AValue;
  5973. MarkPropertyChanged(AIndex);
  5974. end;
  5975. Procedure TDatafeedStatus.Seterrors(AIndex : Integer; const AValue : TDatafeedStatusTypeerrorsArray);
  5976. begin
  5977. If (Ferrors=AValue) then exit;
  5978. Ferrors:=AValue;
  5979. MarkPropertyChanged(AIndex);
  5980. end;
  5981. Procedure TDatafeedStatus.SetitemsTotal(AIndex : Integer; const AValue : String);
  5982. begin
  5983. If (FitemsTotal=AValue) then exit;
  5984. FitemsTotal:=AValue;
  5985. MarkPropertyChanged(AIndex);
  5986. end;
  5987. Procedure TDatafeedStatus.SetitemsValid(AIndex : Integer; const AValue : String);
  5988. begin
  5989. If (FitemsValid=AValue) then exit;
  5990. FitemsValid:=AValue;
  5991. MarkPropertyChanged(AIndex);
  5992. end;
  5993. Procedure TDatafeedStatus.Setkind(AIndex : Integer; const AValue : String);
  5994. begin
  5995. If (Fkind=AValue) then exit;
  5996. Fkind:=AValue;
  5997. MarkPropertyChanged(AIndex);
  5998. end;
  5999. Procedure TDatafeedStatus.SetlastUploadDate(AIndex : Integer; const AValue : String);
  6000. begin
  6001. If (FlastUploadDate=AValue) then exit;
  6002. FlastUploadDate:=AValue;
  6003. MarkPropertyChanged(AIndex);
  6004. end;
  6005. Procedure TDatafeedStatus.SetprocessingStatus(AIndex : Integer; const AValue : String);
  6006. begin
  6007. If (FprocessingStatus=AValue) then exit;
  6008. FprocessingStatus:=AValue;
  6009. MarkPropertyChanged(AIndex);
  6010. end;
  6011. Procedure TDatafeedStatus.Setwarnings(AIndex : Integer; const AValue : TDatafeedStatusTypewarningsArray);
  6012. begin
  6013. If (Fwarnings=AValue) then exit;
  6014. Fwarnings:=AValue;
  6015. MarkPropertyChanged(AIndex);
  6016. end;
  6017. //2.6.4. bug workaround
  6018. {$IFDEF VER2_6}
  6019. Procedure TDatafeedStatus.SetArrayLength(Const AName : String; ALength : Longint);
  6020. begin
  6021. Case AName of
  6022. 'errors' : SetLength(Ferrors,ALength);
  6023. 'warnings' : SetLength(Fwarnings,ALength);
  6024. else
  6025. Inherited SetArrayLength(AName,ALength);
  6026. end;
  6027. end;
  6028. {$ENDIF VER2_6}
  6029. { --------------------------------------------------------------------
  6030. TDatafeedStatusError
  6031. --------------------------------------------------------------------}
  6032. Procedure TDatafeedStatusError.Setcode(AIndex : Integer; const AValue : String);
  6033. begin
  6034. If (Fcode=AValue) then exit;
  6035. Fcode:=AValue;
  6036. MarkPropertyChanged(AIndex);
  6037. end;
  6038. Procedure TDatafeedStatusError.Setcount(AIndex : Integer; const AValue : String);
  6039. begin
  6040. If (Fcount=AValue) then exit;
  6041. Fcount:=AValue;
  6042. MarkPropertyChanged(AIndex);
  6043. end;
  6044. Procedure TDatafeedStatusError.Setexamples(AIndex : Integer; const AValue : TDatafeedStatusErrorTypeexamplesArray);
  6045. begin
  6046. If (Fexamples=AValue) then exit;
  6047. Fexamples:=AValue;
  6048. MarkPropertyChanged(AIndex);
  6049. end;
  6050. Procedure TDatafeedStatusError.Setmessage(AIndex : Integer; const AValue : String);
  6051. begin
  6052. If (Fmessage=AValue) then exit;
  6053. Fmessage:=AValue;
  6054. MarkPropertyChanged(AIndex);
  6055. end;
  6056. //2.6.4. bug workaround
  6057. {$IFDEF VER2_6}
  6058. Procedure TDatafeedStatusError.SetArrayLength(Const AName : String; ALength : Longint);
  6059. begin
  6060. Case AName of
  6061. 'examples' : SetLength(Fexamples,ALength);
  6062. else
  6063. Inherited SetArrayLength(AName,ALength);
  6064. end;
  6065. end;
  6066. {$ENDIF VER2_6}
  6067. { --------------------------------------------------------------------
  6068. TDatafeedStatusExample
  6069. --------------------------------------------------------------------}
  6070. Procedure TDatafeedStatusExample.SetitemId(AIndex : Integer; const AValue : String);
  6071. begin
  6072. If (FitemId=AValue) then exit;
  6073. FitemId:=AValue;
  6074. MarkPropertyChanged(AIndex);
  6075. end;
  6076. Procedure TDatafeedStatusExample.SetlineNumber(AIndex : Integer; const AValue : String);
  6077. begin
  6078. If (FlineNumber=AValue) then exit;
  6079. FlineNumber:=AValue;
  6080. MarkPropertyChanged(AIndex);
  6081. end;
  6082. Procedure TDatafeedStatusExample.Setvalue(AIndex : Integer; const AValue : String);
  6083. begin
  6084. If (Fvalue=AValue) then exit;
  6085. Fvalue:=AValue;
  6086. MarkPropertyChanged(AIndex);
  6087. end;
  6088. { --------------------------------------------------------------------
  6089. TDatafeedsCustomBatchRequest
  6090. --------------------------------------------------------------------}
  6091. Procedure TDatafeedsCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TDatafeedsCustomBatchRequestTypeentriesArray);
  6092. begin
  6093. If (Fentries=AValue) then exit;
  6094. Fentries:=AValue;
  6095. MarkPropertyChanged(AIndex);
  6096. end;
  6097. //2.6.4. bug workaround
  6098. {$IFDEF VER2_6}
  6099. Procedure TDatafeedsCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  6100. begin
  6101. Case AName of
  6102. 'entries' : SetLength(Fentries,ALength);
  6103. else
  6104. Inherited SetArrayLength(AName,ALength);
  6105. end;
  6106. end;
  6107. {$ENDIF VER2_6}
  6108. { --------------------------------------------------------------------
  6109. TDatafeedsCustomBatchRequestEntry
  6110. --------------------------------------------------------------------}
  6111. Procedure TDatafeedsCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  6112. begin
  6113. If (FbatchId=AValue) then exit;
  6114. FbatchId:=AValue;
  6115. MarkPropertyChanged(AIndex);
  6116. end;
  6117. Procedure TDatafeedsCustomBatchRequestEntry.Setdatafeed(AIndex : Integer; const AValue : TDatafeed);
  6118. begin
  6119. If (Fdatafeed=AValue) then exit;
  6120. Fdatafeed:=AValue;
  6121. MarkPropertyChanged(AIndex);
  6122. end;
  6123. Procedure TDatafeedsCustomBatchRequestEntry.SetdatafeedId(AIndex : Integer; const AValue : String);
  6124. begin
  6125. If (FdatafeedId=AValue) then exit;
  6126. FdatafeedId:=AValue;
  6127. MarkPropertyChanged(AIndex);
  6128. end;
  6129. Procedure TDatafeedsCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  6130. begin
  6131. If (FmerchantId=AValue) then exit;
  6132. FmerchantId:=AValue;
  6133. MarkPropertyChanged(AIndex);
  6134. end;
  6135. Procedure TDatafeedsCustomBatchRequestEntry.Setmethod(AIndex : Integer; const AValue : String);
  6136. begin
  6137. If (Fmethod=AValue) then exit;
  6138. Fmethod:=AValue;
  6139. MarkPropertyChanged(AIndex);
  6140. end;
  6141. { --------------------------------------------------------------------
  6142. TDatafeedsCustomBatchResponse
  6143. --------------------------------------------------------------------}
  6144. Procedure TDatafeedsCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TDatafeedsCustomBatchResponseTypeentriesArray);
  6145. begin
  6146. If (Fentries=AValue) then exit;
  6147. Fentries:=AValue;
  6148. MarkPropertyChanged(AIndex);
  6149. end;
  6150. Procedure TDatafeedsCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  6151. begin
  6152. If (Fkind=AValue) then exit;
  6153. Fkind:=AValue;
  6154. MarkPropertyChanged(AIndex);
  6155. end;
  6156. //2.6.4. bug workaround
  6157. {$IFDEF VER2_6}
  6158. Procedure TDatafeedsCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  6159. begin
  6160. Case AName of
  6161. 'entries' : SetLength(Fentries,ALength);
  6162. else
  6163. Inherited SetArrayLength(AName,ALength);
  6164. end;
  6165. end;
  6166. {$ENDIF VER2_6}
  6167. { --------------------------------------------------------------------
  6168. TDatafeedsCustomBatchResponseEntry
  6169. --------------------------------------------------------------------}
  6170. Procedure TDatafeedsCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  6171. begin
  6172. If (FbatchId=AValue) then exit;
  6173. FbatchId:=AValue;
  6174. MarkPropertyChanged(AIndex);
  6175. end;
  6176. Procedure TDatafeedsCustomBatchResponseEntry.Setdatafeed(AIndex : Integer; const AValue : TDatafeed);
  6177. begin
  6178. If (Fdatafeed=AValue) then exit;
  6179. Fdatafeed:=AValue;
  6180. MarkPropertyChanged(AIndex);
  6181. end;
  6182. Procedure TDatafeedsCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  6183. begin
  6184. If (Ferrors=AValue) then exit;
  6185. Ferrors:=AValue;
  6186. MarkPropertyChanged(AIndex);
  6187. end;
  6188. { --------------------------------------------------------------------
  6189. TDatafeedsListResponse
  6190. --------------------------------------------------------------------}
  6191. Procedure TDatafeedsListResponse.Setkind(AIndex : Integer; const AValue : String);
  6192. begin
  6193. If (Fkind=AValue) then exit;
  6194. Fkind:=AValue;
  6195. MarkPropertyChanged(AIndex);
  6196. end;
  6197. Procedure TDatafeedsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  6198. begin
  6199. If (FnextPageToken=AValue) then exit;
  6200. FnextPageToken:=AValue;
  6201. MarkPropertyChanged(AIndex);
  6202. end;
  6203. Procedure TDatafeedsListResponse.Setresources(AIndex : Integer; const AValue : TDatafeedsListResponseTyperesourcesArray);
  6204. begin
  6205. If (Fresources=AValue) then exit;
  6206. Fresources:=AValue;
  6207. MarkPropertyChanged(AIndex);
  6208. end;
  6209. //2.6.4. bug workaround
  6210. {$IFDEF VER2_6}
  6211. Procedure TDatafeedsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  6212. begin
  6213. Case AName of
  6214. 'resources' : SetLength(Fresources,ALength);
  6215. else
  6216. Inherited SetArrayLength(AName,ALength);
  6217. end;
  6218. end;
  6219. {$ENDIF VER2_6}
  6220. { --------------------------------------------------------------------
  6221. TDatafeedstatusesCustomBatchRequest
  6222. --------------------------------------------------------------------}
  6223. Procedure TDatafeedstatusesCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TDatafeedstatusesCustomBatchRequestTypeentriesArray);
  6224. begin
  6225. If (Fentries=AValue) then exit;
  6226. Fentries:=AValue;
  6227. MarkPropertyChanged(AIndex);
  6228. end;
  6229. //2.6.4. bug workaround
  6230. {$IFDEF VER2_6}
  6231. Procedure TDatafeedstatusesCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  6232. begin
  6233. Case AName of
  6234. 'entries' : SetLength(Fentries,ALength);
  6235. else
  6236. Inherited SetArrayLength(AName,ALength);
  6237. end;
  6238. end;
  6239. {$ENDIF VER2_6}
  6240. { --------------------------------------------------------------------
  6241. TDatafeedstatusesCustomBatchRequestEntry
  6242. --------------------------------------------------------------------}
  6243. Procedure TDatafeedstatusesCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  6244. begin
  6245. If (FbatchId=AValue) then exit;
  6246. FbatchId:=AValue;
  6247. MarkPropertyChanged(AIndex);
  6248. end;
  6249. Procedure TDatafeedstatusesCustomBatchRequestEntry.SetdatafeedId(AIndex : Integer; const AValue : String);
  6250. begin
  6251. If (FdatafeedId=AValue) then exit;
  6252. FdatafeedId:=AValue;
  6253. MarkPropertyChanged(AIndex);
  6254. end;
  6255. Procedure TDatafeedstatusesCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  6256. begin
  6257. If (FmerchantId=AValue) then exit;
  6258. FmerchantId:=AValue;
  6259. MarkPropertyChanged(AIndex);
  6260. end;
  6261. Procedure TDatafeedstatusesCustomBatchRequestEntry.Setmethod(AIndex : Integer; const AValue : String);
  6262. begin
  6263. If (Fmethod=AValue) then exit;
  6264. Fmethod:=AValue;
  6265. MarkPropertyChanged(AIndex);
  6266. end;
  6267. { --------------------------------------------------------------------
  6268. TDatafeedstatusesCustomBatchResponse
  6269. --------------------------------------------------------------------}
  6270. Procedure TDatafeedstatusesCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TDatafeedstatusesCustomBatchResponseTypeentriesArray);
  6271. begin
  6272. If (Fentries=AValue) then exit;
  6273. Fentries:=AValue;
  6274. MarkPropertyChanged(AIndex);
  6275. end;
  6276. Procedure TDatafeedstatusesCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  6277. begin
  6278. If (Fkind=AValue) then exit;
  6279. Fkind:=AValue;
  6280. MarkPropertyChanged(AIndex);
  6281. end;
  6282. //2.6.4. bug workaround
  6283. {$IFDEF VER2_6}
  6284. Procedure TDatafeedstatusesCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  6285. begin
  6286. Case AName of
  6287. 'entries' : SetLength(Fentries,ALength);
  6288. else
  6289. Inherited SetArrayLength(AName,ALength);
  6290. end;
  6291. end;
  6292. {$ENDIF VER2_6}
  6293. { --------------------------------------------------------------------
  6294. TDatafeedstatusesCustomBatchResponseEntry
  6295. --------------------------------------------------------------------}
  6296. Procedure TDatafeedstatusesCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  6297. begin
  6298. If (FbatchId=AValue) then exit;
  6299. FbatchId:=AValue;
  6300. MarkPropertyChanged(AIndex);
  6301. end;
  6302. Procedure TDatafeedstatusesCustomBatchResponseEntry.SetdatafeedStatus(AIndex : Integer; const AValue : TDatafeedStatus);
  6303. begin
  6304. If (FdatafeedStatus=AValue) then exit;
  6305. FdatafeedStatus:=AValue;
  6306. MarkPropertyChanged(AIndex);
  6307. end;
  6308. Procedure TDatafeedstatusesCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  6309. begin
  6310. If (Ferrors=AValue) then exit;
  6311. Ferrors:=AValue;
  6312. MarkPropertyChanged(AIndex);
  6313. end;
  6314. { --------------------------------------------------------------------
  6315. TDatafeedstatusesListResponse
  6316. --------------------------------------------------------------------}
  6317. Procedure TDatafeedstatusesListResponse.Setkind(AIndex : Integer; const AValue : String);
  6318. begin
  6319. If (Fkind=AValue) then exit;
  6320. Fkind:=AValue;
  6321. MarkPropertyChanged(AIndex);
  6322. end;
  6323. Procedure TDatafeedstatusesListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  6324. begin
  6325. If (FnextPageToken=AValue) then exit;
  6326. FnextPageToken:=AValue;
  6327. MarkPropertyChanged(AIndex);
  6328. end;
  6329. Procedure TDatafeedstatusesListResponse.Setresources(AIndex : Integer; const AValue : TDatafeedstatusesListResponseTyperesourcesArray);
  6330. begin
  6331. If (Fresources=AValue) then exit;
  6332. Fresources:=AValue;
  6333. MarkPropertyChanged(AIndex);
  6334. end;
  6335. //2.6.4. bug workaround
  6336. {$IFDEF VER2_6}
  6337. Procedure TDatafeedstatusesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  6338. begin
  6339. Case AName of
  6340. 'resources' : SetLength(Fresources,ALength);
  6341. else
  6342. Inherited SetArrayLength(AName,ALength);
  6343. end;
  6344. end;
  6345. {$ENDIF VER2_6}
  6346. { --------------------------------------------------------------------
  6347. TError
  6348. --------------------------------------------------------------------}
  6349. Procedure TError.Setdomain(AIndex : Integer; const AValue : String);
  6350. begin
  6351. If (Fdomain=AValue) then exit;
  6352. Fdomain:=AValue;
  6353. MarkPropertyChanged(AIndex);
  6354. end;
  6355. Procedure TError.Setmessage(AIndex : Integer; const AValue : String);
  6356. begin
  6357. If (Fmessage=AValue) then exit;
  6358. Fmessage:=AValue;
  6359. MarkPropertyChanged(AIndex);
  6360. end;
  6361. Procedure TError.Setreason(AIndex : Integer; const AValue : String);
  6362. begin
  6363. If (Freason=AValue) then exit;
  6364. Freason:=AValue;
  6365. MarkPropertyChanged(AIndex);
  6366. end;
  6367. { --------------------------------------------------------------------
  6368. TErrors
  6369. --------------------------------------------------------------------}
  6370. Procedure TErrors.Setcode(AIndex : Integer; const AValue : integer);
  6371. begin
  6372. If (Fcode=AValue) then exit;
  6373. Fcode:=AValue;
  6374. MarkPropertyChanged(AIndex);
  6375. end;
  6376. Procedure TErrors.Seterrors(AIndex : Integer; const AValue : TErrorsTypeerrorsArray);
  6377. begin
  6378. If (Ferrors=AValue) then exit;
  6379. Ferrors:=AValue;
  6380. MarkPropertyChanged(AIndex);
  6381. end;
  6382. Procedure TErrors.Setmessage(AIndex : Integer; const AValue : String);
  6383. begin
  6384. If (Fmessage=AValue) then exit;
  6385. Fmessage:=AValue;
  6386. MarkPropertyChanged(AIndex);
  6387. end;
  6388. //2.6.4. bug workaround
  6389. {$IFDEF VER2_6}
  6390. Procedure TErrors.SetArrayLength(Const AName : String; ALength : Longint);
  6391. begin
  6392. Case AName of
  6393. 'errors' : SetLength(Ferrors,ALength);
  6394. else
  6395. Inherited SetArrayLength(AName,ALength);
  6396. end;
  6397. end;
  6398. {$ENDIF VER2_6}
  6399. { --------------------------------------------------------------------
  6400. TInstallment
  6401. --------------------------------------------------------------------}
  6402. Procedure TInstallment.Setamount(AIndex : Integer; const AValue : TPrice);
  6403. begin
  6404. If (Famount=AValue) then exit;
  6405. Famount:=AValue;
  6406. MarkPropertyChanged(AIndex);
  6407. end;
  6408. Procedure TInstallment.Setmonths(AIndex : Integer; const AValue : String);
  6409. begin
  6410. If (Fmonths=AValue) then exit;
  6411. Fmonths:=AValue;
  6412. MarkPropertyChanged(AIndex);
  6413. end;
  6414. { --------------------------------------------------------------------
  6415. TInventory
  6416. --------------------------------------------------------------------}
  6417. Procedure TInventory.Setavailability(AIndex : Integer; const AValue : String);
  6418. begin
  6419. If (Favailability=AValue) then exit;
  6420. Favailability:=AValue;
  6421. MarkPropertyChanged(AIndex);
  6422. end;
  6423. Procedure TInventory.Setinstallment(AIndex : Integer; const AValue : TInstallment);
  6424. begin
  6425. If (Finstallment=AValue) then exit;
  6426. Finstallment:=AValue;
  6427. MarkPropertyChanged(AIndex);
  6428. end;
  6429. Procedure TInventory.Setkind(AIndex : Integer; const AValue : String);
  6430. begin
  6431. If (Fkind=AValue) then exit;
  6432. Fkind:=AValue;
  6433. MarkPropertyChanged(AIndex);
  6434. end;
  6435. Procedure TInventory.SetloyaltyPoints(AIndex : Integer; const AValue : TLoyaltyPoints);
  6436. begin
  6437. If (FloyaltyPoints=AValue) then exit;
  6438. FloyaltyPoints:=AValue;
  6439. MarkPropertyChanged(AIndex);
  6440. end;
  6441. Procedure TInventory.Setprice(AIndex : Integer; const AValue : TPrice);
  6442. begin
  6443. If (Fprice=AValue) then exit;
  6444. Fprice:=AValue;
  6445. MarkPropertyChanged(AIndex);
  6446. end;
  6447. Procedure TInventory.Setquantity(AIndex : Integer; const AValue : integer);
  6448. begin
  6449. If (Fquantity=AValue) then exit;
  6450. Fquantity:=AValue;
  6451. MarkPropertyChanged(AIndex);
  6452. end;
  6453. Procedure TInventory.SetsalePrice(AIndex : Integer; const AValue : TPrice);
  6454. begin
  6455. If (FsalePrice=AValue) then exit;
  6456. FsalePrice:=AValue;
  6457. MarkPropertyChanged(AIndex);
  6458. end;
  6459. Procedure TInventory.SetsalePriceEffectiveDate(AIndex : Integer; const AValue : String);
  6460. begin
  6461. If (FsalePriceEffectiveDate=AValue) then exit;
  6462. FsalePriceEffectiveDate:=AValue;
  6463. MarkPropertyChanged(AIndex);
  6464. end;
  6465. Procedure TInventory.SetsellOnGoogleQuantity(AIndex : Integer; const AValue : integer);
  6466. begin
  6467. If (FsellOnGoogleQuantity=AValue) then exit;
  6468. FsellOnGoogleQuantity:=AValue;
  6469. MarkPropertyChanged(AIndex);
  6470. end;
  6471. { --------------------------------------------------------------------
  6472. TInventoryCustomBatchRequest
  6473. --------------------------------------------------------------------}
  6474. Procedure TInventoryCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TInventoryCustomBatchRequestTypeentriesArray);
  6475. begin
  6476. If (Fentries=AValue) then exit;
  6477. Fentries:=AValue;
  6478. MarkPropertyChanged(AIndex);
  6479. end;
  6480. //2.6.4. bug workaround
  6481. {$IFDEF VER2_6}
  6482. Procedure TInventoryCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  6483. begin
  6484. Case AName of
  6485. 'entries' : SetLength(Fentries,ALength);
  6486. else
  6487. Inherited SetArrayLength(AName,ALength);
  6488. end;
  6489. end;
  6490. {$ENDIF VER2_6}
  6491. { --------------------------------------------------------------------
  6492. TInventoryCustomBatchRequestEntry
  6493. --------------------------------------------------------------------}
  6494. Procedure TInventoryCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  6495. begin
  6496. If (FbatchId=AValue) then exit;
  6497. FbatchId:=AValue;
  6498. MarkPropertyChanged(AIndex);
  6499. end;
  6500. Procedure TInventoryCustomBatchRequestEntry.Setinventory(AIndex : Integer; const AValue : TInventory);
  6501. begin
  6502. If (Finventory=AValue) then exit;
  6503. Finventory:=AValue;
  6504. MarkPropertyChanged(AIndex);
  6505. end;
  6506. Procedure TInventoryCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  6507. begin
  6508. If (FmerchantId=AValue) then exit;
  6509. FmerchantId:=AValue;
  6510. MarkPropertyChanged(AIndex);
  6511. end;
  6512. Procedure TInventoryCustomBatchRequestEntry.SetproductId(AIndex : Integer; const AValue : String);
  6513. begin
  6514. If (FproductId=AValue) then exit;
  6515. FproductId:=AValue;
  6516. MarkPropertyChanged(AIndex);
  6517. end;
  6518. Procedure TInventoryCustomBatchRequestEntry.SetstoreCode(AIndex : Integer; const AValue : String);
  6519. begin
  6520. If (FstoreCode=AValue) then exit;
  6521. FstoreCode:=AValue;
  6522. MarkPropertyChanged(AIndex);
  6523. end;
  6524. { --------------------------------------------------------------------
  6525. TInventoryCustomBatchResponse
  6526. --------------------------------------------------------------------}
  6527. Procedure TInventoryCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TInventoryCustomBatchResponseTypeentriesArray);
  6528. begin
  6529. If (Fentries=AValue) then exit;
  6530. Fentries:=AValue;
  6531. MarkPropertyChanged(AIndex);
  6532. end;
  6533. Procedure TInventoryCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  6534. begin
  6535. If (Fkind=AValue) then exit;
  6536. Fkind:=AValue;
  6537. MarkPropertyChanged(AIndex);
  6538. end;
  6539. //2.6.4. bug workaround
  6540. {$IFDEF VER2_6}
  6541. Procedure TInventoryCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  6542. begin
  6543. Case AName of
  6544. 'entries' : SetLength(Fentries,ALength);
  6545. else
  6546. Inherited SetArrayLength(AName,ALength);
  6547. end;
  6548. end;
  6549. {$ENDIF VER2_6}
  6550. { --------------------------------------------------------------------
  6551. TInventoryCustomBatchResponseEntry
  6552. --------------------------------------------------------------------}
  6553. Procedure TInventoryCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  6554. begin
  6555. If (FbatchId=AValue) then exit;
  6556. FbatchId:=AValue;
  6557. MarkPropertyChanged(AIndex);
  6558. end;
  6559. Procedure TInventoryCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  6560. begin
  6561. If (Ferrors=AValue) then exit;
  6562. Ferrors:=AValue;
  6563. MarkPropertyChanged(AIndex);
  6564. end;
  6565. Procedure TInventoryCustomBatchResponseEntry.Setkind(AIndex : Integer; const AValue : String);
  6566. begin
  6567. If (Fkind=AValue) then exit;
  6568. Fkind:=AValue;
  6569. MarkPropertyChanged(AIndex);
  6570. end;
  6571. { --------------------------------------------------------------------
  6572. TInventorySetRequest
  6573. --------------------------------------------------------------------}
  6574. Procedure TInventorySetRequest.Setavailability(AIndex : Integer; const AValue : String);
  6575. begin
  6576. If (Favailability=AValue) then exit;
  6577. Favailability:=AValue;
  6578. MarkPropertyChanged(AIndex);
  6579. end;
  6580. Procedure TInventorySetRequest.Setinstallment(AIndex : Integer; const AValue : TInstallment);
  6581. begin
  6582. If (Finstallment=AValue) then exit;
  6583. Finstallment:=AValue;
  6584. MarkPropertyChanged(AIndex);
  6585. end;
  6586. Procedure TInventorySetRequest.SetloyaltyPoints(AIndex : Integer; const AValue : TLoyaltyPoints);
  6587. begin
  6588. If (FloyaltyPoints=AValue) then exit;
  6589. FloyaltyPoints:=AValue;
  6590. MarkPropertyChanged(AIndex);
  6591. end;
  6592. Procedure TInventorySetRequest.Setprice(AIndex : Integer; const AValue : TPrice);
  6593. begin
  6594. If (Fprice=AValue) then exit;
  6595. Fprice:=AValue;
  6596. MarkPropertyChanged(AIndex);
  6597. end;
  6598. Procedure TInventorySetRequest.Setquantity(AIndex : Integer; const AValue : integer);
  6599. begin
  6600. If (Fquantity=AValue) then exit;
  6601. Fquantity:=AValue;
  6602. MarkPropertyChanged(AIndex);
  6603. end;
  6604. Procedure TInventorySetRequest.SetsalePrice(AIndex : Integer; const AValue : TPrice);
  6605. begin
  6606. If (FsalePrice=AValue) then exit;
  6607. FsalePrice:=AValue;
  6608. MarkPropertyChanged(AIndex);
  6609. end;
  6610. Procedure TInventorySetRequest.SetsalePriceEffectiveDate(AIndex : Integer; const AValue : String);
  6611. begin
  6612. If (FsalePriceEffectiveDate=AValue) then exit;
  6613. FsalePriceEffectiveDate:=AValue;
  6614. MarkPropertyChanged(AIndex);
  6615. end;
  6616. Procedure TInventorySetRequest.SetsellOnGoogleQuantity(AIndex : Integer; const AValue : integer);
  6617. begin
  6618. If (FsellOnGoogleQuantity=AValue) then exit;
  6619. FsellOnGoogleQuantity:=AValue;
  6620. MarkPropertyChanged(AIndex);
  6621. end;
  6622. { --------------------------------------------------------------------
  6623. TInventorySetResponse
  6624. --------------------------------------------------------------------}
  6625. Procedure TInventorySetResponse.Setkind(AIndex : Integer; const AValue : String);
  6626. begin
  6627. If (Fkind=AValue) then exit;
  6628. Fkind:=AValue;
  6629. MarkPropertyChanged(AIndex);
  6630. end;
  6631. { --------------------------------------------------------------------
  6632. TLoyaltyPoints
  6633. --------------------------------------------------------------------}
  6634. Procedure TLoyaltyPoints.Setname(AIndex : Integer; const AValue : String);
  6635. begin
  6636. If (Fname=AValue) then exit;
  6637. Fname:=AValue;
  6638. MarkPropertyChanged(AIndex);
  6639. end;
  6640. Procedure TLoyaltyPoints.SetpointsValue(AIndex : Integer; const AValue : String);
  6641. begin
  6642. If (FpointsValue=AValue) then exit;
  6643. FpointsValue:=AValue;
  6644. MarkPropertyChanged(AIndex);
  6645. end;
  6646. Procedure TLoyaltyPoints.Setratio(AIndex : Integer; const AValue : double);
  6647. begin
  6648. If (Fratio=AValue) then exit;
  6649. Fratio:=AValue;
  6650. MarkPropertyChanged(AIndex);
  6651. end;
  6652. { --------------------------------------------------------------------
  6653. TOrder
  6654. --------------------------------------------------------------------}
  6655. Procedure TOrder.Setacknowledged(AIndex : Integer; const AValue : boolean);
  6656. begin
  6657. If (Facknowledged=AValue) then exit;
  6658. Facknowledged:=AValue;
  6659. MarkPropertyChanged(AIndex);
  6660. end;
  6661. Procedure TOrder.Setcustomer(AIndex : Integer; const AValue : TOrderCustomer);
  6662. begin
  6663. If (Fcustomer=AValue) then exit;
  6664. Fcustomer:=AValue;
  6665. MarkPropertyChanged(AIndex);
  6666. end;
  6667. Procedure TOrder.SetdeliveryDetails(AIndex : Integer; const AValue : TOrderDeliveryDetails);
  6668. begin
  6669. If (FdeliveryDetails=AValue) then exit;
  6670. FdeliveryDetails:=AValue;
  6671. MarkPropertyChanged(AIndex);
  6672. end;
  6673. Procedure TOrder.Setid(AIndex : Integer; const AValue : String);
  6674. begin
  6675. If (Fid=AValue) then exit;
  6676. Fid:=AValue;
  6677. MarkPropertyChanged(AIndex);
  6678. end;
  6679. Procedure TOrder.Setkind(AIndex : Integer; const AValue : String);
  6680. begin
  6681. If (Fkind=AValue) then exit;
  6682. Fkind:=AValue;
  6683. MarkPropertyChanged(AIndex);
  6684. end;
  6685. Procedure TOrder.SetlineItems(AIndex : Integer; const AValue : TOrderTypelineItemsArray);
  6686. begin
  6687. If (FlineItems=AValue) then exit;
  6688. FlineItems:=AValue;
  6689. MarkPropertyChanged(AIndex);
  6690. end;
  6691. Procedure TOrder.SetmerchantId(AIndex : Integer; const AValue : String);
  6692. begin
  6693. If (FmerchantId=AValue) then exit;
  6694. FmerchantId:=AValue;
  6695. MarkPropertyChanged(AIndex);
  6696. end;
  6697. Procedure TOrder.SetmerchantOrderId(AIndex : Integer; const AValue : String);
  6698. begin
  6699. If (FmerchantOrderId=AValue) then exit;
  6700. FmerchantOrderId:=AValue;
  6701. MarkPropertyChanged(AIndex);
  6702. end;
  6703. Procedure TOrder.SetnetAmount(AIndex : Integer; const AValue : TPrice);
  6704. begin
  6705. If (FnetAmount=AValue) then exit;
  6706. FnetAmount:=AValue;
  6707. MarkPropertyChanged(AIndex);
  6708. end;
  6709. Procedure TOrder.SetpaymentMethod(AIndex : Integer; const AValue : TOrderPaymentMethod);
  6710. begin
  6711. If (FpaymentMethod=AValue) then exit;
  6712. FpaymentMethod:=AValue;
  6713. MarkPropertyChanged(AIndex);
  6714. end;
  6715. Procedure TOrder.SetpaymentStatus(AIndex : Integer; const AValue : String);
  6716. begin
  6717. If (FpaymentStatus=AValue) then exit;
  6718. FpaymentStatus:=AValue;
  6719. MarkPropertyChanged(AIndex);
  6720. end;
  6721. Procedure TOrder.SetplacedDate(AIndex : Integer; const AValue : String);
  6722. begin
  6723. If (FplacedDate=AValue) then exit;
  6724. FplacedDate:=AValue;
  6725. MarkPropertyChanged(AIndex);
  6726. end;
  6727. Procedure TOrder.Setpromotions(AIndex : Integer; const AValue : TOrderTypepromotionsArray);
  6728. begin
  6729. If (Fpromotions=AValue) then exit;
  6730. Fpromotions:=AValue;
  6731. MarkPropertyChanged(AIndex);
  6732. end;
  6733. Procedure TOrder.Setrefunds(AIndex : Integer; const AValue : TOrderTyperefundsArray);
  6734. begin
  6735. If (Frefunds=AValue) then exit;
  6736. Frefunds:=AValue;
  6737. MarkPropertyChanged(AIndex);
  6738. end;
  6739. Procedure TOrder.Setshipments(AIndex : Integer; const AValue : TOrderTypeshipmentsArray);
  6740. begin
  6741. If (Fshipments=AValue) then exit;
  6742. Fshipments:=AValue;
  6743. MarkPropertyChanged(AIndex);
  6744. end;
  6745. Procedure TOrder.SetshippingCost(AIndex : Integer; const AValue : TPrice);
  6746. begin
  6747. If (FshippingCost=AValue) then exit;
  6748. FshippingCost:=AValue;
  6749. MarkPropertyChanged(AIndex);
  6750. end;
  6751. Procedure TOrder.SetshippingCostTax(AIndex : Integer; const AValue : TPrice);
  6752. begin
  6753. If (FshippingCostTax=AValue) then exit;
  6754. FshippingCostTax:=AValue;
  6755. MarkPropertyChanged(AIndex);
  6756. end;
  6757. Procedure TOrder.SetshippingOption(AIndex : Integer; const AValue : String);
  6758. begin
  6759. If (FshippingOption=AValue) then exit;
  6760. FshippingOption:=AValue;
  6761. MarkPropertyChanged(AIndex);
  6762. end;
  6763. Procedure TOrder.Setstatus(AIndex : Integer; const AValue : String);
  6764. begin
  6765. If (Fstatus=AValue) then exit;
  6766. Fstatus:=AValue;
  6767. MarkPropertyChanged(AIndex);
  6768. end;
  6769. //2.6.4. bug workaround
  6770. {$IFDEF VER2_6}
  6771. Procedure TOrder.SetArrayLength(Const AName : String; ALength : Longint);
  6772. begin
  6773. Case AName of
  6774. 'lineitems' : SetLength(FlineItems,ALength);
  6775. 'promotions' : SetLength(Fpromotions,ALength);
  6776. 'refunds' : SetLength(Frefunds,ALength);
  6777. 'shipments' : SetLength(Fshipments,ALength);
  6778. else
  6779. Inherited SetArrayLength(AName,ALength);
  6780. end;
  6781. end;
  6782. {$ENDIF VER2_6}
  6783. { --------------------------------------------------------------------
  6784. TOrderAddress
  6785. --------------------------------------------------------------------}
  6786. Procedure TOrderAddress.Setcountry(AIndex : Integer; const AValue : String);
  6787. begin
  6788. If (Fcountry=AValue) then exit;
  6789. Fcountry:=AValue;
  6790. MarkPropertyChanged(AIndex);
  6791. end;
  6792. Procedure TOrderAddress.SetfullAddress(AIndex : Integer; const AValue : TStringArray);
  6793. begin
  6794. If (FfullAddress=AValue) then exit;
  6795. FfullAddress:=AValue;
  6796. MarkPropertyChanged(AIndex);
  6797. end;
  6798. Procedure TOrderAddress.SetisPostOfficeBox(AIndex : Integer; const AValue : boolean);
  6799. begin
  6800. If (FisPostOfficeBox=AValue) then exit;
  6801. FisPostOfficeBox:=AValue;
  6802. MarkPropertyChanged(AIndex);
  6803. end;
  6804. Procedure TOrderAddress.Setlocality(AIndex : Integer; const AValue : String);
  6805. begin
  6806. If (Flocality=AValue) then exit;
  6807. Flocality:=AValue;
  6808. MarkPropertyChanged(AIndex);
  6809. end;
  6810. Procedure TOrderAddress.SetpostalCode(AIndex : Integer; const AValue : String);
  6811. begin
  6812. If (FpostalCode=AValue) then exit;
  6813. FpostalCode:=AValue;
  6814. MarkPropertyChanged(AIndex);
  6815. end;
  6816. Procedure TOrderAddress.SetrecipientName(AIndex : Integer; const AValue : String);
  6817. begin
  6818. If (FrecipientName=AValue) then exit;
  6819. FrecipientName:=AValue;
  6820. MarkPropertyChanged(AIndex);
  6821. end;
  6822. Procedure TOrderAddress.Setregion(AIndex : Integer; const AValue : String);
  6823. begin
  6824. If (Fregion=AValue) then exit;
  6825. Fregion:=AValue;
  6826. MarkPropertyChanged(AIndex);
  6827. end;
  6828. Procedure TOrderAddress.SetstreetAddress(AIndex : Integer; const AValue : TStringArray);
  6829. begin
  6830. If (FstreetAddress=AValue) then exit;
  6831. FstreetAddress:=AValue;
  6832. MarkPropertyChanged(AIndex);
  6833. end;
  6834. //2.6.4. bug workaround
  6835. {$IFDEF VER2_6}
  6836. Procedure TOrderAddress.SetArrayLength(Const AName : String; ALength : Longint);
  6837. begin
  6838. Case AName of
  6839. 'fulladdress' : SetLength(FfullAddress,ALength);
  6840. 'streetaddress' : SetLength(FstreetAddress,ALength);
  6841. else
  6842. Inherited SetArrayLength(AName,ALength);
  6843. end;
  6844. end;
  6845. {$ENDIF VER2_6}
  6846. { --------------------------------------------------------------------
  6847. TOrderCancellation
  6848. --------------------------------------------------------------------}
  6849. Procedure TOrderCancellation.Setactor(AIndex : Integer; const AValue : String);
  6850. begin
  6851. If (Factor=AValue) then exit;
  6852. Factor:=AValue;
  6853. MarkPropertyChanged(AIndex);
  6854. end;
  6855. Procedure TOrderCancellation.SetcreationDate(AIndex : Integer; const AValue : String);
  6856. begin
  6857. If (FcreationDate=AValue) then exit;
  6858. FcreationDate:=AValue;
  6859. MarkPropertyChanged(AIndex);
  6860. end;
  6861. Procedure TOrderCancellation.Setquantity(AIndex : Integer; const AValue : integer);
  6862. begin
  6863. If (Fquantity=AValue) then exit;
  6864. Fquantity:=AValue;
  6865. MarkPropertyChanged(AIndex);
  6866. end;
  6867. Procedure TOrderCancellation.Setreason(AIndex : Integer; const AValue : String);
  6868. begin
  6869. If (Freason=AValue) then exit;
  6870. Freason:=AValue;
  6871. MarkPropertyChanged(AIndex);
  6872. end;
  6873. Procedure TOrderCancellation.SetreasonText(AIndex : Integer; const AValue : String);
  6874. begin
  6875. If (FreasonText=AValue) then exit;
  6876. FreasonText:=AValue;
  6877. MarkPropertyChanged(AIndex);
  6878. end;
  6879. { --------------------------------------------------------------------
  6880. TOrderCustomer
  6881. --------------------------------------------------------------------}
  6882. Procedure TOrderCustomer.Setemail(AIndex : Integer; const AValue : String);
  6883. begin
  6884. If (Femail=AValue) then exit;
  6885. Femail:=AValue;
  6886. MarkPropertyChanged(AIndex);
  6887. end;
  6888. Procedure TOrderCustomer.SetexplicitMarketingPreference(AIndex : Integer; const AValue : boolean);
  6889. begin
  6890. If (FexplicitMarketingPreference=AValue) then exit;
  6891. FexplicitMarketingPreference:=AValue;
  6892. MarkPropertyChanged(AIndex);
  6893. end;
  6894. Procedure TOrderCustomer.SetfullName(AIndex : Integer; const AValue : String);
  6895. begin
  6896. If (FfullName=AValue) then exit;
  6897. FfullName:=AValue;
  6898. MarkPropertyChanged(AIndex);
  6899. end;
  6900. { --------------------------------------------------------------------
  6901. TOrderDeliveryDetails
  6902. --------------------------------------------------------------------}
  6903. Procedure TOrderDeliveryDetails.Setaddress(AIndex : Integer; const AValue : TOrderAddress);
  6904. begin
  6905. If (Faddress=AValue) then exit;
  6906. Faddress:=AValue;
  6907. MarkPropertyChanged(AIndex);
  6908. end;
  6909. Procedure TOrderDeliveryDetails.SetphoneNumber(AIndex : Integer; const AValue : String);
  6910. begin
  6911. If (FphoneNumber=AValue) then exit;
  6912. FphoneNumber:=AValue;
  6913. MarkPropertyChanged(AIndex);
  6914. end;
  6915. { --------------------------------------------------------------------
  6916. TOrderLineItem
  6917. --------------------------------------------------------------------}
  6918. Procedure TOrderLineItem.Setcancellations(AIndex : Integer; const AValue : TOrderLineItemTypecancellationsArray);
  6919. begin
  6920. If (Fcancellations=AValue) then exit;
  6921. Fcancellations:=AValue;
  6922. MarkPropertyChanged(AIndex);
  6923. end;
  6924. Procedure TOrderLineItem.Setid(AIndex : Integer; const AValue : String);
  6925. begin
  6926. If (Fid=AValue) then exit;
  6927. Fid:=AValue;
  6928. MarkPropertyChanged(AIndex);
  6929. end;
  6930. Procedure TOrderLineItem.Setprice(AIndex : Integer; const AValue : TPrice);
  6931. begin
  6932. If (Fprice=AValue) then exit;
  6933. Fprice:=AValue;
  6934. MarkPropertyChanged(AIndex);
  6935. end;
  6936. Procedure TOrderLineItem.Setproduct(AIndex : Integer; const AValue : TOrderLineItemProduct);
  6937. begin
  6938. If (Fproduct=AValue) then exit;
  6939. Fproduct:=AValue;
  6940. MarkPropertyChanged(AIndex);
  6941. end;
  6942. Procedure TOrderLineItem.SetquantityCanceled(AIndex : Integer; const AValue : integer);
  6943. begin
  6944. If (FquantityCanceled=AValue) then exit;
  6945. FquantityCanceled:=AValue;
  6946. MarkPropertyChanged(AIndex);
  6947. end;
  6948. Procedure TOrderLineItem.SetquantityDelivered(AIndex : Integer; const AValue : integer);
  6949. begin
  6950. If (FquantityDelivered=AValue) then exit;
  6951. FquantityDelivered:=AValue;
  6952. MarkPropertyChanged(AIndex);
  6953. end;
  6954. Procedure TOrderLineItem.SetquantityOrdered(AIndex : Integer; const AValue : integer);
  6955. begin
  6956. If (FquantityOrdered=AValue) then exit;
  6957. FquantityOrdered:=AValue;
  6958. MarkPropertyChanged(AIndex);
  6959. end;
  6960. Procedure TOrderLineItem.SetquantityPending(AIndex : Integer; const AValue : integer);
  6961. begin
  6962. If (FquantityPending=AValue) then exit;
  6963. FquantityPending:=AValue;
  6964. MarkPropertyChanged(AIndex);
  6965. end;
  6966. Procedure TOrderLineItem.SetquantityReturned(AIndex : Integer; const AValue : integer);
  6967. begin
  6968. If (FquantityReturned=AValue) then exit;
  6969. FquantityReturned:=AValue;
  6970. MarkPropertyChanged(AIndex);
  6971. end;
  6972. Procedure TOrderLineItem.SetquantityShipped(AIndex : Integer; const AValue : integer);
  6973. begin
  6974. If (FquantityShipped=AValue) then exit;
  6975. FquantityShipped:=AValue;
  6976. MarkPropertyChanged(AIndex);
  6977. end;
  6978. Procedure TOrderLineItem.SetreturnInfo(AIndex : Integer; const AValue : TOrderLineItemReturnInfo);
  6979. begin
  6980. If (FreturnInfo=AValue) then exit;
  6981. FreturnInfo:=AValue;
  6982. MarkPropertyChanged(AIndex);
  6983. end;
  6984. Procedure TOrderLineItem.Setreturns(AIndex : Integer; const AValue : TOrderLineItemTypereturnsArray);
  6985. begin
  6986. If (Freturns=AValue) then exit;
  6987. Freturns:=AValue;
  6988. MarkPropertyChanged(AIndex);
  6989. end;
  6990. Procedure TOrderLineItem.SetshippingDetails(AIndex : Integer; const AValue : TOrderLineItemShippingDetails);
  6991. begin
  6992. If (FshippingDetails=AValue) then exit;
  6993. FshippingDetails:=AValue;
  6994. MarkPropertyChanged(AIndex);
  6995. end;
  6996. Procedure TOrderLineItem.Settax(AIndex : Integer; const AValue : TPrice);
  6997. begin
  6998. If (Ftax=AValue) then exit;
  6999. Ftax:=AValue;
  7000. MarkPropertyChanged(AIndex);
  7001. end;
  7002. //2.6.4. bug workaround
  7003. {$IFDEF VER2_6}
  7004. Procedure TOrderLineItem.SetArrayLength(Const AName : String; ALength : Longint);
  7005. begin
  7006. Case AName of
  7007. 'cancellations' : SetLength(Fcancellations,ALength);
  7008. 'returns' : SetLength(Freturns,ALength);
  7009. else
  7010. Inherited SetArrayLength(AName,ALength);
  7011. end;
  7012. end;
  7013. {$ENDIF VER2_6}
  7014. { --------------------------------------------------------------------
  7015. TOrderLineItemProduct
  7016. --------------------------------------------------------------------}
  7017. Procedure TOrderLineItemProduct.Setbrand(AIndex : Integer; const AValue : String);
  7018. begin
  7019. If (Fbrand=AValue) then exit;
  7020. Fbrand:=AValue;
  7021. MarkPropertyChanged(AIndex);
  7022. end;
  7023. Procedure TOrderLineItemProduct.Setchannel(AIndex : Integer; const AValue : String);
  7024. begin
  7025. If (Fchannel=AValue) then exit;
  7026. Fchannel:=AValue;
  7027. MarkPropertyChanged(AIndex);
  7028. end;
  7029. Procedure TOrderLineItemProduct.Setcondition(AIndex : Integer; const AValue : String);
  7030. begin
  7031. If (Fcondition=AValue) then exit;
  7032. Fcondition:=AValue;
  7033. MarkPropertyChanged(AIndex);
  7034. end;
  7035. Procedure TOrderLineItemProduct.SetcontentLanguage(AIndex : Integer; const AValue : String);
  7036. begin
  7037. If (FcontentLanguage=AValue) then exit;
  7038. FcontentLanguage:=AValue;
  7039. MarkPropertyChanged(AIndex);
  7040. end;
  7041. Procedure TOrderLineItemProduct.Setgtin(AIndex : Integer; const AValue : String);
  7042. begin
  7043. If (Fgtin=AValue) then exit;
  7044. Fgtin:=AValue;
  7045. MarkPropertyChanged(AIndex);
  7046. end;
  7047. Procedure TOrderLineItemProduct.Setid(AIndex : Integer; const AValue : String);
  7048. begin
  7049. If (Fid=AValue) then exit;
  7050. Fid:=AValue;
  7051. MarkPropertyChanged(AIndex);
  7052. end;
  7053. Procedure TOrderLineItemProduct.SetimageLink(AIndex : Integer; const AValue : String);
  7054. begin
  7055. If (FimageLink=AValue) then exit;
  7056. FimageLink:=AValue;
  7057. MarkPropertyChanged(AIndex);
  7058. end;
  7059. Procedure TOrderLineItemProduct.SetitemGroupId(AIndex : Integer; const AValue : String);
  7060. begin
  7061. If (FitemGroupId=AValue) then exit;
  7062. FitemGroupId:=AValue;
  7063. MarkPropertyChanged(AIndex);
  7064. end;
  7065. Procedure TOrderLineItemProduct.Setmpn(AIndex : Integer; const AValue : String);
  7066. begin
  7067. If (Fmpn=AValue) then exit;
  7068. Fmpn:=AValue;
  7069. MarkPropertyChanged(AIndex);
  7070. end;
  7071. Procedure TOrderLineItemProduct.SetofferId(AIndex : Integer; const AValue : String);
  7072. begin
  7073. If (FofferId=AValue) then exit;
  7074. FofferId:=AValue;
  7075. MarkPropertyChanged(AIndex);
  7076. end;
  7077. Procedure TOrderLineItemProduct.Setprice(AIndex : Integer; const AValue : TPrice);
  7078. begin
  7079. If (Fprice=AValue) then exit;
  7080. Fprice:=AValue;
  7081. MarkPropertyChanged(AIndex);
  7082. end;
  7083. Procedure TOrderLineItemProduct.SetshownImage(AIndex : Integer; const AValue : String);
  7084. begin
  7085. If (FshownImage=AValue) then exit;
  7086. FshownImage:=AValue;
  7087. MarkPropertyChanged(AIndex);
  7088. end;
  7089. Procedure TOrderLineItemProduct.SettargetCountry(AIndex : Integer; const AValue : String);
  7090. begin
  7091. If (FtargetCountry=AValue) then exit;
  7092. FtargetCountry:=AValue;
  7093. MarkPropertyChanged(AIndex);
  7094. end;
  7095. Procedure TOrderLineItemProduct.Settitle(AIndex : Integer; const AValue : String);
  7096. begin
  7097. If (Ftitle=AValue) then exit;
  7098. Ftitle:=AValue;
  7099. MarkPropertyChanged(AIndex);
  7100. end;
  7101. Procedure TOrderLineItemProduct.SetvariantAttributes(AIndex : Integer; const AValue : TOrderLineItemProductTypevariantAttributesArray);
  7102. begin
  7103. If (FvariantAttributes=AValue) then exit;
  7104. FvariantAttributes:=AValue;
  7105. MarkPropertyChanged(AIndex);
  7106. end;
  7107. //2.6.4. bug workaround
  7108. {$IFDEF VER2_6}
  7109. Procedure TOrderLineItemProduct.SetArrayLength(Const AName : String; ALength : Longint);
  7110. begin
  7111. Case AName of
  7112. 'variantattributes' : SetLength(FvariantAttributes,ALength);
  7113. else
  7114. Inherited SetArrayLength(AName,ALength);
  7115. end;
  7116. end;
  7117. {$ENDIF VER2_6}
  7118. { --------------------------------------------------------------------
  7119. TOrderLineItemProductVariantAttribute
  7120. --------------------------------------------------------------------}
  7121. Procedure TOrderLineItemProductVariantAttribute.Setdimension(AIndex : Integer; const AValue : String);
  7122. begin
  7123. If (Fdimension=AValue) then exit;
  7124. Fdimension:=AValue;
  7125. MarkPropertyChanged(AIndex);
  7126. end;
  7127. Procedure TOrderLineItemProductVariantAttribute.Setvalue(AIndex : Integer; const AValue : String);
  7128. begin
  7129. If (Fvalue=AValue) then exit;
  7130. Fvalue:=AValue;
  7131. MarkPropertyChanged(AIndex);
  7132. end;
  7133. { --------------------------------------------------------------------
  7134. TOrderLineItemReturnInfo
  7135. --------------------------------------------------------------------}
  7136. Procedure TOrderLineItemReturnInfo.SetdaysToReturn(AIndex : Integer; const AValue : integer);
  7137. begin
  7138. If (FdaysToReturn=AValue) then exit;
  7139. FdaysToReturn:=AValue;
  7140. MarkPropertyChanged(AIndex);
  7141. end;
  7142. Procedure TOrderLineItemReturnInfo.SetisReturnable(AIndex : Integer; const AValue : boolean);
  7143. begin
  7144. If (FisReturnable=AValue) then exit;
  7145. FisReturnable:=AValue;
  7146. MarkPropertyChanged(AIndex);
  7147. end;
  7148. Procedure TOrderLineItemReturnInfo.SetpolicyUrl(AIndex : Integer; const AValue : String);
  7149. begin
  7150. If (FpolicyUrl=AValue) then exit;
  7151. FpolicyUrl:=AValue;
  7152. MarkPropertyChanged(AIndex);
  7153. end;
  7154. { --------------------------------------------------------------------
  7155. TOrderLineItemShippingDetails
  7156. --------------------------------------------------------------------}
  7157. Procedure TOrderLineItemShippingDetails.SetdeliverByDate(AIndex : Integer; const AValue : String);
  7158. begin
  7159. If (FdeliverByDate=AValue) then exit;
  7160. FdeliverByDate:=AValue;
  7161. MarkPropertyChanged(AIndex);
  7162. end;
  7163. Procedure TOrderLineItemShippingDetails.Setmethod(AIndex : Integer; const AValue : TOrderLineItemShippingDetailsMethod);
  7164. begin
  7165. If (Fmethod=AValue) then exit;
  7166. Fmethod:=AValue;
  7167. MarkPropertyChanged(AIndex);
  7168. end;
  7169. Procedure TOrderLineItemShippingDetails.SetshipByDate(AIndex : Integer; const AValue : String);
  7170. begin
  7171. If (FshipByDate=AValue) then exit;
  7172. FshipByDate:=AValue;
  7173. MarkPropertyChanged(AIndex);
  7174. end;
  7175. { --------------------------------------------------------------------
  7176. TOrderLineItemShippingDetailsMethod
  7177. --------------------------------------------------------------------}
  7178. Procedure TOrderLineItemShippingDetailsMethod.Setcarrier(AIndex : Integer; const AValue : String);
  7179. begin
  7180. If (Fcarrier=AValue) then exit;
  7181. Fcarrier:=AValue;
  7182. MarkPropertyChanged(AIndex);
  7183. end;
  7184. Procedure TOrderLineItemShippingDetailsMethod.SetmaxDaysInTransit(AIndex : Integer; const AValue : integer);
  7185. begin
  7186. If (FmaxDaysInTransit=AValue) then exit;
  7187. FmaxDaysInTransit:=AValue;
  7188. MarkPropertyChanged(AIndex);
  7189. end;
  7190. Procedure TOrderLineItemShippingDetailsMethod.SetmethodName(AIndex : Integer; const AValue : String);
  7191. begin
  7192. If (FmethodName=AValue) then exit;
  7193. FmethodName:=AValue;
  7194. MarkPropertyChanged(AIndex);
  7195. end;
  7196. Procedure TOrderLineItemShippingDetailsMethod.SetminDaysInTransit(AIndex : Integer; const AValue : integer);
  7197. begin
  7198. If (FminDaysInTransit=AValue) then exit;
  7199. FminDaysInTransit:=AValue;
  7200. MarkPropertyChanged(AIndex);
  7201. end;
  7202. { --------------------------------------------------------------------
  7203. TOrderPaymentMethod
  7204. --------------------------------------------------------------------}
  7205. Procedure TOrderPaymentMethod.SetbillingAddress(AIndex : Integer; const AValue : TOrderAddress);
  7206. begin
  7207. If (FbillingAddress=AValue) then exit;
  7208. FbillingAddress:=AValue;
  7209. MarkPropertyChanged(AIndex);
  7210. end;
  7211. Procedure TOrderPaymentMethod.SetexpirationMonth(AIndex : Integer; const AValue : integer);
  7212. begin
  7213. If (FexpirationMonth=AValue) then exit;
  7214. FexpirationMonth:=AValue;
  7215. MarkPropertyChanged(AIndex);
  7216. end;
  7217. Procedure TOrderPaymentMethod.SetexpirationYear(AIndex : Integer; const AValue : integer);
  7218. begin
  7219. If (FexpirationYear=AValue) then exit;
  7220. FexpirationYear:=AValue;
  7221. MarkPropertyChanged(AIndex);
  7222. end;
  7223. Procedure TOrderPaymentMethod.SetlastFourDigits(AIndex : Integer; const AValue : String);
  7224. begin
  7225. If (FlastFourDigits=AValue) then exit;
  7226. FlastFourDigits:=AValue;
  7227. MarkPropertyChanged(AIndex);
  7228. end;
  7229. Procedure TOrderPaymentMethod.SetphoneNumber(AIndex : Integer; const AValue : String);
  7230. begin
  7231. If (FphoneNumber=AValue) then exit;
  7232. FphoneNumber:=AValue;
  7233. MarkPropertyChanged(AIndex);
  7234. end;
  7235. Procedure TOrderPaymentMethod.Set_type(AIndex : Integer; const AValue : String);
  7236. begin
  7237. If (F_type=AValue) then exit;
  7238. F_type:=AValue;
  7239. MarkPropertyChanged(AIndex);
  7240. end;
  7241. Class Function TOrderPaymentMethod.ExportPropertyName(Const AName : String) :String;
  7242. begin
  7243. Case AName of
  7244. '_type' : Result:='type';
  7245. else
  7246. Result:=Inherited ExportPropertyName(AName);
  7247. end;
  7248. end;
  7249. { --------------------------------------------------------------------
  7250. TOrderPromotion
  7251. --------------------------------------------------------------------}
  7252. Procedure TOrderPromotion.Setbenefits(AIndex : Integer; const AValue : TOrderPromotionTypebenefitsArray);
  7253. begin
  7254. If (Fbenefits=AValue) then exit;
  7255. Fbenefits:=AValue;
  7256. MarkPropertyChanged(AIndex);
  7257. end;
  7258. Procedure TOrderPromotion.SeteffectiveDates(AIndex : Integer; const AValue : String);
  7259. begin
  7260. If (FeffectiveDates=AValue) then exit;
  7261. FeffectiveDates:=AValue;
  7262. MarkPropertyChanged(AIndex);
  7263. end;
  7264. Procedure TOrderPromotion.SetgenericRedemptionCode(AIndex : Integer; const AValue : String);
  7265. begin
  7266. If (FgenericRedemptionCode=AValue) then exit;
  7267. FgenericRedemptionCode:=AValue;
  7268. MarkPropertyChanged(AIndex);
  7269. end;
  7270. Procedure TOrderPromotion.Setid(AIndex : Integer; const AValue : String);
  7271. begin
  7272. If (Fid=AValue) then exit;
  7273. Fid:=AValue;
  7274. MarkPropertyChanged(AIndex);
  7275. end;
  7276. Procedure TOrderPromotion.SetlongTitle(AIndex : Integer; const AValue : String);
  7277. begin
  7278. If (FlongTitle=AValue) then exit;
  7279. FlongTitle:=AValue;
  7280. MarkPropertyChanged(AIndex);
  7281. end;
  7282. Procedure TOrderPromotion.SetproductApplicability(AIndex : Integer; const AValue : String);
  7283. begin
  7284. If (FproductApplicability=AValue) then exit;
  7285. FproductApplicability:=AValue;
  7286. MarkPropertyChanged(AIndex);
  7287. end;
  7288. Procedure TOrderPromotion.SetredemptionChannel(AIndex : Integer; const AValue : String);
  7289. begin
  7290. If (FredemptionChannel=AValue) then exit;
  7291. FredemptionChannel:=AValue;
  7292. MarkPropertyChanged(AIndex);
  7293. end;
  7294. //2.6.4. bug workaround
  7295. {$IFDEF VER2_6}
  7296. Procedure TOrderPromotion.SetArrayLength(Const AName : String; ALength : Longint);
  7297. begin
  7298. Case AName of
  7299. 'benefits' : SetLength(Fbenefits,ALength);
  7300. else
  7301. Inherited SetArrayLength(AName,ALength);
  7302. end;
  7303. end;
  7304. {$ENDIF VER2_6}
  7305. { --------------------------------------------------------------------
  7306. TOrderPromotionBenefit
  7307. --------------------------------------------------------------------}
  7308. Procedure TOrderPromotionBenefit.Setdiscount(AIndex : Integer; const AValue : TPrice);
  7309. begin
  7310. If (Fdiscount=AValue) then exit;
  7311. Fdiscount:=AValue;
  7312. MarkPropertyChanged(AIndex);
  7313. end;
  7314. Procedure TOrderPromotionBenefit.SetofferIds(AIndex : Integer; const AValue : TStringArray);
  7315. begin
  7316. If (FofferIds=AValue) then exit;
  7317. FofferIds:=AValue;
  7318. MarkPropertyChanged(AIndex);
  7319. end;
  7320. Procedure TOrderPromotionBenefit.SetsubType(AIndex : Integer; const AValue : String);
  7321. begin
  7322. If (FsubType=AValue) then exit;
  7323. FsubType:=AValue;
  7324. MarkPropertyChanged(AIndex);
  7325. end;
  7326. Procedure TOrderPromotionBenefit.SettaxImpact(AIndex : Integer; const AValue : TPrice);
  7327. begin
  7328. If (FtaxImpact=AValue) then exit;
  7329. FtaxImpact:=AValue;
  7330. MarkPropertyChanged(AIndex);
  7331. end;
  7332. Procedure TOrderPromotionBenefit.Set_type(AIndex : Integer; const AValue : String);
  7333. begin
  7334. If (F_type=AValue) then exit;
  7335. F_type:=AValue;
  7336. MarkPropertyChanged(AIndex);
  7337. end;
  7338. Class Function TOrderPromotionBenefit.ExportPropertyName(Const AName : String) :String;
  7339. begin
  7340. Case AName of
  7341. '_type' : Result:='type';
  7342. else
  7343. Result:=Inherited ExportPropertyName(AName);
  7344. end;
  7345. end;
  7346. //2.6.4. bug workaround
  7347. {$IFDEF VER2_6}
  7348. Procedure TOrderPromotionBenefit.SetArrayLength(Const AName : String; ALength : Longint);
  7349. begin
  7350. Case AName of
  7351. 'offerids' : SetLength(FofferIds,ALength);
  7352. else
  7353. Inherited SetArrayLength(AName,ALength);
  7354. end;
  7355. end;
  7356. {$ENDIF VER2_6}
  7357. { --------------------------------------------------------------------
  7358. TOrderRefund
  7359. --------------------------------------------------------------------}
  7360. Procedure TOrderRefund.Setactor(AIndex : Integer; const AValue : String);
  7361. begin
  7362. If (Factor=AValue) then exit;
  7363. Factor:=AValue;
  7364. MarkPropertyChanged(AIndex);
  7365. end;
  7366. Procedure TOrderRefund.Setamount(AIndex : Integer; const AValue : TPrice);
  7367. begin
  7368. If (Famount=AValue) then exit;
  7369. Famount:=AValue;
  7370. MarkPropertyChanged(AIndex);
  7371. end;
  7372. Procedure TOrderRefund.SetcreationDate(AIndex : Integer; const AValue : String);
  7373. begin
  7374. If (FcreationDate=AValue) then exit;
  7375. FcreationDate:=AValue;
  7376. MarkPropertyChanged(AIndex);
  7377. end;
  7378. Procedure TOrderRefund.Setreason(AIndex : Integer; const AValue : String);
  7379. begin
  7380. If (Freason=AValue) then exit;
  7381. Freason:=AValue;
  7382. MarkPropertyChanged(AIndex);
  7383. end;
  7384. Procedure TOrderRefund.SetreasonText(AIndex : Integer; const AValue : String);
  7385. begin
  7386. If (FreasonText=AValue) then exit;
  7387. FreasonText:=AValue;
  7388. MarkPropertyChanged(AIndex);
  7389. end;
  7390. { --------------------------------------------------------------------
  7391. TOrderReturn
  7392. --------------------------------------------------------------------}
  7393. Procedure TOrderReturn.Setactor(AIndex : Integer; const AValue : String);
  7394. begin
  7395. If (Factor=AValue) then exit;
  7396. Factor:=AValue;
  7397. MarkPropertyChanged(AIndex);
  7398. end;
  7399. Procedure TOrderReturn.SetcreationDate(AIndex : Integer; const AValue : String);
  7400. begin
  7401. If (FcreationDate=AValue) then exit;
  7402. FcreationDate:=AValue;
  7403. MarkPropertyChanged(AIndex);
  7404. end;
  7405. Procedure TOrderReturn.Setquantity(AIndex : Integer; const AValue : integer);
  7406. begin
  7407. If (Fquantity=AValue) then exit;
  7408. Fquantity:=AValue;
  7409. MarkPropertyChanged(AIndex);
  7410. end;
  7411. Procedure TOrderReturn.Setreason(AIndex : Integer; const AValue : String);
  7412. begin
  7413. If (Freason=AValue) then exit;
  7414. Freason:=AValue;
  7415. MarkPropertyChanged(AIndex);
  7416. end;
  7417. Procedure TOrderReturn.SetreasonText(AIndex : Integer; const AValue : String);
  7418. begin
  7419. If (FreasonText=AValue) then exit;
  7420. FreasonText:=AValue;
  7421. MarkPropertyChanged(AIndex);
  7422. end;
  7423. { --------------------------------------------------------------------
  7424. TOrderShipment
  7425. --------------------------------------------------------------------}
  7426. Procedure TOrderShipment.Setcarrier(AIndex : Integer; const AValue : String);
  7427. begin
  7428. If (Fcarrier=AValue) then exit;
  7429. Fcarrier:=AValue;
  7430. MarkPropertyChanged(AIndex);
  7431. end;
  7432. Procedure TOrderShipment.SetcreationDate(AIndex : Integer; const AValue : String);
  7433. begin
  7434. If (FcreationDate=AValue) then exit;
  7435. FcreationDate:=AValue;
  7436. MarkPropertyChanged(AIndex);
  7437. end;
  7438. Procedure TOrderShipment.SetdeliveryDate(AIndex : Integer; const AValue : String);
  7439. begin
  7440. If (FdeliveryDate=AValue) then exit;
  7441. FdeliveryDate:=AValue;
  7442. MarkPropertyChanged(AIndex);
  7443. end;
  7444. Procedure TOrderShipment.Setid(AIndex : Integer; const AValue : String);
  7445. begin
  7446. If (Fid=AValue) then exit;
  7447. Fid:=AValue;
  7448. MarkPropertyChanged(AIndex);
  7449. end;
  7450. Procedure TOrderShipment.SetlineItems(AIndex : Integer; const AValue : TOrderShipmentTypelineItemsArray);
  7451. begin
  7452. If (FlineItems=AValue) then exit;
  7453. FlineItems:=AValue;
  7454. MarkPropertyChanged(AIndex);
  7455. end;
  7456. Procedure TOrderShipment.Setstatus(AIndex : Integer; const AValue : String);
  7457. begin
  7458. If (Fstatus=AValue) then exit;
  7459. Fstatus:=AValue;
  7460. MarkPropertyChanged(AIndex);
  7461. end;
  7462. Procedure TOrderShipment.SettrackingId(AIndex : Integer; const AValue : String);
  7463. begin
  7464. If (FtrackingId=AValue) then exit;
  7465. FtrackingId:=AValue;
  7466. MarkPropertyChanged(AIndex);
  7467. end;
  7468. //2.6.4. bug workaround
  7469. {$IFDEF VER2_6}
  7470. Procedure TOrderShipment.SetArrayLength(Const AName : String; ALength : Longint);
  7471. begin
  7472. Case AName of
  7473. 'lineitems' : SetLength(FlineItems,ALength);
  7474. else
  7475. Inherited SetArrayLength(AName,ALength);
  7476. end;
  7477. end;
  7478. {$ENDIF VER2_6}
  7479. { --------------------------------------------------------------------
  7480. TOrderShipmentLineItemShipment
  7481. --------------------------------------------------------------------}
  7482. Procedure TOrderShipmentLineItemShipment.SetlineItemId(AIndex : Integer; const AValue : String);
  7483. begin
  7484. If (FlineItemId=AValue) then exit;
  7485. FlineItemId:=AValue;
  7486. MarkPropertyChanged(AIndex);
  7487. end;
  7488. Procedure TOrderShipmentLineItemShipment.Setquantity(AIndex : Integer; const AValue : integer);
  7489. begin
  7490. If (Fquantity=AValue) then exit;
  7491. Fquantity:=AValue;
  7492. MarkPropertyChanged(AIndex);
  7493. end;
  7494. { --------------------------------------------------------------------
  7495. TOrdersAcknowledgeRequest
  7496. --------------------------------------------------------------------}
  7497. Procedure TOrdersAcknowledgeRequest.SetoperationId(AIndex : Integer; const AValue : String);
  7498. begin
  7499. If (FoperationId=AValue) then exit;
  7500. FoperationId:=AValue;
  7501. MarkPropertyChanged(AIndex);
  7502. end;
  7503. { --------------------------------------------------------------------
  7504. TOrdersAcknowledgeResponse
  7505. --------------------------------------------------------------------}
  7506. Procedure TOrdersAcknowledgeResponse.SetexecutionStatus(AIndex : Integer; const AValue : String);
  7507. begin
  7508. If (FexecutionStatus=AValue) then exit;
  7509. FexecutionStatus:=AValue;
  7510. MarkPropertyChanged(AIndex);
  7511. end;
  7512. Procedure TOrdersAcknowledgeResponse.Setkind(AIndex : Integer; const AValue : String);
  7513. begin
  7514. If (Fkind=AValue) then exit;
  7515. Fkind:=AValue;
  7516. MarkPropertyChanged(AIndex);
  7517. end;
  7518. { --------------------------------------------------------------------
  7519. TOrdersAdvanceTestOrderResponse
  7520. --------------------------------------------------------------------}
  7521. Procedure TOrdersAdvanceTestOrderResponse.Setkind(AIndex : Integer; const AValue : String);
  7522. begin
  7523. If (Fkind=AValue) then exit;
  7524. Fkind:=AValue;
  7525. MarkPropertyChanged(AIndex);
  7526. end;
  7527. { --------------------------------------------------------------------
  7528. TOrdersCancelLineItemRequest
  7529. --------------------------------------------------------------------}
  7530. Procedure TOrdersCancelLineItemRequest.Setamount(AIndex : Integer; const AValue : TPrice);
  7531. begin
  7532. If (Famount=AValue) then exit;
  7533. Famount:=AValue;
  7534. MarkPropertyChanged(AIndex);
  7535. end;
  7536. Procedure TOrdersCancelLineItemRequest.SetlineItemId(AIndex : Integer; const AValue : String);
  7537. begin
  7538. If (FlineItemId=AValue) then exit;
  7539. FlineItemId:=AValue;
  7540. MarkPropertyChanged(AIndex);
  7541. end;
  7542. Procedure TOrdersCancelLineItemRequest.SetoperationId(AIndex : Integer; const AValue : String);
  7543. begin
  7544. If (FoperationId=AValue) then exit;
  7545. FoperationId:=AValue;
  7546. MarkPropertyChanged(AIndex);
  7547. end;
  7548. Procedure TOrdersCancelLineItemRequest.Setquantity(AIndex : Integer; const AValue : integer);
  7549. begin
  7550. If (Fquantity=AValue) then exit;
  7551. Fquantity:=AValue;
  7552. MarkPropertyChanged(AIndex);
  7553. end;
  7554. Procedure TOrdersCancelLineItemRequest.Setreason(AIndex : Integer; const AValue : String);
  7555. begin
  7556. If (Freason=AValue) then exit;
  7557. Freason:=AValue;
  7558. MarkPropertyChanged(AIndex);
  7559. end;
  7560. Procedure TOrdersCancelLineItemRequest.SetreasonText(AIndex : Integer; const AValue : String);
  7561. begin
  7562. If (FreasonText=AValue) then exit;
  7563. FreasonText:=AValue;
  7564. MarkPropertyChanged(AIndex);
  7565. end;
  7566. { --------------------------------------------------------------------
  7567. TOrdersCancelLineItemResponse
  7568. --------------------------------------------------------------------}
  7569. Procedure TOrdersCancelLineItemResponse.SetexecutionStatus(AIndex : Integer; const AValue : String);
  7570. begin
  7571. If (FexecutionStatus=AValue) then exit;
  7572. FexecutionStatus:=AValue;
  7573. MarkPropertyChanged(AIndex);
  7574. end;
  7575. Procedure TOrdersCancelLineItemResponse.Setkind(AIndex : Integer; const AValue : String);
  7576. begin
  7577. If (Fkind=AValue) then exit;
  7578. Fkind:=AValue;
  7579. MarkPropertyChanged(AIndex);
  7580. end;
  7581. { --------------------------------------------------------------------
  7582. TOrdersCancelRequest
  7583. --------------------------------------------------------------------}
  7584. Procedure TOrdersCancelRequest.SetoperationId(AIndex : Integer; const AValue : String);
  7585. begin
  7586. If (FoperationId=AValue) then exit;
  7587. FoperationId:=AValue;
  7588. MarkPropertyChanged(AIndex);
  7589. end;
  7590. Procedure TOrdersCancelRequest.Setreason(AIndex : Integer; const AValue : String);
  7591. begin
  7592. If (Freason=AValue) then exit;
  7593. Freason:=AValue;
  7594. MarkPropertyChanged(AIndex);
  7595. end;
  7596. Procedure TOrdersCancelRequest.SetreasonText(AIndex : Integer; const AValue : String);
  7597. begin
  7598. If (FreasonText=AValue) then exit;
  7599. FreasonText:=AValue;
  7600. MarkPropertyChanged(AIndex);
  7601. end;
  7602. { --------------------------------------------------------------------
  7603. TOrdersCancelResponse
  7604. --------------------------------------------------------------------}
  7605. Procedure TOrdersCancelResponse.SetexecutionStatus(AIndex : Integer; const AValue : String);
  7606. begin
  7607. If (FexecutionStatus=AValue) then exit;
  7608. FexecutionStatus:=AValue;
  7609. MarkPropertyChanged(AIndex);
  7610. end;
  7611. Procedure TOrdersCancelResponse.Setkind(AIndex : Integer; const AValue : String);
  7612. begin
  7613. If (Fkind=AValue) then exit;
  7614. Fkind:=AValue;
  7615. MarkPropertyChanged(AIndex);
  7616. end;
  7617. { --------------------------------------------------------------------
  7618. TOrdersCreateTestOrderRequest
  7619. --------------------------------------------------------------------}
  7620. Procedure TOrdersCreateTestOrderRequest.SettemplateName(AIndex : Integer; const AValue : String);
  7621. begin
  7622. If (FtemplateName=AValue) then exit;
  7623. FtemplateName:=AValue;
  7624. MarkPropertyChanged(AIndex);
  7625. end;
  7626. Procedure TOrdersCreateTestOrderRequest.SettestOrder(AIndex : Integer; const AValue : TTestOrder);
  7627. begin
  7628. If (FtestOrder=AValue) then exit;
  7629. FtestOrder:=AValue;
  7630. MarkPropertyChanged(AIndex);
  7631. end;
  7632. { --------------------------------------------------------------------
  7633. TOrdersCreateTestOrderResponse
  7634. --------------------------------------------------------------------}
  7635. Procedure TOrdersCreateTestOrderResponse.Setkind(AIndex : Integer; const AValue : String);
  7636. begin
  7637. If (Fkind=AValue) then exit;
  7638. Fkind:=AValue;
  7639. MarkPropertyChanged(AIndex);
  7640. end;
  7641. Procedure TOrdersCreateTestOrderResponse.SetorderId(AIndex : Integer; const AValue : String);
  7642. begin
  7643. If (ForderId=AValue) then exit;
  7644. ForderId:=AValue;
  7645. MarkPropertyChanged(AIndex);
  7646. end;
  7647. { --------------------------------------------------------------------
  7648. TOrdersCustomBatchRequest
  7649. --------------------------------------------------------------------}
  7650. Procedure TOrdersCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TOrdersCustomBatchRequestTypeentriesArray);
  7651. begin
  7652. If (Fentries=AValue) then exit;
  7653. Fentries:=AValue;
  7654. MarkPropertyChanged(AIndex);
  7655. end;
  7656. //2.6.4. bug workaround
  7657. {$IFDEF VER2_6}
  7658. Procedure TOrdersCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  7659. begin
  7660. Case AName of
  7661. 'entries' : SetLength(Fentries,ALength);
  7662. else
  7663. Inherited SetArrayLength(AName,ALength);
  7664. end;
  7665. end;
  7666. {$ENDIF VER2_6}
  7667. { --------------------------------------------------------------------
  7668. TOrdersCustomBatchRequestEntry
  7669. --------------------------------------------------------------------}
  7670. Procedure TOrdersCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  7671. begin
  7672. If (FbatchId=AValue) then exit;
  7673. FbatchId:=AValue;
  7674. MarkPropertyChanged(AIndex);
  7675. end;
  7676. Procedure TOrdersCustomBatchRequestEntry.Setcancel(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryCancel);
  7677. begin
  7678. If (Fcancel=AValue) then exit;
  7679. Fcancel:=AValue;
  7680. MarkPropertyChanged(AIndex);
  7681. end;
  7682. Procedure TOrdersCustomBatchRequestEntry.SetcancelLineItem(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryCancelLineItem);
  7683. begin
  7684. If (FcancelLineItem=AValue) then exit;
  7685. FcancelLineItem:=AValue;
  7686. MarkPropertyChanged(AIndex);
  7687. end;
  7688. Procedure TOrdersCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  7689. begin
  7690. If (FmerchantId=AValue) then exit;
  7691. FmerchantId:=AValue;
  7692. MarkPropertyChanged(AIndex);
  7693. end;
  7694. Procedure TOrdersCustomBatchRequestEntry.SetmerchantOrderId(AIndex : Integer; const AValue : String);
  7695. begin
  7696. If (FmerchantOrderId=AValue) then exit;
  7697. FmerchantOrderId:=AValue;
  7698. MarkPropertyChanged(AIndex);
  7699. end;
  7700. Procedure TOrdersCustomBatchRequestEntry.Setmethod(AIndex : Integer; const AValue : String);
  7701. begin
  7702. If (Fmethod=AValue) then exit;
  7703. Fmethod:=AValue;
  7704. MarkPropertyChanged(AIndex);
  7705. end;
  7706. Procedure TOrdersCustomBatchRequestEntry.SetoperationId(AIndex : Integer; const AValue : String);
  7707. begin
  7708. If (FoperationId=AValue) then exit;
  7709. FoperationId:=AValue;
  7710. MarkPropertyChanged(AIndex);
  7711. end;
  7712. Procedure TOrdersCustomBatchRequestEntry.SetorderId(AIndex : Integer; const AValue : String);
  7713. begin
  7714. If (ForderId=AValue) then exit;
  7715. ForderId:=AValue;
  7716. MarkPropertyChanged(AIndex);
  7717. end;
  7718. Procedure TOrdersCustomBatchRequestEntry.Setrefund(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryRefund);
  7719. begin
  7720. If (Frefund=AValue) then exit;
  7721. Frefund:=AValue;
  7722. MarkPropertyChanged(AIndex);
  7723. end;
  7724. Procedure TOrdersCustomBatchRequestEntry.SetreturnLineItem(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryReturnLineItem);
  7725. begin
  7726. If (FreturnLineItem=AValue) then exit;
  7727. FreturnLineItem:=AValue;
  7728. MarkPropertyChanged(AIndex);
  7729. end;
  7730. Procedure TOrdersCustomBatchRequestEntry.SetshipLineItems(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryShipLineItems);
  7731. begin
  7732. If (FshipLineItems=AValue) then exit;
  7733. FshipLineItems:=AValue;
  7734. MarkPropertyChanged(AIndex);
  7735. end;
  7736. Procedure TOrdersCustomBatchRequestEntry.SetupdateShipment(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryUpdateShipment);
  7737. begin
  7738. If (FupdateShipment=AValue) then exit;
  7739. FupdateShipment:=AValue;
  7740. MarkPropertyChanged(AIndex);
  7741. end;
  7742. { --------------------------------------------------------------------
  7743. TOrdersCustomBatchRequestEntryCancel
  7744. --------------------------------------------------------------------}
  7745. Procedure TOrdersCustomBatchRequestEntryCancel.Setreason(AIndex : Integer; const AValue : String);
  7746. begin
  7747. If (Freason=AValue) then exit;
  7748. Freason:=AValue;
  7749. MarkPropertyChanged(AIndex);
  7750. end;
  7751. Procedure TOrdersCustomBatchRequestEntryCancel.SetreasonText(AIndex : Integer; const AValue : String);
  7752. begin
  7753. If (FreasonText=AValue) then exit;
  7754. FreasonText:=AValue;
  7755. MarkPropertyChanged(AIndex);
  7756. end;
  7757. { --------------------------------------------------------------------
  7758. TOrdersCustomBatchRequestEntryCancelLineItem
  7759. --------------------------------------------------------------------}
  7760. Procedure TOrdersCustomBatchRequestEntryCancelLineItem.Setamount(AIndex : Integer; const AValue : TPrice);
  7761. begin
  7762. If (Famount=AValue) then exit;
  7763. Famount:=AValue;
  7764. MarkPropertyChanged(AIndex);
  7765. end;
  7766. Procedure TOrdersCustomBatchRequestEntryCancelLineItem.SetlineItemId(AIndex : Integer; const AValue : String);
  7767. begin
  7768. If (FlineItemId=AValue) then exit;
  7769. FlineItemId:=AValue;
  7770. MarkPropertyChanged(AIndex);
  7771. end;
  7772. Procedure TOrdersCustomBatchRequestEntryCancelLineItem.Setquantity(AIndex : Integer; const AValue : integer);
  7773. begin
  7774. If (Fquantity=AValue) then exit;
  7775. Fquantity:=AValue;
  7776. MarkPropertyChanged(AIndex);
  7777. end;
  7778. Procedure TOrdersCustomBatchRequestEntryCancelLineItem.Setreason(AIndex : Integer; const AValue : String);
  7779. begin
  7780. If (Freason=AValue) then exit;
  7781. Freason:=AValue;
  7782. MarkPropertyChanged(AIndex);
  7783. end;
  7784. Procedure TOrdersCustomBatchRequestEntryCancelLineItem.SetreasonText(AIndex : Integer; const AValue : String);
  7785. begin
  7786. If (FreasonText=AValue) then exit;
  7787. FreasonText:=AValue;
  7788. MarkPropertyChanged(AIndex);
  7789. end;
  7790. { --------------------------------------------------------------------
  7791. TOrdersCustomBatchRequestEntryRefund
  7792. --------------------------------------------------------------------}
  7793. Procedure TOrdersCustomBatchRequestEntryRefund.Setamount(AIndex : Integer; const AValue : TPrice);
  7794. begin
  7795. If (Famount=AValue) then exit;
  7796. Famount:=AValue;
  7797. MarkPropertyChanged(AIndex);
  7798. end;
  7799. Procedure TOrdersCustomBatchRequestEntryRefund.Setreason(AIndex : Integer; const AValue : String);
  7800. begin
  7801. If (Freason=AValue) then exit;
  7802. Freason:=AValue;
  7803. MarkPropertyChanged(AIndex);
  7804. end;
  7805. Procedure TOrdersCustomBatchRequestEntryRefund.SetreasonText(AIndex : Integer; const AValue : String);
  7806. begin
  7807. If (FreasonText=AValue) then exit;
  7808. FreasonText:=AValue;
  7809. MarkPropertyChanged(AIndex);
  7810. end;
  7811. { --------------------------------------------------------------------
  7812. TOrdersCustomBatchRequestEntryReturnLineItem
  7813. --------------------------------------------------------------------}
  7814. Procedure TOrdersCustomBatchRequestEntryReturnLineItem.SetlineItemId(AIndex : Integer; const AValue : String);
  7815. begin
  7816. If (FlineItemId=AValue) then exit;
  7817. FlineItemId:=AValue;
  7818. MarkPropertyChanged(AIndex);
  7819. end;
  7820. Procedure TOrdersCustomBatchRequestEntryReturnLineItem.Setquantity(AIndex : Integer; const AValue : integer);
  7821. begin
  7822. If (Fquantity=AValue) then exit;
  7823. Fquantity:=AValue;
  7824. MarkPropertyChanged(AIndex);
  7825. end;
  7826. Procedure TOrdersCustomBatchRequestEntryReturnLineItem.Setreason(AIndex : Integer; const AValue : String);
  7827. begin
  7828. If (Freason=AValue) then exit;
  7829. Freason:=AValue;
  7830. MarkPropertyChanged(AIndex);
  7831. end;
  7832. Procedure TOrdersCustomBatchRequestEntryReturnLineItem.SetreasonText(AIndex : Integer; const AValue : String);
  7833. begin
  7834. If (FreasonText=AValue) then exit;
  7835. FreasonText:=AValue;
  7836. MarkPropertyChanged(AIndex);
  7837. end;
  7838. { --------------------------------------------------------------------
  7839. TOrdersCustomBatchRequestEntryShipLineItems
  7840. --------------------------------------------------------------------}
  7841. Procedure TOrdersCustomBatchRequestEntryShipLineItems.Setcarrier(AIndex : Integer; const AValue : String);
  7842. begin
  7843. If (Fcarrier=AValue) then exit;
  7844. Fcarrier:=AValue;
  7845. MarkPropertyChanged(AIndex);
  7846. end;
  7847. Procedure TOrdersCustomBatchRequestEntryShipLineItems.SetlineItems(AIndex : Integer; const AValue : TOrdersCustomBatchRequestEntryShipLineItemsTypelineItemsArray);
  7848. begin
  7849. If (FlineItems=AValue) then exit;
  7850. FlineItems:=AValue;
  7851. MarkPropertyChanged(AIndex);
  7852. end;
  7853. Procedure TOrdersCustomBatchRequestEntryShipLineItems.SetshipmentId(AIndex : Integer; const AValue : String);
  7854. begin
  7855. If (FshipmentId=AValue) then exit;
  7856. FshipmentId:=AValue;
  7857. MarkPropertyChanged(AIndex);
  7858. end;
  7859. Procedure TOrdersCustomBatchRequestEntryShipLineItems.SettrackingId(AIndex : Integer; const AValue : String);
  7860. begin
  7861. If (FtrackingId=AValue) then exit;
  7862. FtrackingId:=AValue;
  7863. MarkPropertyChanged(AIndex);
  7864. end;
  7865. //2.6.4. bug workaround
  7866. {$IFDEF VER2_6}
  7867. Procedure TOrdersCustomBatchRequestEntryShipLineItems.SetArrayLength(Const AName : String; ALength : Longint);
  7868. begin
  7869. Case AName of
  7870. 'lineitems' : SetLength(FlineItems,ALength);
  7871. else
  7872. Inherited SetArrayLength(AName,ALength);
  7873. end;
  7874. end;
  7875. {$ENDIF VER2_6}
  7876. { --------------------------------------------------------------------
  7877. TOrdersCustomBatchRequestEntryUpdateShipment
  7878. --------------------------------------------------------------------}
  7879. Procedure TOrdersCustomBatchRequestEntryUpdateShipment.Setcarrier(AIndex : Integer; const AValue : String);
  7880. begin
  7881. If (Fcarrier=AValue) then exit;
  7882. Fcarrier:=AValue;
  7883. MarkPropertyChanged(AIndex);
  7884. end;
  7885. Procedure TOrdersCustomBatchRequestEntryUpdateShipment.SetshipmentId(AIndex : Integer; const AValue : String);
  7886. begin
  7887. If (FshipmentId=AValue) then exit;
  7888. FshipmentId:=AValue;
  7889. MarkPropertyChanged(AIndex);
  7890. end;
  7891. Procedure TOrdersCustomBatchRequestEntryUpdateShipment.Setstatus(AIndex : Integer; const AValue : String);
  7892. begin
  7893. If (Fstatus=AValue) then exit;
  7894. Fstatus:=AValue;
  7895. MarkPropertyChanged(AIndex);
  7896. end;
  7897. Procedure TOrdersCustomBatchRequestEntryUpdateShipment.SettrackingId(AIndex : Integer; const AValue : String);
  7898. begin
  7899. If (FtrackingId=AValue) then exit;
  7900. FtrackingId:=AValue;
  7901. MarkPropertyChanged(AIndex);
  7902. end;
  7903. { --------------------------------------------------------------------
  7904. TOrdersCustomBatchResponse
  7905. --------------------------------------------------------------------}
  7906. Procedure TOrdersCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TOrdersCustomBatchResponseTypeentriesArray);
  7907. begin
  7908. If (Fentries=AValue) then exit;
  7909. Fentries:=AValue;
  7910. MarkPropertyChanged(AIndex);
  7911. end;
  7912. Procedure TOrdersCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  7913. begin
  7914. If (Fkind=AValue) then exit;
  7915. Fkind:=AValue;
  7916. MarkPropertyChanged(AIndex);
  7917. end;
  7918. //2.6.4. bug workaround
  7919. {$IFDEF VER2_6}
  7920. Procedure TOrdersCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  7921. begin
  7922. Case AName of
  7923. 'entries' : SetLength(Fentries,ALength);
  7924. else
  7925. Inherited SetArrayLength(AName,ALength);
  7926. end;
  7927. end;
  7928. {$ENDIF VER2_6}
  7929. { --------------------------------------------------------------------
  7930. TOrdersCustomBatchResponseEntry
  7931. --------------------------------------------------------------------}
  7932. Procedure TOrdersCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  7933. begin
  7934. If (FbatchId=AValue) then exit;
  7935. FbatchId:=AValue;
  7936. MarkPropertyChanged(AIndex);
  7937. end;
  7938. Procedure TOrdersCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  7939. begin
  7940. If (Ferrors=AValue) then exit;
  7941. Ferrors:=AValue;
  7942. MarkPropertyChanged(AIndex);
  7943. end;
  7944. Procedure TOrdersCustomBatchResponseEntry.SetexecutionStatus(AIndex : Integer; const AValue : String);
  7945. begin
  7946. If (FexecutionStatus=AValue) then exit;
  7947. FexecutionStatus:=AValue;
  7948. MarkPropertyChanged(AIndex);
  7949. end;
  7950. Procedure TOrdersCustomBatchResponseEntry.Setkind(AIndex : Integer; const AValue : String);
  7951. begin
  7952. If (Fkind=AValue) then exit;
  7953. Fkind:=AValue;
  7954. MarkPropertyChanged(AIndex);
  7955. end;
  7956. Procedure TOrdersCustomBatchResponseEntry.Setorder(AIndex : Integer; const AValue : TOrder);
  7957. begin
  7958. If (Forder=AValue) then exit;
  7959. Forder:=AValue;
  7960. MarkPropertyChanged(AIndex);
  7961. end;
  7962. { --------------------------------------------------------------------
  7963. TOrdersGetByMerchantOrderIdResponse
  7964. --------------------------------------------------------------------}
  7965. Procedure TOrdersGetByMerchantOrderIdResponse.Setkind(AIndex : Integer; const AValue : String);
  7966. begin
  7967. If (Fkind=AValue) then exit;
  7968. Fkind:=AValue;
  7969. MarkPropertyChanged(AIndex);
  7970. end;
  7971. Procedure TOrdersGetByMerchantOrderIdResponse.Setorder(AIndex : Integer; const AValue : TOrder);
  7972. begin
  7973. If (Forder=AValue) then exit;
  7974. Forder:=AValue;
  7975. MarkPropertyChanged(AIndex);
  7976. end;
  7977. { --------------------------------------------------------------------
  7978. TOrdersGetTestOrderTemplateResponse
  7979. --------------------------------------------------------------------}
  7980. Procedure TOrdersGetTestOrderTemplateResponse.Setkind(AIndex : Integer; const AValue : String);
  7981. begin
  7982. If (Fkind=AValue) then exit;
  7983. Fkind:=AValue;
  7984. MarkPropertyChanged(AIndex);
  7985. end;
  7986. Procedure TOrdersGetTestOrderTemplateResponse.Settemplate(AIndex : Integer; const AValue : TTestOrder);
  7987. begin
  7988. If (Ftemplate=AValue) then exit;
  7989. Ftemplate:=AValue;
  7990. MarkPropertyChanged(AIndex);
  7991. end;
  7992. { --------------------------------------------------------------------
  7993. TOrdersListResponse
  7994. --------------------------------------------------------------------}
  7995. Procedure TOrdersListResponse.Setkind(AIndex : Integer; const AValue : String);
  7996. begin
  7997. If (Fkind=AValue) then exit;
  7998. Fkind:=AValue;
  7999. MarkPropertyChanged(AIndex);
  8000. end;
  8001. Procedure TOrdersListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  8002. begin
  8003. If (FnextPageToken=AValue) then exit;
  8004. FnextPageToken:=AValue;
  8005. MarkPropertyChanged(AIndex);
  8006. end;
  8007. Procedure TOrdersListResponse.Setresources(AIndex : Integer; const AValue : TOrdersListResponseTyperesourcesArray);
  8008. begin
  8009. If (Fresources=AValue) then exit;
  8010. Fresources:=AValue;
  8011. MarkPropertyChanged(AIndex);
  8012. end;
  8013. //2.6.4. bug workaround
  8014. {$IFDEF VER2_6}
  8015. Procedure TOrdersListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  8016. begin
  8017. Case AName of
  8018. 'resources' : SetLength(Fresources,ALength);
  8019. else
  8020. Inherited SetArrayLength(AName,ALength);
  8021. end;
  8022. end;
  8023. {$ENDIF VER2_6}
  8024. { --------------------------------------------------------------------
  8025. TOrdersRefundRequest
  8026. --------------------------------------------------------------------}
  8027. Procedure TOrdersRefundRequest.Setamount(AIndex : Integer; const AValue : TPrice);
  8028. begin
  8029. If (Famount=AValue) then exit;
  8030. Famount:=AValue;
  8031. MarkPropertyChanged(AIndex);
  8032. end;
  8033. Procedure TOrdersRefundRequest.SetoperationId(AIndex : Integer; const AValue : String);
  8034. begin
  8035. If (FoperationId=AValue) then exit;
  8036. FoperationId:=AValue;
  8037. MarkPropertyChanged(AIndex);
  8038. end;
  8039. Procedure TOrdersRefundRequest.Setreason(AIndex : Integer; const AValue : String);
  8040. begin
  8041. If (Freason=AValue) then exit;
  8042. Freason:=AValue;
  8043. MarkPropertyChanged(AIndex);
  8044. end;
  8045. Procedure TOrdersRefundRequest.SetreasonText(AIndex : Integer; const AValue : String);
  8046. begin
  8047. If (FreasonText=AValue) then exit;
  8048. FreasonText:=AValue;
  8049. MarkPropertyChanged(AIndex);
  8050. end;
  8051. { --------------------------------------------------------------------
  8052. TOrdersRefundResponse
  8053. --------------------------------------------------------------------}
  8054. Procedure TOrdersRefundResponse.SetexecutionStatus(AIndex : Integer; const AValue : String);
  8055. begin
  8056. If (FexecutionStatus=AValue) then exit;
  8057. FexecutionStatus:=AValue;
  8058. MarkPropertyChanged(AIndex);
  8059. end;
  8060. Procedure TOrdersRefundResponse.Setkind(AIndex : Integer; const AValue : String);
  8061. begin
  8062. If (Fkind=AValue) then exit;
  8063. Fkind:=AValue;
  8064. MarkPropertyChanged(AIndex);
  8065. end;
  8066. { --------------------------------------------------------------------
  8067. TOrdersReturnLineItemRequest
  8068. --------------------------------------------------------------------}
  8069. Procedure TOrdersReturnLineItemRequest.SetlineItemId(AIndex : Integer; const AValue : String);
  8070. begin
  8071. If (FlineItemId=AValue) then exit;
  8072. FlineItemId:=AValue;
  8073. MarkPropertyChanged(AIndex);
  8074. end;
  8075. Procedure TOrdersReturnLineItemRequest.SetoperationId(AIndex : Integer; const AValue : String);
  8076. begin
  8077. If (FoperationId=AValue) then exit;
  8078. FoperationId:=AValue;
  8079. MarkPropertyChanged(AIndex);
  8080. end;
  8081. Procedure TOrdersReturnLineItemRequest.Setquantity(AIndex : Integer; const AValue : integer);
  8082. begin
  8083. If (Fquantity=AValue) then exit;
  8084. Fquantity:=AValue;
  8085. MarkPropertyChanged(AIndex);
  8086. end;
  8087. Procedure TOrdersReturnLineItemRequest.Setreason(AIndex : Integer; const AValue : String);
  8088. begin
  8089. If (Freason=AValue) then exit;
  8090. Freason:=AValue;
  8091. MarkPropertyChanged(AIndex);
  8092. end;
  8093. Procedure TOrdersReturnLineItemRequest.SetreasonText(AIndex : Integer; const AValue : String);
  8094. begin
  8095. If (FreasonText=AValue) then exit;
  8096. FreasonText:=AValue;
  8097. MarkPropertyChanged(AIndex);
  8098. end;
  8099. { --------------------------------------------------------------------
  8100. TOrdersReturnLineItemResponse
  8101. --------------------------------------------------------------------}
  8102. Procedure TOrdersReturnLineItemResponse.SetexecutionStatus(AIndex : Integer; const AValue : String);
  8103. begin
  8104. If (FexecutionStatus=AValue) then exit;
  8105. FexecutionStatus:=AValue;
  8106. MarkPropertyChanged(AIndex);
  8107. end;
  8108. Procedure TOrdersReturnLineItemResponse.Setkind(AIndex : Integer; const AValue : String);
  8109. begin
  8110. If (Fkind=AValue) then exit;
  8111. Fkind:=AValue;
  8112. MarkPropertyChanged(AIndex);
  8113. end;
  8114. { --------------------------------------------------------------------
  8115. TOrdersShipLineItemsRequest
  8116. --------------------------------------------------------------------}
  8117. Procedure TOrdersShipLineItemsRequest.Setcarrier(AIndex : Integer; const AValue : String);
  8118. begin
  8119. If (Fcarrier=AValue) then exit;
  8120. Fcarrier:=AValue;
  8121. MarkPropertyChanged(AIndex);
  8122. end;
  8123. Procedure TOrdersShipLineItemsRequest.SetlineItems(AIndex : Integer; const AValue : TOrdersShipLineItemsRequestTypelineItemsArray);
  8124. begin
  8125. If (FlineItems=AValue) then exit;
  8126. FlineItems:=AValue;
  8127. MarkPropertyChanged(AIndex);
  8128. end;
  8129. Procedure TOrdersShipLineItemsRequest.SetoperationId(AIndex : Integer; const AValue : String);
  8130. begin
  8131. If (FoperationId=AValue) then exit;
  8132. FoperationId:=AValue;
  8133. MarkPropertyChanged(AIndex);
  8134. end;
  8135. Procedure TOrdersShipLineItemsRequest.SetshipmentId(AIndex : Integer; const AValue : String);
  8136. begin
  8137. If (FshipmentId=AValue) then exit;
  8138. FshipmentId:=AValue;
  8139. MarkPropertyChanged(AIndex);
  8140. end;
  8141. Procedure TOrdersShipLineItemsRequest.SettrackingId(AIndex : Integer; const AValue : String);
  8142. begin
  8143. If (FtrackingId=AValue) then exit;
  8144. FtrackingId:=AValue;
  8145. MarkPropertyChanged(AIndex);
  8146. end;
  8147. //2.6.4. bug workaround
  8148. {$IFDEF VER2_6}
  8149. Procedure TOrdersShipLineItemsRequest.SetArrayLength(Const AName : String; ALength : Longint);
  8150. begin
  8151. Case AName of
  8152. 'lineitems' : SetLength(FlineItems,ALength);
  8153. else
  8154. Inherited SetArrayLength(AName,ALength);
  8155. end;
  8156. end;
  8157. {$ENDIF VER2_6}
  8158. { --------------------------------------------------------------------
  8159. TOrdersShipLineItemsResponse
  8160. --------------------------------------------------------------------}
  8161. Procedure TOrdersShipLineItemsResponse.SetexecutionStatus(AIndex : Integer; const AValue : String);
  8162. begin
  8163. If (FexecutionStatus=AValue) then exit;
  8164. FexecutionStatus:=AValue;
  8165. MarkPropertyChanged(AIndex);
  8166. end;
  8167. Procedure TOrdersShipLineItemsResponse.Setkind(AIndex : Integer; const AValue : String);
  8168. begin
  8169. If (Fkind=AValue) then exit;
  8170. Fkind:=AValue;
  8171. MarkPropertyChanged(AIndex);
  8172. end;
  8173. { --------------------------------------------------------------------
  8174. TOrdersUpdateMerchantOrderIdRequest
  8175. --------------------------------------------------------------------}
  8176. Procedure TOrdersUpdateMerchantOrderIdRequest.SetmerchantOrderId(AIndex : Integer; const AValue : String);
  8177. begin
  8178. If (FmerchantOrderId=AValue) then exit;
  8179. FmerchantOrderId:=AValue;
  8180. MarkPropertyChanged(AIndex);
  8181. end;
  8182. Procedure TOrdersUpdateMerchantOrderIdRequest.SetoperationId(AIndex : Integer; const AValue : String);
  8183. begin
  8184. If (FoperationId=AValue) then exit;
  8185. FoperationId:=AValue;
  8186. MarkPropertyChanged(AIndex);
  8187. end;
  8188. { --------------------------------------------------------------------
  8189. TOrdersUpdateMerchantOrderIdResponse
  8190. --------------------------------------------------------------------}
  8191. Procedure TOrdersUpdateMerchantOrderIdResponse.SetexecutionStatus(AIndex : Integer; const AValue : String);
  8192. begin
  8193. If (FexecutionStatus=AValue) then exit;
  8194. FexecutionStatus:=AValue;
  8195. MarkPropertyChanged(AIndex);
  8196. end;
  8197. Procedure TOrdersUpdateMerchantOrderIdResponse.Setkind(AIndex : Integer; const AValue : String);
  8198. begin
  8199. If (Fkind=AValue) then exit;
  8200. Fkind:=AValue;
  8201. MarkPropertyChanged(AIndex);
  8202. end;
  8203. { --------------------------------------------------------------------
  8204. TOrdersUpdateShipmentRequest
  8205. --------------------------------------------------------------------}
  8206. Procedure TOrdersUpdateShipmentRequest.Setcarrier(AIndex : Integer; const AValue : String);
  8207. begin
  8208. If (Fcarrier=AValue) then exit;
  8209. Fcarrier:=AValue;
  8210. MarkPropertyChanged(AIndex);
  8211. end;
  8212. Procedure TOrdersUpdateShipmentRequest.SetoperationId(AIndex : Integer; const AValue : String);
  8213. begin
  8214. If (FoperationId=AValue) then exit;
  8215. FoperationId:=AValue;
  8216. MarkPropertyChanged(AIndex);
  8217. end;
  8218. Procedure TOrdersUpdateShipmentRequest.SetshipmentId(AIndex : Integer; const AValue : String);
  8219. begin
  8220. If (FshipmentId=AValue) then exit;
  8221. FshipmentId:=AValue;
  8222. MarkPropertyChanged(AIndex);
  8223. end;
  8224. Procedure TOrdersUpdateShipmentRequest.Setstatus(AIndex : Integer; const AValue : String);
  8225. begin
  8226. If (Fstatus=AValue) then exit;
  8227. Fstatus:=AValue;
  8228. MarkPropertyChanged(AIndex);
  8229. end;
  8230. Procedure TOrdersUpdateShipmentRequest.SettrackingId(AIndex : Integer; const AValue : String);
  8231. begin
  8232. If (FtrackingId=AValue) then exit;
  8233. FtrackingId:=AValue;
  8234. MarkPropertyChanged(AIndex);
  8235. end;
  8236. { --------------------------------------------------------------------
  8237. TOrdersUpdateShipmentResponse
  8238. --------------------------------------------------------------------}
  8239. Procedure TOrdersUpdateShipmentResponse.SetexecutionStatus(AIndex : Integer; const AValue : String);
  8240. begin
  8241. If (FexecutionStatus=AValue) then exit;
  8242. FexecutionStatus:=AValue;
  8243. MarkPropertyChanged(AIndex);
  8244. end;
  8245. Procedure TOrdersUpdateShipmentResponse.Setkind(AIndex : Integer; const AValue : String);
  8246. begin
  8247. If (Fkind=AValue) then exit;
  8248. Fkind:=AValue;
  8249. MarkPropertyChanged(AIndex);
  8250. end;
  8251. { --------------------------------------------------------------------
  8252. TPrice
  8253. --------------------------------------------------------------------}
  8254. Procedure TPrice.Setcurrency(AIndex : Integer; const AValue : String);
  8255. begin
  8256. If (Fcurrency=AValue) then exit;
  8257. Fcurrency:=AValue;
  8258. MarkPropertyChanged(AIndex);
  8259. end;
  8260. Procedure TPrice.Setvalue(AIndex : Integer; const AValue : String);
  8261. begin
  8262. If (Fvalue=AValue) then exit;
  8263. Fvalue:=AValue;
  8264. MarkPropertyChanged(AIndex);
  8265. end;
  8266. { --------------------------------------------------------------------
  8267. TProduct
  8268. --------------------------------------------------------------------}
  8269. Procedure TProduct.SetadditionalImageLinks(AIndex : Integer; const AValue : TStringArray);
  8270. begin
  8271. If (FadditionalImageLinks=AValue) then exit;
  8272. FadditionalImageLinks:=AValue;
  8273. MarkPropertyChanged(AIndex);
  8274. end;
  8275. Procedure TProduct.Setadult(AIndex : Integer; const AValue : boolean);
  8276. begin
  8277. If (Fadult=AValue) then exit;
  8278. Fadult:=AValue;
  8279. MarkPropertyChanged(AIndex);
  8280. end;
  8281. Procedure TProduct.SetadwordsGrouping(AIndex : Integer; const AValue : String);
  8282. begin
  8283. If (FadwordsGrouping=AValue) then exit;
  8284. FadwordsGrouping:=AValue;
  8285. MarkPropertyChanged(AIndex);
  8286. end;
  8287. Procedure TProduct.SetadwordsLabels(AIndex : Integer; const AValue : TStringArray);
  8288. begin
  8289. If (FadwordsLabels=AValue) then exit;
  8290. FadwordsLabels:=AValue;
  8291. MarkPropertyChanged(AIndex);
  8292. end;
  8293. Procedure TProduct.SetadwordsRedirect(AIndex : Integer; const AValue : String);
  8294. begin
  8295. If (FadwordsRedirect=AValue) then exit;
  8296. FadwordsRedirect:=AValue;
  8297. MarkPropertyChanged(AIndex);
  8298. end;
  8299. Procedure TProduct.SetageGroup(AIndex : Integer; const AValue : String);
  8300. begin
  8301. If (FageGroup=AValue) then exit;
  8302. FageGroup:=AValue;
  8303. MarkPropertyChanged(AIndex);
  8304. end;
  8305. Procedure TProduct.Setaspects(AIndex : Integer; const AValue : TProductTypeaspectsArray);
  8306. begin
  8307. If (Faspects=AValue) then exit;
  8308. Faspects:=AValue;
  8309. MarkPropertyChanged(AIndex);
  8310. end;
  8311. Procedure TProduct.Setavailability(AIndex : Integer; const AValue : String);
  8312. begin
  8313. If (Favailability=AValue) then exit;
  8314. Favailability:=AValue;
  8315. MarkPropertyChanged(AIndex);
  8316. end;
  8317. Procedure TProduct.SetavailabilityDate(AIndex : Integer; const AValue : String);
  8318. begin
  8319. If (FavailabilityDate=AValue) then exit;
  8320. FavailabilityDate:=AValue;
  8321. MarkPropertyChanged(AIndex);
  8322. end;
  8323. Procedure TProduct.Setbrand(AIndex : Integer; const AValue : String);
  8324. begin
  8325. If (Fbrand=AValue) then exit;
  8326. Fbrand:=AValue;
  8327. MarkPropertyChanged(AIndex);
  8328. end;
  8329. Procedure TProduct.Setchannel(AIndex : Integer; const AValue : String);
  8330. begin
  8331. If (Fchannel=AValue) then exit;
  8332. Fchannel:=AValue;
  8333. MarkPropertyChanged(AIndex);
  8334. end;
  8335. Procedure TProduct.Setcolor(AIndex : Integer; const AValue : String);
  8336. begin
  8337. If (Fcolor=AValue) then exit;
  8338. Fcolor:=AValue;
  8339. MarkPropertyChanged(AIndex);
  8340. end;
  8341. Procedure TProduct.Setcondition(AIndex : Integer; const AValue : String);
  8342. begin
  8343. If (Fcondition=AValue) then exit;
  8344. Fcondition:=AValue;
  8345. MarkPropertyChanged(AIndex);
  8346. end;
  8347. Procedure TProduct.SetcontentLanguage(AIndex : Integer; const AValue : String);
  8348. begin
  8349. If (FcontentLanguage=AValue) then exit;
  8350. FcontentLanguage:=AValue;
  8351. MarkPropertyChanged(AIndex);
  8352. end;
  8353. Procedure TProduct.SetcustomAttributes(AIndex : Integer; const AValue : TProductTypecustomAttributesArray);
  8354. begin
  8355. If (FcustomAttributes=AValue) then exit;
  8356. FcustomAttributes:=AValue;
  8357. MarkPropertyChanged(AIndex);
  8358. end;
  8359. Procedure TProduct.SetcustomGroups(AIndex : Integer; const AValue : TProductTypecustomGroupsArray);
  8360. begin
  8361. If (FcustomGroups=AValue) then exit;
  8362. FcustomGroups:=AValue;
  8363. MarkPropertyChanged(AIndex);
  8364. end;
  8365. Procedure TProduct.SetcustomLabel0(AIndex : Integer; const AValue : String);
  8366. begin
  8367. If (FcustomLabel0=AValue) then exit;
  8368. FcustomLabel0:=AValue;
  8369. MarkPropertyChanged(AIndex);
  8370. end;
  8371. Procedure TProduct.SetcustomLabel1(AIndex : Integer; const AValue : String);
  8372. begin
  8373. If (FcustomLabel1=AValue) then exit;
  8374. FcustomLabel1:=AValue;
  8375. MarkPropertyChanged(AIndex);
  8376. end;
  8377. Procedure TProduct.SetcustomLabel2(AIndex : Integer; const AValue : String);
  8378. begin
  8379. If (FcustomLabel2=AValue) then exit;
  8380. FcustomLabel2:=AValue;
  8381. MarkPropertyChanged(AIndex);
  8382. end;
  8383. Procedure TProduct.SetcustomLabel3(AIndex : Integer; const AValue : String);
  8384. begin
  8385. If (FcustomLabel3=AValue) then exit;
  8386. FcustomLabel3:=AValue;
  8387. MarkPropertyChanged(AIndex);
  8388. end;
  8389. Procedure TProduct.SetcustomLabel4(AIndex : Integer; const AValue : String);
  8390. begin
  8391. If (FcustomLabel4=AValue) then exit;
  8392. FcustomLabel4:=AValue;
  8393. MarkPropertyChanged(AIndex);
  8394. end;
  8395. Procedure TProduct.Setdescription(AIndex : Integer; const AValue : String);
  8396. begin
  8397. If (Fdescription=AValue) then exit;
  8398. Fdescription:=AValue;
  8399. MarkPropertyChanged(AIndex);
  8400. end;
  8401. Procedure TProduct.Setdestinations(AIndex : Integer; const AValue : TProductTypedestinationsArray);
  8402. begin
  8403. If (Fdestinations=AValue) then exit;
  8404. Fdestinations:=AValue;
  8405. MarkPropertyChanged(AIndex);
  8406. end;
  8407. Procedure TProduct.SetdisplayAdsId(AIndex : Integer; const AValue : String);
  8408. begin
  8409. If (FdisplayAdsId=AValue) then exit;
  8410. FdisplayAdsId:=AValue;
  8411. MarkPropertyChanged(AIndex);
  8412. end;
  8413. Procedure TProduct.SetdisplayAdsLink(AIndex : Integer; const AValue : String);
  8414. begin
  8415. If (FdisplayAdsLink=AValue) then exit;
  8416. FdisplayAdsLink:=AValue;
  8417. MarkPropertyChanged(AIndex);
  8418. end;
  8419. Procedure TProduct.SetdisplayAdsSimilarIds(AIndex : Integer; const AValue : TStringArray);
  8420. begin
  8421. If (FdisplayAdsSimilarIds=AValue) then exit;
  8422. FdisplayAdsSimilarIds:=AValue;
  8423. MarkPropertyChanged(AIndex);
  8424. end;
  8425. Procedure TProduct.SetdisplayAdsTitle(AIndex : Integer; const AValue : String);
  8426. begin
  8427. If (FdisplayAdsTitle=AValue) then exit;
  8428. FdisplayAdsTitle:=AValue;
  8429. MarkPropertyChanged(AIndex);
  8430. end;
  8431. Procedure TProduct.SetdisplayAdsValue(AIndex : Integer; const AValue : double);
  8432. begin
  8433. If (FdisplayAdsValue=AValue) then exit;
  8434. FdisplayAdsValue:=AValue;
  8435. MarkPropertyChanged(AIndex);
  8436. end;
  8437. Procedure TProduct.SetenergyEfficiencyClass(AIndex : Integer; const AValue : String);
  8438. begin
  8439. If (FenergyEfficiencyClass=AValue) then exit;
  8440. FenergyEfficiencyClass:=AValue;
  8441. MarkPropertyChanged(AIndex);
  8442. end;
  8443. Procedure TProduct.SetexpirationDate(AIndex : Integer; const AValue : String);
  8444. begin
  8445. If (FexpirationDate=AValue) then exit;
  8446. FexpirationDate:=AValue;
  8447. MarkPropertyChanged(AIndex);
  8448. end;
  8449. Procedure TProduct.Setgender(AIndex : Integer; const AValue : String);
  8450. begin
  8451. If (Fgender=AValue) then exit;
  8452. Fgender:=AValue;
  8453. MarkPropertyChanged(AIndex);
  8454. end;
  8455. Procedure TProduct.SetgoogleProductCategory(AIndex : Integer; const AValue : String);
  8456. begin
  8457. If (FgoogleProductCategory=AValue) then exit;
  8458. FgoogleProductCategory:=AValue;
  8459. MarkPropertyChanged(AIndex);
  8460. end;
  8461. Procedure TProduct.Setgtin(AIndex : Integer; const AValue : String);
  8462. begin
  8463. If (Fgtin=AValue) then exit;
  8464. Fgtin:=AValue;
  8465. MarkPropertyChanged(AIndex);
  8466. end;
  8467. Procedure TProduct.Setid(AIndex : Integer; const AValue : String);
  8468. begin
  8469. If (Fid=AValue) then exit;
  8470. Fid:=AValue;
  8471. MarkPropertyChanged(AIndex);
  8472. end;
  8473. Procedure TProduct.SetidentifierExists(AIndex : Integer; const AValue : boolean);
  8474. begin
  8475. If (FidentifierExists=AValue) then exit;
  8476. FidentifierExists:=AValue;
  8477. MarkPropertyChanged(AIndex);
  8478. end;
  8479. Procedure TProduct.SetimageLink(AIndex : Integer; const AValue : String);
  8480. begin
  8481. If (FimageLink=AValue) then exit;
  8482. FimageLink:=AValue;
  8483. MarkPropertyChanged(AIndex);
  8484. end;
  8485. Procedure TProduct.Setinstallment(AIndex : Integer; const AValue : TInstallment);
  8486. begin
  8487. If (Finstallment=AValue) then exit;
  8488. Finstallment:=AValue;
  8489. MarkPropertyChanged(AIndex);
  8490. end;
  8491. Procedure TProduct.SetisBundle(AIndex : Integer; const AValue : boolean);
  8492. begin
  8493. If (FisBundle=AValue) then exit;
  8494. FisBundle:=AValue;
  8495. MarkPropertyChanged(AIndex);
  8496. end;
  8497. Procedure TProduct.SetitemGroupId(AIndex : Integer; const AValue : String);
  8498. begin
  8499. If (FitemGroupId=AValue) then exit;
  8500. FitemGroupId:=AValue;
  8501. MarkPropertyChanged(AIndex);
  8502. end;
  8503. Procedure TProduct.Setkind(AIndex : Integer; const AValue : String);
  8504. begin
  8505. If (Fkind=AValue) then exit;
  8506. Fkind:=AValue;
  8507. MarkPropertyChanged(AIndex);
  8508. end;
  8509. Procedure TProduct.Setlink(AIndex : Integer; const AValue : String);
  8510. begin
  8511. If (Flink=AValue) then exit;
  8512. Flink:=AValue;
  8513. MarkPropertyChanged(AIndex);
  8514. end;
  8515. Procedure TProduct.SetloyaltyPoints(AIndex : Integer; const AValue : TLoyaltyPoints);
  8516. begin
  8517. If (FloyaltyPoints=AValue) then exit;
  8518. FloyaltyPoints:=AValue;
  8519. MarkPropertyChanged(AIndex);
  8520. end;
  8521. Procedure TProduct.Setmaterial(AIndex : Integer; const AValue : String);
  8522. begin
  8523. If (Fmaterial=AValue) then exit;
  8524. Fmaterial:=AValue;
  8525. MarkPropertyChanged(AIndex);
  8526. end;
  8527. Procedure TProduct.SetmobileLink(AIndex : Integer; const AValue : String);
  8528. begin
  8529. If (FmobileLink=AValue) then exit;
  8530. FmobileLink:=AValue;
  8531. MarkPropertyChanged(AIndex);
  8532. end;
  8533. Procedure TProduct.Setmpn(AIndex : Integer; const AValue : String);
  8534. begin
  8535. If (Fmpn=AValue) then exit;
  8536. Fmpn:=AValue;
  8537. MarkPropertyChanged(AIndex);
  8538. end;
  8539. Procedure TProduct.Setmultipack(AIndex : Integer; const AValue : String);
  8540. begin
  8541. If (Fmultipack=AValue) then exit;
  8542. Fmultipack:=AValue;
  8543. MarkPropertyChanged(AIndex);
  8544. end;
  8545. Procedure TProduct.SetofferId(AIndex : Integer; const AValue : String);
  8546. begin
  8547. If (FofferId=AValue) then exit;
  8548. FofferId:=AValue;
  8549. MarkPropertyChanged(AIndex);
  8550. end;
  8551. Procedure TProduct.SetonlineOnly(AIndex : Integer; const AValue : boolean);
  8552. begin
  8553. If (FonlineOnly=AValue) then exit;
  8554. FonlineOnly:=AValue;
  8555. MarkPropertyChanged(AIndex);
  8556. end;
  8557. Procedure TProduct.Setpattern(AIndex : Integer; const AValue : String);
  8558. begin
  8559. If (Fpattern=AValue) then exit;
  8560. Fpattern:=AValue;
  8561. MarkPropertyChanged(AIndex);
  8562. end;
  8563. Procedure TProduct.Setprice(AIndex : Integer; const AValue : TPrice);
  8564. begin
  8565. If (Fprice=AValue) then exit;
  8566. Fprice:=AValue;
  8567. MarkPropertyChanged(AIndex);
  8568. end;
  8569. Procedure TProduct.SetproductType(AIndex : Integer; const AValue : String);
  8570. begin
  8571. If (FproductType=AValue) then exit;
  8572. FproductType:=AValue;
  8573. MarkPropertyChanged(AIndex);
  8574. end;
  8575. Procedure TProduct.SetpromotionIds(AIndex : Integer; const AValue : TStringArray);
  8576. begin
  8577. If (FpromotionIds=AValue) then exit;
  8578. FpromotionIds:=AValue;
  8579. MarkPropertyChanged(AIndex);
  8580. end;
  8581. Procedure TProduct.SetsalePrice(AIndex : Integer; const AValue : TPrice);
  8582. begin
  8583. If (FsalePrice=AValue) then exit;
  8584. FsalePrice:=AValue;
  8585. MarkPropertyChanged(AIndex);
  8586. end;
  8587. Procedure TProduct.SetsalePriceEffectiveDate(AIndex : Integer; const AValue : String);
  8588. begin
  8589. If (FsalePriceEffectiveDate=AValue) then exit;
  8590. FsalePriceEffectiveDate:=AValue;
  8591. MarkPropertyChanged(AIndex);
  8592. end;
  8593. Procedure TProduct.SetsellOnGoogleQuantity(AIndex : Integer; const AValue : String);
  8594. begin
  8595. If (FsellOnGoogleQuantity=AValue) then exit;
  8596. FsellOnGoogleQuantity:=AValue;
  8597. MarkPropertyChanged(AIndex);
  8598. end;
  8599. Procedure TProduct.Setshipping(AIndex : Integer; const AValue : TProductTypeshippingArray);
  8600. begin
  8601. If (Fshipping=AValue) then exit;
  8602. Fshipping:=AValue;
  8603. MarkPropertyChanged(AIndex);
  8604. end;
  8605. Procedure TProduct.SetshippingHeight(AIndex : Integer; const AValue : TProductShippingDimension);
  8606. begin
  8607. If (FshippingHeight=AValue) then exit;
  8608. FshippingHeight:=AValue;
  8609. MarkPropertyChanged(AIndex);
  8610. end;
  8611. Procedure TProduct.SetshippingLabel(AIndex : Integer; const AValue : String);
  8612. begin
  8613. If (FshippingLabel=AValue) then exit;
  8614. FshippingLabel:=AValue;
  8615. MarkPropertyChanged(AIndex);
  8616. end;
  8617. Procedure TProduct.SetshippingLength(AIndex : Integer; const AValue : TProductShippingDimension);
  8618. begin
  8619. If (FshippingLength=AValue) then exit;
  8620. FshippingLength:=AValue;
  8621. MarkPropertyChanged(AIndex);
  8622. end;
  8623. Procedure TProduct.SetshippingWeight(AIndex : Integer; const AValue : TProductShippingWeight);
  8624. begin
  8625. If (FshippingWeight=AValue) then exit;
  8626. FshippingWeight:=AValue;
  8627. MarkPropertyChanged(AIndex);
  8628. end;
  8629. Procedure TProduct.SetshippingWidth(AIndex : Integer; const AValue : TProductShippingDimension);
  8630. begin
  8631. If (FshippingWidth=AValue) then exit;
  8632. FshippingWidth:=AValue;
  8633. MarkPropertyChanged(AIndex);
  8634. end;
  8635. Procedure TProduct.SetsizeSystem(AIndex : Integer; const AValue : String);
  8636. begin
  8637. If (FsizeSystem=AValue) then exit;
  8638. FsizeSystem:=AValue;
  8639. MarkPropertyChanged(AIndex);
  8640. end;
  8641. Procedure TProduct.SetsizeType(AIndex : Integer; const AValue : String);
  8642. begin
  8643. If (FsizeType=AValue) then exit;
  8644. FsizeType:=AValue;
  8645. MarkPropertyChanged(AIndex);
  8646. end;
  8647. Procedure TProduct.Setsizes(AIndex : Integer; const AValue : TStringArray);
  8648. begin
  8649. If (Fsizes=AValue) then exit;
  8650. Fsizes:=AValue;
  8651. MarkPropertyChanged(AIndex);
  8652. end;
  8653. Procedure TProduct.SettargetCountry(AIndex : Integer; const AValue : String);
  8654. begin
  8655. If (FtargetCountry=AValue) then exit;
  8656. FtargetCountry:=AValue;
  8657. MarkPropertyChanged(AIndex);
  8658. end;
  8659. Procedure TProduct.Settaxes(AIndex : Integer; const AValue : TProductTypetaxesArray);
  8660. begin
  8661. If (Ftaxes=AValue) then exit;
  8662. Ftaxes:=AValue;
  8663. MarkPropertyChanged(AIndex);
  8664. end;
  8665. Procedure TProduct.Settitle(AIndex : Integer; const AValue : String);
  8666. begin
  8667. If (Ftitle=AValue) then exit;
  8668. Ftitle:=AValue;
  8669. MarkPropertyChanged(AIndex);
  8670. end;
  8671. Procedure TProduct.SetunitPricingBaseMeasure(AIndex : Integer; const AValue : TProductUnitPricingBaseMeasure);
  8672. begin
  8673. If (FunitPricingBaseMeasure=AValue) then exit;
  8674. FunitPricingBaseMeasure:=AValue;
  8675. MarkPropertyChanged(AIndex);
  8676. end;
  8677. Procedure TProduct.SetunitPricingMeasure(AIndex : Integer; const AValue : TProductUnitPricingMeasure);
  8678. begin
  8679. If (FunitPricingMeasure=AValue) then exit;
  8680. FunitPricingMeasure:=AValue;
  8681. MarkPropertyChanged(AIndex);
  8682. end;
  8683. Procedure TProduct.SetvalidatedDestinations(AIndex : Integer; const AValue : TStringArray);
  8684. begin
  8685. If (FvalidatedDestinations=AValue) then exit;
  8686. FvalidatedDestinations:=AValue;
  8687. MarkPropertyChanged(AIndex);
  8688. end;
  8689. Procedure TProduct.Setwarnings(AIndex : Integer; const AValue : TProductTypewarningsArray);
  8690. begin
  8691. If (Fwarnings=AValue) then exit;
  8692. Fwarnings:=AValue;
  8693. MarkPropertyChanged(AIndex);
  8694. end;
  8695. //2.6.4. bug workaround
  8696. {$IFDEF VER2_6}
  8697. Procedure TProduct.SetArrayLength(Const AName : String; ALength : Longint);
  8698. begin
  8699. Case AName of
  8700. 'additionalimagelinks' : SetLength(FadditionalImageLinks,ALength);
  8701. 'adwordslabels' : SetLength(FadwordsLabels,ALength);
  8702. 'aspects' : SetLength(Faspects,ALength);
  8703. 'customattributes' : SetLength(FcustomAttributes,ALength);
  8704. 'customgroups' : SetLength(FcustomGroups,ALength);
  8705. 'destinations' : SetLength(Fdestinations,ALength);
  8706. 'displayadssimilarids' : SetLength(FdisplayAdsSimilarIds,ALength);
  8707. 'promotionids' : SetLength(FpromotionIds,ALength);
  8708. 'shipping' : SetLength(Fshipping,ALength);
  8709. 'sizes' : SetLength(Fsizes,ALength);
  8710. 'taxes' : SetLength(Ftaxes,ALength);
  8711. 'validateddestinations' : SetLength(FvalidatedDestinations,ALength);
  8712. 'warnings' : SetLength(Fwarnings,ALength);
  8713. else
  8714. Inherited SetArrayLength(AName,ALength);
  8715. end;
  8716. end;
  8717. {$ENDIF VER2_6}
  8718. { --------------------------------------------------------------------
  8719. TProductAspect
  8720. --------------------------------------------------------------------}
  8721. Procedure TProductAspect.SetaspectName(AIndex : Integer; const AValue : String);
  8722. begin
  8723. If (FaspectName=AValue) then exit;
  8724. FaspectName:=AValue;
  8725. MarkPropertyChanged(AIndex);
  8726. end;
  8727. Procedure TProductAspect.SetdestinationName(AIndex : Integer; const AValue : String);
  8728. begin
  8729. If (FdestinationName=AValue) then exit;
  8730. FdestinationName:=AValue;
  8731. MarkPropertyChanged(AIndex);
  8732. end;
  8733. Procedure TProductAspect.Setintention(AIndex : Integer; const AValue : String);
  8734. begin
  8735. If (Fintention=AValue) then exit;
  8736. Fintention:=AValue;
  8737. MarkPropertyChanged(AIndex);
  8738. end;
  8739. { --------------------------------------------------------------------
  8740. TProductCustomAttribute
  8741. --------------------------------------------------------------------}
  8742. Procedure TProductCustomAttribute.Setname(AIndex : Integer; const AValue : String);
  8743. begin
  8744. If (Fname=AValue) then exit;
  8745. Fname:=AValue;
  8746. MarkPropertyChanged(AIndex);
  8747. end;
  8748. Procedure TProductCustomAttribute.Set_type(AIndex : Integer; const AValue : String);
  8749. begin
  8750. If (F_type=AValue) then exit;
  8751. F_type:=AValue;
  8752. MarkPropertyChanged(AIndex);
  8753. end;
  8754. Procedure TProductCustomAttribute.Set_unit(AIndex : Integer; const AValue : String);
  8755. begin
  8756. If (F_unit=AValue) then exit;
  8757. F_unit:=AValue;
  8758. MarkPropertyChanged(AIndex);
  8759. end;
  8760. Procedure TProductCustomAttribute.Setvalue(AIndex : Integer; const AValue : String);
  8761. begin
  8762. If (Fvalue=AValue) then exit;
  8763. Fvalue:=AValue;
  8764. MarkPropertyChanged(AIndex);
  8765. end;
  8766. Class Function TProductCustomAttribute.ExportPropertyName(Const AName : String) :String;
  8767. begin
  8768. Case AName of
  8769. '_type' : Result:='type';
  8770. '_unit' : Result:='unit';
  8771. else
  8772. Result:=Inherited ExportPropertyName(AName);
  8773. end;
  8774. end;
  8775. { --------------------------------------------------------------------
  8776. TProductCustomGroup
  8777. --------------------------------------------------------------------}
  8778. Procedure TProductCustomGroup.Setattributes(AIndex : Integer; const AValue : TProductCustomGroupTypeattributesArray);
  8779. begin
  8780. If (Fattributes=AValue) then exit;
  8781. Fattributes:=AValue;
  8782. MarkPropertyChanged(AIndex);
  8783. end;
  8784. Procedure TProductCustomGroup.Setname(AIndex : Integer; const AValue : String);
  8785. begin
  8786. If (Fname=AValue) then exit;
  8787. Fname:=AValue;
  8788. MarkPropertyChanged(AIndex);
  8789. end;
  8790. //2.6.4. bug workaround
  8791. {$IFDEF VER2_6}
  8792. Procedure TProductCustomGroup.SetArrayLength(Const AName : String; ALength : Longint);
  8793. begin
  8794. Case AName of
  8795. 'attributes' : SetLength(Fattributes,ALength);
  8796. else
  8797. Inherited SetArrayLength(AName,ALength);
  8798. end;
  8799. end;
  8800. {$ENDIF VER2_6}
  8801. { --------------------------------------------------------------------
  8802. TProductDestination
  8803. --------------------------------------------------------------------}
  8804. Procedure TProductDestination.SetdestinationName(AIndex : Integer; const AValue : String);
  8805. begin
  8806. If (FdestinationName=AValue) then exit;
  8807. FdestinationName:=AValue;
  8808. MarkPropertyChanged(AIndex);
  8809. end;
  8810. Procedure TProductDestination.Setintention(AIndex : Integer; const AValue : String);
  8811. begin
  8812. If (Fintention=AValue) then exit;
  8813. Fintention:=AValue;
  8814. MarkPropertyChanged(AIndex);
  8815. end;
  8816. { --------------------------------------------------------------------
  8817. TProductShipping
  8818. --------------------------------------------------------------------}
  8819. Procedure TProductShipping.Setcountry(AIndex : Integer; const AValue : String);
  8820. begin
  8821. If (Fcountry=AValue) then exit;
  8822. Fcountry:=AValue;
  8823. MarkPropertyChanged(AIndex);
  8824. end;
  8825. Procedure TProductShipping.SetlocationGroupName(AIndex : Integer; const AValue : String);
  8826. begin
  8827. If (FlocationGroupName=AValue) then exit;
  8828. FlocationGroupName:=AValue;
  8829. MarkPropertyChanged(AIndex);
  8830. end;
  8831. Procedure TProductShipping.SetlocationId(AIndex : Integer; const AValue : String);
  8832. begin
  8833. If (FlocationId=AValue) then exit;
  8834. FlocationId:=AValue;
  8835. MarkPropertyChanged(AIndex);
  8836. end;
  8837. Procedure TProductShipping.SetpostalCode(AIndex : Integer; const AValue : String);
  8838. begin
  8839. If (FpostalCode=AValue) then exit;
  8840. FpostalCode:=AValue;
  8841. MarkPropertyChanged(AIndex);
  8842. end;
  8843. Procedure TProductShipping.Setprice(AIndex : Integer; const AValue : TPrice);
  8844. begin
  8845. If (Fprice=AValue) then exit;
  8846. Fprice:=AValue;
  8847. MarkPropertyChanged(AIndex);
  8848. end;
  8849. Procedure TProductShipping.Setregion(AIndex : Integer; const AValue : String);
  8850. begin
  8851. If (Fregion=AValue) then exit;
  8852. Fregion:=AValue;
  8853. MarkPropertyChanged(AIndex);
  8854. end;
  8855. Procedure TProductShipping.Setservice(AIndex : Integer; const AValue : String);
  8856. begin
  8857. If (Fservice=AValue) then exit;
  8858. Fservice:=AValue;
  8859. MarkPropertyChanged(AIndex);
  8860. end;
  8861. { --------------------------------------------------------------------
  8862. TProductShippingDimension
  8863. --------------------------------------------------------------------}
  8864. Procedure TProductShippingDimension.Set_unit(AIndex : Integer; const AValue : String);
  8865. begin
  8866. If (F_unit=AValue) then exit;
  8867. F_unit:=AValue;
  8868. MarkPropertyChanged(AIndex);
  8869. end;
  8870. Procedure TProductShippingDimension.Setvalue(AIndex : Integer; const AValue : double);
  8871. begin
  8872. If (Fvalue=AValue) then exit;
  8873. Fvalue:=AValue;
  8874. MarkPropertyChanged(AIndex);
  8875. end;
  8876. Class Function TProductShippingDimension.ExportPropertyName(Const AName : String) :String;
  8877. begin
  8878. Case AName of
  8879. '_unit' : Result:='unit';
  8880. else
  8881. Result:=Inherited ExportPropertyName(AName);
  8882. end;
  8883. end;
  8884. { --------------------------------------------------------------------
  8885. TProductShippingWeight
  8886. --------------------------------------------------------------------}
  8887. Procedure TProductShippingWeight.Set_unit(AIndex : Integer; const AValue : String);
  8888. begin
  8889. If (F_unit=AValue) then exit;
  8890. F_unit:=AValue;
  8891. MarkPropertyChanged(AIndex);
  8892. end;
  8893. Procedure TProductShippingWeight.Setvalue(AIndex : Integer; const AValue : double);
  8894. begin
  8895. If (Fvalue=AValue) then exit;
  8896. Fvalue:=AValue;
  8897. MarkPropertyChanged(AIndex);
  8898. end;
  8899. Class Function TProductShippingWeight.ExportPropertyName(Const AName : String) :String;
  8900. begin
  8901. Case AName of
  8902. '_unit' : Result:='unit';
  8903. else
  8904. Result:=Inherited ExportPropertyName(AName);
  8905. end;
  8906. end;
  8907. { --------------------------------------------------------------------
  8908. TProductStatus
  8909. --------------------------------------------------------------------}
  8910. Procedure TProductStatus.SetcreationDate(AIndex : Integer; const AValue : String);
  8911. begin
  8912. If (FcreationDate=AValue) then exit;
  8913. FcreationDate:=AValue;
  8914. MarkPropertyChanged(AIndex);
  8915. end;
  8916. Procedure TProductStatus.SetdataQualityIssues(AIndex : Integer; const AValue : TProductStatusTypedataQualityIssuesArray);
  8917. begin
  8918. If (FdataQualityIssues=AValue) then exit;
  8919. FdataQualityIssues:=AValue;
  8920. MarkPropertyChanged(AIndex);
  8921. end;
  8922. Procedure TProductStatus.SetdestinationStatuses(AIndex : Integer; const AValue : TProductStatusTypedestinationStatusesArray);
  8923. begin
  8924. If (FdestinationStatuses=AValue) then exit;
  8925. FdestinationStatuses:=AValue;
  8926. MarkPropertyChanged(AIndex);
  8927. end;
  8928. Procedure TProductStatus.SetgoogleExpirationDate(AIndex : Integer; const AValue : String);
  8929. begin
  8930. If (FgoogleExpirationDate=AValue) then exit;
  8931. FgoogleExpirationDate:=AValue;
  8932. MarkPropertyChanged(AIndex);
  8933. end;
  8934. Procedure TProductStatus.Setkind(AIndex : Integer; const AValue : String);
  8935. begin
  8936. If (Fkind=AValue) then exit;
  8937. Fkind:=AValue;
  8938. MarkPropertyChanged(AIndex);
  8939. end;
  8940. Procedure TProductStatus.SetlastUpdateDate(AIndex : Integer; const AValue : String);
  8941. begin
  8942. If (FlastUpdateDate=AValue) then exit;
  8943. FlastUpdateDate:=AValue;
  8944. MarkPropertyChanged(AIndex);
  8945. end;
  8946. Procedure TProductStatus.Setlink(AIndex : Integer; const AValue : String);
  8947. begin
  8948. If (Flink=AValue) then exit;
  8949. Flink:=AValue;
  8950. MarkPropertyChanged(AIndex);
  8951. end;
  8952. Procedure TProductStatus.SetproductId(AIndex : Integer; const AValue : String);
  8953. begin
  8954. If (FproductId=AValue) then exit;
  8955. FproductId:=AValue;
  8956. MarkPropertyChanged(AIndex);
  8957. end;
  8958. Procedure TProductStatus.Settitle(AIndex : Integer; const AValue : String);
  8959. begin
  8960. If (Ftitle=AValue) then exit;
  8961. Ftitle:=AValue;
  8962. MarkPropertyChanged(AIndex);
  8963. end;
  8964. //2.6.4. bug workaround
  8965. {$IFDEF VER2_6}
  8966. Procedure TProductStatus.SetArrayLength(Const AName : String; ALength : Longint);
  8967. begin
  8968. Case AName of
  8969. 'dataqualityissues' : SetLength(FdataQualityIssues,ALength);
  8970. 'destinationstatuses' : SetLength(FdestinationStatuses,ALength);
  8971. else
  8972. Inherited SetArrayLength(AName,ALength);
  8973. end;
  8974. end;
  8975. {$ENDIF VER2_6}
  8976. { --------------------------------------------------------------------
  8977. TProductStatusDataQualityIssue
  8978. --------------------------------------------------------------------}
  8979. Procedure TProductStatusDataQualityIssue.Setdetail(AIndex : Integer; const AValue : String);
  8980. begin
  8981. If (Fdetail=AValue) then exit;
  8982. Fdetail:=AValue;
  8983. MarkPropertyChanged(AIndex);
  8984. end;
  8985. Procedure TProductStatusDataQualityIssue.SetfetchStatus(AIndex : Integer; const AValue : String);
  8986. begin
  8987. If (FfetchStatus=AValue) then exit;
  8988. FfetchStatus:=AValue;
  8989. MarkPropertyChanged(AIndex);
  8990. end;
  8991. Procedure TProductStatusDataQualityIssue.Setid(AIndex : Integer; const AValue : String);
  8992. begin
  8993. If (Fid=AValue) then exit;
  8994. Fid:=AValue;
  8995. MarkPropertyChanged(AIndex);
  8996. end;
  8997. Procedure TProductStatusDataQualityIssue.Setlocation(AIndex : Integer; const AValue : String);
  8998. begin
  8999. If (Flocation=AValue) then exit;
  9000. Flocation:=AValue;
  9001. MarkPropertyChanged(AIndex);
  9002. end;
  9003. Procedure TProductStatusDataQualityIssue.Setseverity(AIndex : Integer; const AValue : String);
  9004. begin
  9005. If (Fseverity=AValue) then exit;
  9006. Fseverity:=AValue;
  9007. MarkPropertyChanged(AIndex);
  9008. end;
  9009. Procedure TProductStatusDataQualityIssue.Settimestamp(AIndex : Integer; const AValue : String);
  9010. begin
  9011. If (Ftimestamp=AValue) then exit;
  9012. Ftimestamp:=AValue;
  9013. MarkPropertyChanged(AIndex);
  9014. end;
  9015. Procedure TProductStatusDataQualityIssue.SetvalueOnLandingPage(AIndex : Integer; const AValue : String);
  9016. begin
  9017. If (FvalueOnLandingPage=AValue) then exit;
  9018. FvalueOnLandingPage:=AValue;
  9019. MarkPropertyChanged(AIndex);
  9020. end;
  9021. Procedure TProductStatusDataQualityIssue.SetvalueProvided(AIndex : Integer; const AValue : String);
  9022. begin
  9023. If (FvalueProvided=AValue) then exit;
  9024. FvalueProvided:=AValue;
  9025. MarkPropertyChanged(AIndex);
  9026. end;
  9027. { --------------------------------------------------------------------
  9028. TProductStatusDestinationStatus
  9029. --------------------------------------------------------------------}
  9030. Procedure TProductStatusDestinationStatus.SetapprovalStatus(AIndex : Integer; const AValue : String);
  9031. begin
  9032. If (FapprovalStatus=AValue) then exit;
  9033. FapprovalStatus:=AValue;
  9034. MarkPropertyChanged(AIndex);
  9035. end;
  9036. Procedure TProductStatusDestinationStatus.Setdestination(AIndex : Integer; const AValue : String);
  9037. begin
  9038. If (Fdestination=AValue) then exit;
  9039. Fdestination:=AValue;
  9040. MarkPropertyChanged(AIndex);
  9041. end;
  9042. Procedure TProductStatusDestinationStatus.Setintention(AIndex : Integer; const AValue : String);
  9043. begin
  9044. If (Fintention=AValue) then exit;
  9045. Fintention:=AValue;
  9046. MarkPropertyChanged(AIndex);
  9047. end;
  9048. { --------------------------------------------------------------------
  9049. TProductTax
  9050. --------------------------------------------------------------------}
  9051. Procedure TProductTax.Setcountry(AIndex : Integer; const AValue : String);
  9052. begin
  9053. If (Fcountry=AValue) then exit;
  9054. Fcountry:=AValue;
  9055. MarkPropertyChanged(AIndex);
  9056. end;
  9057. Procedure TProductTax.SetlocationId(AIndex : Integer; const AValue : String);
  9058. begin
  9059. If (FlocationId=AValue) then exit;
  9060. FlocationId:=AValue;
  9061. MarkPropertyChanged(AIndex);
  9062. end;
  9063. Procedure TProductTax.SetpostalCode(AIndex : Integer; const AValue : String);
  9064. begin
  9065. If (FpostalCode=AValue) then exit;
  9066. FpostalCode:=AValue;
  9067. MarkPropertyChanged(AIndex);
  9068. end;
  9069. Procedure TProductTax.Setrate(AIndex : Integer; const AValue : double);
  9070. begin
  9071. If (Frate=AValue) then exit;
  9072. Frate:=AValue;
  9073. MarkPropertyChanged(AIndex);
  9074. end;
  9075. Procedure TProductTax.Setregion(AIndex : Integer; const AValue : String);
  9076. begin
  9077. If (Fregion=AValue) then exit;
  9078. Fregion:=AValue;
  9079. MarkPropertyChanged(AIndex);
  9080. end;
  9081. Procedure TProductTax.SettaxShip(AIndex : Integer; const AValue : boolean);
  9082. begin
  9083. If (FtaxShip=AValue) then exit;
  9084. FtaxShip:=AValue;
  9085. MarkPropertyChanged(AIndex);
  9086. end;
  9087. { --------------------------------------------------------------------
  9088. TProductUnitPricingBaseMeasure
  9089. --------------------------------------------------------------------}
  9090. Procedure TProductUnitPricingBaseMeasure.Set_unit(AIndex : Integer; const AValue : String);
  9091. begin
  9092. If (F_unit=AValue) then exit;
  9093. F_unit:=AValue;
  9094. MarkPropertyChanged(AIndex);
  9095. end;
  9096. Procedure TProductUnitPricingBaseMeasure.Setvalue(AIndex : Integer; const AValue : String);
  9097. begin
  9098. If (Fvalue=AValue) then exit;
  9099. Fvalue:=AValue;
  9100. MarkPropertyChanged(AIndex);
  9101. end;
  9102. Class Function TProductUnitPricingBaseMeasure.ExportPropertyName(Const AName : String) :String;
  9103. begin
  9104. Case AName of
  9105. '_unit' : Result:='unit';
  9106. else
  9107. Result:=Inherited ExportPropertyName(AName);
  9108. end;
  9109. end;
  9110. { --------------------------------------------------------------------
  9111. TProductUnitPricingMeasure
  9112. --------------------------------------------------------------------}
  9113. Procedure TProductUnitPricingMeasure.Set_unit(AIndex : Integer; const AValue : String);
  9114. begin
  9115. If (F_unit=AValue) then exit;
  9116. F_unit:=AValue;
  9117. MarkPropertyChanged(AIndex);
  9118. end;
  9119. Procedure TProductUnitPricingMeasure.Setvalue(AIndex : Integer; const AValue : double);
  9120. begin
  9121. If (Fvalue=AValue) then exit;
  9122. Fvalue:=AValue;
  9123. MarkPropertyChanged(AIndex);
  9124. end;
  9125. Class Function TProductUnitPricingMeasure.ExportPropertyName(Const AName : String) :String;
  9126. begin
  9127. Case AName of
  9128. '_unit' : Result:='unit';
  9129. else
  9130. Result:=Inherited ExportPropertyName(AName);
  9131. end;
  9132. end;
  9133. { --------------------------------------------------------------------
  9134. TProductsCustomBatchRequest
  9135. --------------------------------------------------------------------}
  9136. Procedure TProductsCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TProductsCustomBatchRequestTypeentriesArray);
  9137. begin
  9138. If (Fentries=AValue) then exit;
  9139. Fentries:=AValue;
  9140. MarkPropertyChanged(AIndex);
  9141. end;
  9142. //2.6.4. bug workaround
  9143. {$IFDEF VER2_6}
  9144. Procedure TProductsCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  9145. begin
  9146. Case AName of
  9147. 'entries' : SetLength(Fentries,ALength);
  9148. else
  9149. Inherited SetArrayLength(AName,ALength);
  9150. end;
  9151. end;
  9152. {$ENDIF VER2_6}
  9153. { --------------------------------------------------------------------
  9154. TProductsCustomBatchRequestEntry
  9155. --------------------------------------------------------------------}
  9156. Procedure TProductsCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  9157. begin
  9158. If (FbatchId=AValue) then exit;
  9159. FbatchId:=AValue;
  9160. MarkPropertyChanged(AIndex);
  9161. end;
  9162. Procedure TProductsCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  9163. begin
  9164. If (FmerchantId=AValue) then exit;
  9165. FmerchantId:=AValue;
  9166. MarkPropertyChanged(AIndex);
  9167. end;
  9168. Procedure TProductsCustomBatchRequestEntry.Setmethod(AIndex : Integer; const AValue : String);
  9169. begin
  9170. If (Fmethod=AValue) then exit;
  9171. Fmethod:=AValue;
  9172. MarkPropertyChanged(AIndex);
  9173. end;
  9174. Procedure TProductsCustomBatchRequestEntry.Setproduct(AIndex : Integer; const AValue : TProduct);
  9175. begin
  9176. If (Fproduct=AValue) then exit;
  9177. Fproduct:=AValue;
  9178. MarkPropertyChanged(AIndex);
  9179. end;
  9180. Procedure TProductsCustomBatchRequestEntry.SetproductId(AIndex : Integer; const AValue : String);
  9181. begin
  9182. If (FproductId=AValue) then exit;
  9183. FproductId:=AValue;
  9184. MarkPropertyChanged(AIndex);
  9185. end;
  9186. { --------------------------------------------------------------------
  9187. TProductsCustomBatchResponse
  9188. --------------------------------------------------------------------}
  9189. Procedure TProductsCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TProductsCustomBatchResponseTypeentriesArray);
  9190. begin
  9191. If (Fentries=AValue) then exit;
  9192. Fentries:=AValue;
  9193. MarkPropertyChanged(AIndex);
  9194. end;
  9195. Procedure TProductsCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  9196. begin
  9197. If (Fkind=AValue) then exit;
  9198. Fkind:=AValue;
  9199. MarkPropertyChanged(AIndex);
  9200. end;
  9201. //2.6.4. bug workaround
  9202. {$IFDEF VER2_6}
  9203. Procedure TProductsCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  9204. begin
  9205. Case AName of
  9206. 'entries' : SetLength(Fentries,ALength);
  9207. else
  9208. Inherited SetArrayLength(AName,ALength);
  9209. end;
  9210. end;
  9211. {$ENDIF VER2_6}
  9212. { --------------------------------------------------------------------
  9213. TProductsCustomBatchResponseEntry
  9214. --------------------------------------------------------------------}
  9215. Procedure TProductsCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  9216. begin
  9217. If (FbatchId=AValue) then exit;
  9218. FbatchId:=AValue;
  9219. MarkPropertyChanged(AIndex);
  9220. end;
  9221. Procedure TProductsCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  9222. begin
  9223. If (Ferrors=AValue) then exit;
  9224. Ferrors:=AValue;
  9225. MarkPropertyChanged(AIndex);
  9226. end;
  9227. Procedure TProductsCustomBatchResponseEntry.Setkind(AIndex : Integer; const AValue : String);
  9228. begin
  9229. If (Fkind=AValue) then exit;
  9230. Fkind:=AValue;
  9231. MarkPropertyChanged(AIndex);
  9232. end;
  9233. Procedure TProductsCustomBatchResponseEntry.Setproduct(AIndex : Integer; const AValue : TProduct);
  9234. begin
  9235. If (Fproduct=AValue) then exit;
  9236. Fproduct:=AValue;
  9237. MarkPropertyChanged(AIndex);
  9238. end;
  9239. { --------------------------------------------------------------------
  9240. TProductsListResponse
  9241. --------------------------------------------------------------------}
  9242. Procedure TProductsListResponse.Setkind(AIndex : Integer; const AValue : String);
  9243. begin
  9244. If (Fkind=AValue) then exit;
  9245. Fkind:=AValue;
  9246. MarkPropertyChanged(AIndex);
  9247. end;
  9248. Procedure TProductsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  9249. begin
  9250. If (FnextPageToken=AValue) then exit;
  9251. FnextPageToken:=AValue;
  9252. MarkPropertyChanged(AIndex);
  9253. end;
  9254. Procedure TProductsListResponse.Setresources(AIndex : Integer; const AValue : TProductsListResponseTyperesourcesArray);
  9255. begin
  9256. If (Fresources=AValue) then exit;
  9257. Fresources:=AValue;
  9258. MarkPropertyChanged(AIndex);
  9259. end;
  9260. //2.6.4. bug workaround
  9261. {$IFDEF VER2_6}
  9262. Procedure TProductsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  9263. begin
  9264. Case AName of
  9265. 'resources' : SetLength(Fresources,ALength);
  9266. else
  9267. Inherited SetArrayLength(AName,ALength);
  9268. end;
  9269. end;
  9270. {$ENDIF VER2_6}
  9271. { --------------------------------------------------------------------
  9272. TProductstatusesCustomBatchRequest
  9273. --------------------------------------------------------------------}
  9274. Procedure TProductstatusesCustomBatchRequest.Setentries(AIndex : Integer; const AValue : TProductstatusesCustomBatchRequestTypeentriesArray);
  9275. begin
  9276. If (Fentries=AValue) then exit;
  9277. Fentries:=AValue;
  9278. MarkPropertyChanged(AIndex);
  9279. end;
  9280. //2.6.4. bug workaround
  9281. {$IFDEF VER2_6}
  9282. Procedure TProductstatusesCustomBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  9283. begin
  9284. Case AName of
  9285. 'entries' : SetLength(Fentries,ALength);
  9286. else
  9287. Inherited SetArrayLength(AName,ALength);
  9288. end;
  9289. end;
  9290. {$ENDIF VER2_6}
  9291. { --------------------------------------------------------------------
  9292. TProductstatusesCustomBatchRequestEntry
  9293. --------------------------------------------------------------------}
  9294. Procedure TProductstatusesCustomBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  9295. begin
  9296. If (FbatchId=AValue) then exit;
  9297. FbatchId:=AValue;
  9298. MarkPropertyChanged(AIndex);
  9299. end;
  9300. Procedure TProductstatusesCustomBatchRequestEntry.SetmerchantId(AIndex : Integer; const AValue : String);
  9301. begin
  9302. If (FmerchantId=AValue) then exit;
  9303. FmerchantId:=AValue;
  9304. MarkPropertyChanged(AIndex);
  9305. end;
  9306. Procedure TProductstatusesCustomBatchRequestEntry.Setmethod(AIndex : Integer; const AValue : String);
  9307. begin
  9308. If (Fmethod=AValue) then exit;
  9309. Fmethod:=AValue;
  9310. MarkPropertyChanged(AIndex);
  9311. end;
  9312. Procedure TProductstatusesCustomBatchRequestEntry.SetproductId(AIndex : Integer; const AValue : String);
  9313. begin
  9314. If (FproductId=AValue) then exit;
  9315. FproductId:=AValue;
  9316. MarkPropertyChanged(AIndex);
  9317. end;
  9318. { --------------------------------------------------------------------
  9319. TProductstatusesCustomBatchResponse
  9320. --------------------------------------------------------------------}
  9321. Procedure TProductstatusesCustomBatchResponse.Setentries(AIndex : Integer; const AValue : TProductstatusesCustomBatchResponseTypeentriesArray);
  9322. begin
  9323. If (Fentries=AValue) then exit;
  9324. Fentries:=AValue;
  9325. MarkPropertyChanged(AIndex);
  9326. end;
  9327. Procedure TProductstatusesCustomBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  9328. begin
  9329. If (Fkind=AValue) then exit;
  9330. Fkind:=AValue;
  9331. MarkPropertyChanged(AIndex);
  9332. end;
  9333. //2.6.4. bug workaround
  9334. {$IFDEF VER2_6}
  9335. Procedure TProductstatusesCustomBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  9336. begin
  9337. Case AName of
  9338. 'entries' : SetLength(Fentries,ALength);
  9339. else
  9340. Inherited SetArrayLength(AName,ALength);
  9341. end;
  9342. end;
  9343. {$ENDIF VER2_6}
  9344. { --------------------------------------------------------------------
  9345. TProductstatusesCustomBatchResponseEntry
  9346. --------------------------------------------------------------------}
  9347. Procedure TProductstatusesCustomBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  9348. begin
  9349. If (FbatchId=AValue) then exit;
  9350. FbatchId:=AValue;
  9351. MarkPropertyChanged(AIndex);
  9352. end;
  9353. Procedure TProductstatusesCustomBatchResponseEntry.Seterrors(AIndex : Integer; const AValue : TErrors);
  9354. begin
  9355. If (Ferrors=AValue) then exit;
  9356. Ferrors:=AValue;
  9357. MarkPropertyChanged(AIndex);
  9358. end;
  9359. Procedure TProductstatusesCustomBatchResponseEntry.Setkind(AIndex : Integer; const AValue : String);
  9360. begin
  9361. If (Fkind=AValue) then exit;
  9362. Fkind:=AValue;
  9363. MarkPropertyChanged(AIndex);
  9364. end;
  9365. Procedure TProductstatusesCustomBatchResponseEntry.SetproductStatus(AIndex : Integer; const AValue : TProductStatus);
  9366. begin
  9367. If (FproductStatus=AValue) then exit;
  9368. FproductStatus:=AValue;
  9369. MarkPropertyChanged(AIndex);
  9370. end;
  9371. { --------------------------------------------------------------------
  9372. TProductstatusesListResponse
  9373. --------------------------------------------------------------------}
  9374. Procedure TProductstatusesListResponse.Setkind(AIndex : Integer; const AValue : String);
  9375. begin
  9376. If (Fkind=AValue) then exit;
  9377. Fkind:=AValue;
  9378. MarkPropertyChanged(AIndex);
  9379. end;
  9380. Procedure TProductstatusesListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  9381. begin
  9382. If (FnextPageToken=AValue) then exit;
  9383. FnextPageToken:=AValue;
  9384. MarkPropertyChanged(AIndex);
  9385. end;
  9386. Procedure TProductstatusesListResponse.Setresources(AIndex : Integer; const AValue : TProductstatusesListResponseTyperesourcesArray);
  9387. begin
  9388. If (Fresources=AValue) then exit;
  9389. Fresources:=AValue;
  9390. MarkPropertyChanged(AIndex);
  9391. end;
  9392. //2.6.4. bug workaround
  9393. {$IFDEF VER2_6}
  9394. Procedure TProductstatusesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  9395. begin
  9396. Case AName of
  9397. 'resources' : SetLength(Fresources,ALength);
  9398. else
  9399. Inherited SetArrayLength(AName,ALength);
  9400. end;
  9401. end;
  9402. {$ENDIF VER2_6}
  9403. { --------------------------------------------------------------------
  9404. TTestOrder
  9405. --------------------------------------------------------------------}
  9406. Procedure TTestOrder.Setcustomer(AIndex : Integer; const AValue : TTestOrderCustomer);
  9407. begin
  9408. If (Fcustomer=AValue) then exit;
  9409. Fcustomer:=AValue;
  9410. MarkPropertyChanged(AIndex);
  9411. end;
  9412. Procedure TTestOrder.Setkind(AIndex : Integer; const AValue : String);
  9413. begin
  9414. If (Fkind=AValue) then exit;
  9415. Fkind:=AValue;
  9416. MarkPropertyChanged(AIndex);
  9417. end;
  9418. Procedure TTestOrder.SetlineItems(AIndex : Integer; const AValue : TTestOrderTypelineItemsArray);
  9419. begin
  9420. If (FlineItems=AValue) then exit;
  9421. FlineItems:=AValue;
  9422. MarkPropertyChanged(AIndex);
  9423. end;
  9424. Procedure TTestOrder.SetpaymentMethod(AIndex : Integer; const AValue : TTestOrderPaymentMethod);
  9425. begin
  9426. If (FpaymentMethod=AValue) then exit;
  9427. FpaymentMethod:=AValue;
  9428. MarkPropertyChanged(AIndex);
  9429. end;
  9430. Procedure TTestOrder.SetpredefinedDeliveryAddress(AIndex : Integer; const AValue : String);
  9431. begin
  9432. If (FpredefinedDeliveryAddress=AValue) then exit;
  9433. FpredefinedDeliveryAddress:=AValue;
  9434. MarkPropertyChanged(AIndex);
  9435. end;
  9436. Procedure TTestOrder.Setpromotions(AIndex : Integer; const AValue : TTestOrderTypepromotionsArray);
  9437. begin
  9438. If (Fpromotions=AValue) then exit;
  9439. Fpromotions:=AValue;
  9440. MarkPropertyChanged(AIndex);
  9441. end;
  9442. Procedure TTestOrder.SetshippingCost(AIndex : Integer; const AValue : TPrice);
  9443. begin
  9444. If (FshippingCost=AValue) then exit;
  9445. FshippingCost:=AValue;
  9446. MarkPropertyChanged(AIndex);
  9447. end;
  9448. Procedure TTestOrder.SetshippingCostTax(AIndex : Integer; const AValue : TPrice);
  9449. begin
  9450. If (FshippingCostTax=AValue) then exit;
  9451. FshippingCostTax:=AValue;
  9452. MarkPropertyChanged(AIndex);
  9453. end;
  9454. Procedure TTestOrder.SetshippingOption(AIndex : Integer; const AValue : String);
  9455. begin
  9456. If (FshippingOption=AValue) then exit;
  9457. FshippingOption:=AValue;
  9458. MarkPropertyChanged(AIndex);
  9459. end;
  9460. //2.6.4. bug workaround
  9461. {$IFDEF VER2_6}
  9462. Procedure TTestOrder.SetArrayLength(Const AName : String; ALength : Longint);
  9463. begin
  9464. Case AName of
  9465. 'lineitems' : SetLength(FlineItems,ALength);
  9466. 'promotions' : SetLength(Fpromotions,ALength);
  9467. else
  9468. Inherited SetArrayLength(AName,ALength);
  9469. end;
  9470. end;
  9471. {$ENDIF VER2_6}
  9472. { --------------------------------------------------------------------
  9473. TTestOrderCustomer
  9474. --------------------------------------------------------------------}
  9475. Procedure TTestOrderCustomer.Setemail(AIndex : Integer; const AValue : String);
  9476. begin
  9477. If (Femail=AValue) then exit;
  9478. Femail:=AValue;
  9479. MarkPropertyChanged(AIndex);
  9480. end;
  9481. Procedure TTestOrderCustomer.SetexplicitMarketingPreference(AIndex : Integer; const AValue : boolean);
  9482. begin
  9483. If (FexplicitMarketingPreference=AValue) then exit;
  9484. FexplicitMarketingPreference:=AValue;
  9485. MarkPropertyChanged(AIndex);
  9486. end;
  9487. Procedure TTestOrderCustomer.SetfullName(AIndex : Integer; const AValue : String);
  9488. begin
  9489. If (FfullName=AValue) then exit;
  9490. FfullName:=AValue;
  9491. MarkPropertyChanged(AIndex);
  9492. end;
  9493. { --------------------------------------------------------------------
  9494. TTestOrderLineItem
  9495. --------------------------------------------------------------------}
  9496. Procedure TTestOrderLineItem.Setproduct(AIndex : Integer; const AValue : TTestOrderLineItemProduct);
  9497. begin
  9498. If (Fproduct=AValue) then exit;
  9499. Fproduct:=AValue;
  9500. MarkPropertyChanged(AIndex);
  9501. end;
  9502. Procedure TTestOrderLineItem.SetquantityOrdered(AIndex : Integer; const AValue : integer);
  9503. begin
  9504. If (FquantityOrdered=AValue) then exit;
  9505. FquantityOrdered:=AValue;
  9506. MarkPropertyChanged(AIndex);
  9507. end;
  9508. Procedure TTestOrderLineItem.SetreturnInfo(AIndex : Integer; const AValue : TOrderLineItemReturnInfo);
  9509. begin
  9510. If (FreturnInfo=AValue) then exit;
  9511. FreturnInfo:=AValue;
  9512. MarkPropertyChanged(AIndex);
  9513. end;
  9514. Procedure TTestOrderLineItem.SetshippingDetails(AIndex : Integer; const AValue : TOrderLineItemShippingDetails);
  9515. begin
  9516. If (FshippingDetails=AValue) then exit;
  9517. FshippingDetails:=AValue;
  9518. MarkPropertyChanged(AIndex);
  9519. end;
  9520. Procedure TTestOrderLineItem.SetunitTax(AIndex : Integer; const AValue : TPrice);
  9521. begin
  9522. If (FunitTax=AValue) then exit;
  9523. FunitTax:=AValue;
  9524. MarkPropertyChanged(AIndex);
  9525. end;
  9526. { --------------------------------------------------------------------
  9527. TTestOrderLineItemProduct
  9528. --------------------------------------------------------------------}
  9529. Procedure TTestOrderLineItemProduct.Setbrand(AIndex : Integer; const AValue : String);
  9530. begin
  9531. If (Fbrand=AValue) then exit;
  9532. Fbrand:=AValue;
  9533. MarkPropertyChanged(AIndex);
  9534. end;
  9535. Procedure TTestOrderLineItemProduct.Setchannel(AIndex : Integer; const AValue : String);
  9536. begin
  9537. If (Fchannel=AValue) then exit;
  9538. Fchannel:=AValue;
  9539. MarkPropertyChanged(AIndex);
  9540. end;
  9541. Procedure TTestOrderLineItemProduct.Setcondition(AIndex : Integer; const AValue : String);
  9542. begin
  9543. If (Fcondition=AValue) then exit;
  9544. Fcondition:=AValue;
  9545. MarkPropertyChanged(AIndex);
  9546. end;
  9547. Procedure TTestOrderLineItemProduct.SetcontentLanguage(AIndex : Integer; const AValue : String);
  9548. begin
  9549. If (FcontentLanguage=AValue) then exit;
  9550. FcontentLanguage:=AValue;
  9551. MarkPropertyChanged(AIndex);
  9552. end;
  9553. Procedure TTestOrderLineItemProduct.Setgtin(AIndex : Integer; const AValue : String);
  9554. begin
  9555. If (Fgtin=AValue) then exit;
  9556. Fgtin:=AValue;
  9557. MarkPropertyChanged(AIndex);
  9558. end;
  9559. Procedure TTestOrderLineItemProduct.SetimageLink(AIndex : Integer; const AValue : String);
  9560. begin
  9561. If (FimageLink=AValue) then exit;
  9562. FimageLink:=AValue;
  9563. MarkPropertyChanged(AIndex);
  9564. end;
  9565. Procedure TTestOrderLineItemProduct.SetitemGroupId(AIndex : Integer; const AValue : String);
  9566. begin
  9567. If (FitemGroupId=AValue) then exit;
  9568. FitemGroupId:=AValue;
  9569. MarkPropertyChanged(AIndex);
  9570. end;
  9571. Procedure TTestOrderLineItemProduct.Setmpn(AIndex : Integer; const AValue : String);
  9572. begin
  9573. If (Fmpn=AValue) then exit;
  9574. Fmpn:=AValue;
  9575. MarkPropertyChanged(AIndex);
  9576. end;
  9577. Procedure TTestOrderLineItemProduct.SetofferId(AIndex : Integer; const AValue : String);
  9578. begin
  9579. If (FofferId=AValue) then exit;
  9580. FofferId:=AValue;
  9581. MarkPropertyChanged(AIndex);
  9582. end;
  9583. Procedure TTestOrderLineItemProduct.Setprice(AIndex : Integer; const AValue : TPrice);
  9584. begin
  9585. If (Fprice=AValue) then exit;
  9586. Fprice:=AValue;
  9587. MarkPropertyChanged(AIndex);
  9588. end;
  9589. Procedure TTestOrderLineItemProduct.SettargetCountry(AIndex : Integer; const AValue : String);
  9590. begin
  9591. If (FtargetCountry=AValue) then exit;
  9592. FtargetCountry:=AValue;
  9593. MarkPropertyChanged(AIndex);
  9594. end;
  9595. Procedure TTestOrderLineItemProduct.Settitle(AIndex : Integer; const AValue : String);
  9596. begin
  9597. If (Ftitle=AValue) then exit;
  9598. Ftitle:=AValue;
  9599. MarkPropertyChanged(AIndex);
  9600. end;
  9601. Procedure TTestOrderLineItemProduct.SetvariantAttributes(AIndex : Integer; const AValue : TTestOrderLineItemProductTypevariantAttributesArray);
  9602. begin
  9603. If (FvariantAttributes=AValue) then exit;
  9604. FvariantAttributes:=AValue;
  9605. MarkPropertyChanged(AIndex);
  9606. end;
  9607. //2.6.4. bug workaround
  9608. {$IFDEF VER2_6}
  9609. Procedure TTestOrderLineItemProduct.SetArrayLength(Const AName : String; ALength : Longint);
  9610. begin
  9611. Case AName of
  9612. 'variantattributes' : SetLength(FvariantAttributes,ALength);
  9613. else
  9614. Inherited SetArrayLength(AName,ALength);
  9615. end;
  9616. end;
  9617. {$ENDIF VER2_6}
  9618. { --------------------------------------------------------------------
  9619. TTestOrderPaymentMethod
  9620. --------------------------------------------------------------------}
  9621. Procedure TTestOrderPaymentMethod.SetexpirationMonth(AIndex : Integer; const AValue : integer);
  9622. begin
  9623. If (FexpirationMonth=AValue) then exit;
  9624. FexpirationMonth:=AValue;
  9625. MarkPropertyChanged(AIndex);
  9626. end;
  9627. Procedure TTestOrderPaymentMethod.SetexpirationYear(AIndex : Integer; const AValue : integer);
  9628. begin
  9629. If (FexpirationYear=AValue) then exit;
  9630. FexpirationYear:=AValue;
  9631. MarkPropertyChanged(AIndex);
  9632. end;
  9633. Procedure TTestOrderPaymentMethod.SetlastFourDigits(AIndex : Integer; const AValue : String);
  9634. begin
  9635. If (FlastFourDigits=AValue) then exit;
  9636. FlastFourDigits:=AValue;
  9637. MarkPropertyChanged(AIndex);
  9638. end;
  9639. Procedure TTestOrderPaymentMethod.SetpredefinedBillingAddress(AIndex : Integer; const AValue : String);
  9640. begin
  9641. If (FpredefinedBillingAddress=AValue) then exit;
  9642. FpredefinedBillingAddress:=AValue;
  9643. MarkPropertyChanged(AIndex);
  9644. end;
  9645. Procedure TTestOrderPaymentMethod.Set_type(AIndex : Integer; const AValue : String);
  9646. begin
  9647. If (F_type=AValue) then exit;
  9648. F_type:=AValue;
  9649. MarkPropertyChanged(AIndex);
  9650. end;
  9651. Class Function TTestOrderPaymentMethod.ExportPropertyName(Const AName : String) :String;
  9652. begin
  9653. Case AName of
  9654. '_type' : Result:='type';
  9655. else
  9656. Result:=Inherited ExportPropertyName(AName);
  9657. end;
  9658. end;
  9659. { --------------------------------------------------------------------
  9660. TWeight
  9661. --------------------------------------------------------------------}
  9662. Procedure TWeight.Set_unit(AIndex : Integer; const AValue : String);
  9663. begin
  9664. If (F_unit=AValue) then exit;
  9665. F_unit:=AValue;
  9666. MarkPropertyChanged(AIndex);
  9667. end;
  9668. Procedure TWeight.Setvalue(AIndex : Integer; const AValue : String);
  9669. begin
  9670. If (Fvalue=AValue) then exit;
  9671. Fvalue:=AValue;
  9672. MarkPropertyChanged(AIndex);
  9673. end;
  9674. Class Function TWeight.ExportPropertyName(Const AName : String) :String;
  9675. begin
  9676. Case AName of
  9677. '_unit' : Result:='unit';
  9678. else
  9679. Result:=Inherited ExportPropertyName(AName);
  9680. end;
  9681. end;
  9682. { --------------------------------------------------------------------
  9683. TAccountsResource
  9684. --------------------------------------------------------------------}
  9685. Class Function TAccountsResource.ResourceName : String;
  9686. begin
  9687. Result:='accounts';
  9688. end;
  9689. Class Function TAccountsResource.DefaultAPI : TGoogleAPIClass;
  9690. begin
  9691. Result:=TcontentAPI;
  9692. end;
  9693. Function TAccountsResource.Authinfo : TAccountsAuthInfoResponse;
  9694. Const
  9695. _HTTPMethod = 'GET';
  9696. _Path = 'accounts/authinfo';
  9697. _Methodid = 'content.accounts.authinfo';
  9698. begin
  9699. Result:=ServiceCall(_HTTPMethod,_Path,'',Nil,TAccountsAuthInfoResponse) as TAccountsAuthInfoResponse;
  9700. end;
  9701. Function TAccountsResource.Custombatch(aAccountsCustomBatchRequest : TAccountsCustomBatchRequest; AQuery : string = '') : TAccountsCustomBatchResponse;
  9702. Const
  9703. _HTTPMethod = 'POST';
  9704. _Path = 'accounts/batch';
  9705. _Methodid = 'content.accounts.custombatch';
  9706. begin
  9707. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aAccountsCustomBatchRequest,TAccountsCustomBatchResponse) as TAccountsCustomBatchResponse;
  9708. end;
  9709. Function TAccountsResource.Custombatch(aAccountsCustomBatchRequest : TAccountsCustomBatchRequest; AQuery : TAccountscustombatchOptions) : TAccountsCustomBatchResponse;
  9710. Var
  9711. _Q : String;
  9712. begin
  9713. _Q:='';
  9714. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  9715. Result:=Custombatch(aAccountsCustomBatchRequest,_Q);
  9716. end;
  9717. Procedure TAccountsResource.Delete(accountId: string; merchantId: string; AQuery : string = '');
  9718. Const
  9719. _HTTPMethod = 'DELETE';
  9720. _Path = '{merchantId}/accounts/{accountId}';
  9721. _Methodid = 'content.accounts.delete';
  9722. Var
  9723. _P : String;
  9724. begin
  9725. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  9726. ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
  9727. end;
  9728. Procedure TAccountsResource.Delete(accountId: string; merchantId: string; AQuery : TAccountsdeleteOptions);
  9729. Var
  9730. _Q : String;
  9731. begin
  9732. _Q:='';
  9733. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  9734. Delete(accountId,merchantId,_Q);
  9735. end;
  9736. Function TAccountsResource.Get(accountId: string; merchantId: string) : TAccount;
  9737. Const
  9738. _HTTPMethod = 'GET';
  9739. _Path = '{merchantId}/accounts/{accountId}';
  9740. _Methodid = 'content.accounts.get';
  9741. Var
  9742. _P : String;
  9743. begin
  9744. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  9745. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAccount) as TAccount;
  9746. end;
  9747. Function TAccountsResource.Insert(merchantId: string; aAccount : TAccount; AQuery : string = '') : TAccount;
  9748. Const
  9749. _HTTPMethod = 'POST';
  9750. _Path = '{merchantId}/accounts';
  9751. _Methodid = 'content.accounts.insert';
  9752. Var
  9753. _P : String;
  9754. begin
  9755. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  9756. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aAccount,TAccount) as TAccount;
  9757. end;
  9758. Function TAccountsResource.Insert(merchantId: string; aAccount : TAccount; AQuery : TAccountsinsertOptions) : TAccount;
  9759. Var
  9760. _Q : String;
  9761. begin
  9762. _Q:='';
  9763. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  9764. Result:=Insert(merchantId,aAccount,_Q);
  9765. end;
  9766. Function TAccountsResource.List(merchantId: string; AQuery : string = '') : TAccountsListResponse;
  9767. Const
  9768. _HTTPMethod = 'GET';
  9769. _Path = '{merchantId}/accounts';
  9770. _Methodid = 'content.accounts.list';
  9771. Var
  9772. _P : String;
  9773. begin
  9774. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  9775. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TAccountsListResponse) as TAccountsListResponse;
  9776. end;
  9777. Function TAccountsResource.List(merchantId: string; AQuery : TAccountslistOptions) : TAccountsListResponse;
  9778. Var
  9779. _Q : String;
  9780. begin
  9781. _Q:='';
  9782. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  9783. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  9784. Result:=List(merchantId,_Q);
  9785. end;
  9786. Function TAccountsResource.Patch(accountId: string; merchantId: string; aAccount : TAccount; AQuery : string = '') : TAccount;
  9787. Const
  9788. _HTTPMethod = 'PATCH';
  9789. _Path = '{merchantId}/accounts/{accountId}';
  9790. _Methodid = 'content.accounts.patch';
  9791. Var
  9792. _P : String;
  9793. begin
  9794. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  9795. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aAccount,TAccount) as TAccount;
  9796. end;
  9797. Function TAccountsResource.Patch(accountId: string; merchantId: string; aAccount : TAccount; AQuery : TAccountspatchOptions) : TAccount;
  9798. Var
  9799. _Q : String;
  9800. begin
  9801. _Q:='';
  9802. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  9803. Result:=Patch(accountId,merchantId,aAccount,_Q);
  9804. end;
  9805. Function TAccountsResource.Update(accountId: string; merchantId: string; aAccount : TAccount; AQuery : string = '') : TAccount;
  9806. Const
  9807. _HTTPMethod = 'PUT';
  9808. _Path = '{merchantId}/accounts/{accountId}';
  9809. _Methodid = 'content.accounts.update';
  9810. Var
  9811. _P : String;
  9812. begin
  9813. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  9814. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aAccount,TAccount) as TAccount;
  9815. end;
  9816. Function TAccountsResource.Update(accountId: string; merchantId: string; aAccount : TAccount; AQuery : TAccountsupdateOptions) : TAccount;
  9817. Var
  9818. _Q : String;
  9819. begin
  9820. _Q:='';
  9821. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  9822. Result:=Update(accountId,merchantId,aAccount,_Q);
  9823. end;
  9824. { --------------------------------------------------------------------
  9825. TAccountshippingResource
  9826. --------------------------------------------------------------------}
  9827. Class Function TAccountshippingResource.ResourceName : String;
  9828. begin
  9829. Result:='accountshipping';
  9830. end;
  9831. Class Function TAccountshippingResource.DefaultAPI : TGoogleAPIClass;
  9832. begin
  9833. Result:=TcontentAPI;
  9834. end;
  9835. Function TAccountshippingResource.Custombatch(aAccountshippingCustomBatchRequest : TAccountshippingCustomBatchRequest; AQuery : string = '') : TAccountshippingCustomBatchResponse;
  9836. Const
  9837. _HTTPMethod = 'POST';
  9838. _Path = 'accountshipping/batch';
  9839. _Methodid = 'content.accountshipping.custombatch';
  9840. begin
  9841. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aAccountshippingCustomBatchRequest,TAccountshippingCustomBatchResponse) as TAccountshippingCustomBatchResponse;
  9842. end;
  9843. Function TAccountshippingResource.Custombatch(aAccountshippingCustomBatchRequest : TAccountshippingCustomBatchRequest; AQuery : TAccountshippingcustombatchOptions) : TAccountshippingCustomBatchResponse;
  9844. Var
  9845. _Q : String;
  9846. begin
  9847. _Q:='';
  9848. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  9849. Result:=Custombatch(aAccountshippingCustomBatchRequest,_Q);
  9850. end;
  9851. Function TAccountshippingResource.Get(accountId: string; merchantId: string) : TAccountShipping;
  9852. Const
  9853. _HTTPMethod = 'GET';
  9854. _Path = '{merchantId}/accountshipping/{accountId}';
  9855. _Methodid = 'content.accountshipping.get';
  9856. Var
  9857. _P : String;
  9858. begin
  9859. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  9860. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAccountShipping) as TAccountShipping;
  9861. end;
  9862. Function TAccountshippingResource.List(merchantId: string; AQuery : string = '') : TAccountshippingListResponse;
  9863. Const
  9864. _HTTPMethod = 'GET';
  9865. _Path = '{merchantId}/accountshipping';
  9866. _Methodid = 'content.accountshipping.list';
  9867. Var
  9868. _P : String;
  9869. begin
  9870. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  9871. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TAccountshippingListResponse) as TAccountshippingListResponse;
  9872. end;
  9873. Function TAccountshippingResource.List(merchantId: string; AQuery : TAccountshippinglistOptions) : TAccountshippingListResponse;
  9874. Var
  9875. _Q : String;
  9876. begin
  9877. _Q:='';
  9878. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  9879. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  9880. Result:=List(merchantId,_Q);
  9881. end;
  9882. Function TAccountshippingResource.Patch(accountId: string; merchantId: string; aAccountShipping : TAccountShipping; AQuery : string = '') : TAccountShipping;
  9883. Const
  9884. _HTTPMethod = 'PATCH';
  9885. _Path = '{merchantId}/accountshipping/{accountId}';
  9886. _Methodid = 'content.accountshipping.patch';
  9887. Var
  9888. _P : String;
  9889. begin
  9890. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  9891. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aAccountShipping,TAccountShipping) as TAccountShipping;
  9892. end;
  9893. Function TAccountshippingResource.Patch(accountId: string; merchantId: string; aAccountShipping : TAccountShipping; AQuery : TAccountshippingpatchOptions) : TAccountShipping;
  9894. Var
  9895. _Q : String;
  9896. begin
  9897. _Q:='';
  9898. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  9899. Result:=Patch(accountId,merchantId,aAccountShipping,_Q);
  9900. end;
  9901. Function TAccountshippingResource.Update(accountId: string; merchantId: string; aAccountShipping : TAccountShipping; AQuery : string = '') : TAccountShipping;
  9902. Const
  9903. _HTTPMethod = 'PUT';
  9904. _Path = '{merchantId}/accountshipping/{accountId}';
  9905. _Methodid = 'content.accountshipping.update';
  9906. Var
  9907. _P : String;
  9908. begin
  9909. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  9910. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aAccountShipping,TAccountShipping) as TAccountShipping;
  9911. end;
  9912. Function TAccountshippingResource.Update(accountId: string; merchantId: string; aAccountShipping : TAccountShipping; AQuery : TAccountshippingupdateOptions) : TAccountShipping;
  9913. Var
  9914. _Q : String;
  9915. begin
  9916. _Q:='';
  9917. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  9918. Result:=Update(accountId,merchantId,aAccountShipping,_Q);
  9919. end;
  9920. { --------------------------------------------------------------------
  9921. TAccountstatusesResource
  9922. --------------------------------------------------------------------}
  9923. Class Function TAccountstatusesResource.ResourceName : String;
  9924. begin
  9925. Result:='accountstatuses';
  9926. end;
  9927. Class Function TAccountstatusesResource.DefaultAPI : TGoogleAPIClass;
  9928. begin
  9929. Result:=TcontentAPI;
  9930. end;
  9931. Function TAccountstatusesResource.Custombatch(aAccountstatusesCustomBatchRequest : TAccountstatusesCustomBatchRequest) : TAccountstatusesCustomBatchResponse;
  9932. Const
  9933. _HTTPMethod = 'POST';
  9934. _Path = 'accountstatuses/batch';
  9935. _Methodid = 'content.accountstatuses.custombatch';
  9936. begin
  9937. Result:=ServiceCall(_HTTPMethod,_Path,'',aAccountstatusesCustomBatchRequest,TAccountstatusesCustomBatchResponse) as TAccountstatusesCustomBatchResponse;
  9938. end;
  9939. Function TAccountstatusesResource.Get(accountId: string; merchantId: string) : TAccountStatus;
  9940. Const
  9941. _HTTPMethod = 'GET';
  9942. _Path = '{merchantId}/accountstatuses/{accountId}';
  9943. _Methodid = 'content.accountstatuses.get';
  9944. Var
  9945. _P : String;
  9946. begin
  9947. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  9948. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAccountStatus) as TAccountStatus;
  9949. end;
  9950. Function TAccountstatusesResource.List(merchantId: string; AQuery : string = '') : TAccountstatusesListResponse;
  9951. Const
  9952. _HTTPMethod = 'GET';
  9953. _Path = '{merchantId}/accountstatuses';
  9954. _Methodid = 'content.accountstatuses.list';
  9955. Var
  9956. _P : String;
  9957. begin
  9958. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  9959. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TAccountstatusesListResponse) as TAccountstatusesListResponse;
  9960. end;
  9961. Function TAccountstatusesResource.List(merchantId: string; AQuery : TAccountstatuseslistOptions) : TAccountstatusesListResponse;
  9962. Var
  9963. _Q : String;
  9964. begin
  9965. _Q:='';
  9966. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  9967. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  9968. Result:=List(merchantId,_Q);
  9969. end;
  9970. { --------------------------------------------------------------------
  9971. TAccounttaxResource
  9972. --------------------------------------------------------------------}
  9973. Class Function TAccounttaxResource.ResourceName : String;
  9974. begin
  9975. Result:='accounttax';
  9976. end;
  9977. Class Function TAccounttaxResource.DefaultAPI : TGoogleAPIClass;
  9978. begin
  9979. Result:=TcontentAPI;
  9980. end;
  9981. Function TAccounttaxResource.Custombatch(aAccounttaxCustomBatchRequest : TAccounttaxCustomBatchRequest; AQuery : string = '') : TAccounttaxCustomBatchResponse;
  9982. Const
  9983. _HTTPMethod = 'POST';
  9984. _Path = 'accounttax/batch';
  9985. _Methodid = 'content.accounttax.custombatch';
  9986. begin
  9987. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aAccounttaxCustomBatchRequest,TAccounttaxCustomBatchResponse) as TAccounttaxCustomBatchResponse;
  9988. end;
  9989. Function TAccounttaxResource.Custombatch(aAccounttaxCustomBatchRequest : TAccounttaxCustomBatchRequest; AQuery : TAccounttaxcustombatchOptions) : TAccounttaxCustomBatchResponse;
  9990. Var
  9991. _Q : String;
  9992. begin
  9993. _Q:='';
  9994. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  9995. Result:=Custombatch(aAccounttaxCustomBatchRequest,_Q);
  9996. end;
  9997. Function TAccounttaxResource.Get(accountId: string; merchantId: string) : TAccountTax;
  9998. Const
  9999. _HTTPMethod = 'GET';
  10000. _Path = '{merchantId}/accounttax/{accountId}';
  10001. _Methodid = 'content.accounttax.get';
  10002. Var
  10003. _P : String;
  10004. begin
  10005. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  10006. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAccountTax) as TAccountTax;
  10007. end;
  10008. Function TAccounttaxResource.List(merchantId: string; AQuery : string = '') : TAccounttaxListResponse;
  10009. Const
  10010. _HTTPMethod = 'GET';
  10011. _Path = '{merchantId}/accounttax';
  10012. _Methodid = 'content.accounttax.list';
  10013. Var
  10014. _P : String;
  10015. begin
  10016. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  10017. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TAccounttaxListResponse) as TAccounttaxListResponse;
  10018. end;
  10019. Function TAccounttaxResource.List(merchantId: string; AQuery : TAccounttaxlistOptions) : TAccounttaxListResponse;
  10020. Var
  10021. _Q : String;
  10022. begin
  10023. _Q:='';
  10024. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  10025. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  10026. Result:=List(merchantId,_Q);
  10027. end;
  10028. Function TAccounttaxResource.Patch(accountId: string; merchantId: string; aAccountTax : TAccountTax; AQuery : string = '') : TAccountTax;
  10029. Const
  10030. _HTTPMethod = 'PATCH';
  10031. _Path = '{merchantId}/accounttax/{accountId}';
  10032. _Methodid = 'content.accounttax.patch';
  10033. Var
  10034. _P : String;
  10035. begin
  10036. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  10037. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aAccountTax,TAccountTax) as TAccountTax;
  10038. end;
  10039. Function TAccounttaxResource.Patch(accountId: string; merchantId: string; aAccountTax : TAccountTax; AQuery : TAccounttaxpatchOptions) : TAccountTax;
  10040. Var
  10041. _Q : String;
  10042. begin
  10043. _Q:='';
  10044. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10045. Result:=Patch(accountId,merchantId,aAccountTax,_Q);
  10046. end;
  10047. Function TAccounttaxResource.Update(accountId: string; merchantId: string; aAccountTax : TAccountTax; AQuery : string = '') : TAccountTax;
  10048. Const
  10049. _HTTPMethod = 'PUT';
  10050. _Path = '{merchantId}/accounttax/{accountId}';
  10051. _Methodid = 'content.accounttax.update';
  10052. Var
  10053. _P : String;
  10054. begin
  10055. _P:=SubstitutePath(_Path,['accountId',accountId,'merchantId',merchantId]);
  10056. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aAccountTax,TAccountTax) as TAccountTax;
  10057. end;
  10058. Function TAccounttaxResource.Update(accountId: string; merchantId: string; aAccountTax : TAccountTax; AQuery : TAccounttaxupdateOptions) : TAccountTax;
  10059. Var
  10060. _Q : String;
  10061. begin
  10062. _Q:='';
  10063. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10064. Result:=Update(accountId,merchantId,aAccountTax,_Q);
  10065. end;
  10066. { --------------------------------------------------------------------
  10067. TDatafeedsResource
  10068. --------------------------------------------------------------------}
  10069. Class Function TDatafeedsResource.ResourceName : String;
  10070. begin
  10071. Result:='datafeeds';
  10072. end;
  10073. Class Function TDatafeedsResource.DefaultAPI : TGoogleAPIClass;
  10074. begin
  10075. Result:=TcontentAPI;
  10076. end;
  10077. Function TDatafeedsResource.Custombatch(aDatafeedsCustomBatchRequest : TDatafeedsCustomBatchRequest; AQuery : string = '') : TDatafeedsCustomBatchResponse;
  10078. Const
  10079. _HTTPMethod = 'POST';
  10080. _Path = 'datafeeds/batch';
  10081. _Methodid = 'content.datafeeds.custombatch';
  10082. begin
  10083. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aDatafeedsCustomBatchRequest,TDatafeedsCustomBatchResponse) as TDatafeedsCustomBatchResponse;
  10084. end;
  10085. Function TDatafeedsResource.Custombatch(aDatafeedsCustomBatchRequest : TDatafeedsCustomBatchRequest; AQuery : TDatafeedscustombatchOptions) : TDatafeedsCustomBatchResponse;
  10086. Var
  10087. _Q : String;
  10088. begin
  10089. _Q:='';
  10090. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10091. Result:=Custombatch(aDatafeedsCustomBatchRequest,_Q);
  10092. end;
  10093. Procedure TDatafeedsResource.Delete(datafeedId: string; merchantId: string; AQuery : string = '');
  10094. Const
  10095. _HTTPMethod = 'DELETE';
  10096. _Path = '{merchantId}/datafeeds/{datafeedId}';
  10097. _Methodid = 'content.datafeeds.delete';
  10098. Var
  10099. _P : String;
  10100. begin
  10101. _P:=SubstitutePath(_Path,['datafeedId',datafeedId,'merchantId',merchantId]);
  10102. ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
  10103. end;
  10104. Procedure TDatafeedsResource.Delete(datafeedId: string; merchantId: string; AQuery : TDatafeedsdeleteOptions);
  10105. Var
  10106. _Q : String;
  10107. begin
  10108. _Q:='';
  10109. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10110. Delete(datafeedId,merchantId,_Q);
  10111. end;
  10112. Function TDatafeedsResource.Get(datafeedId: string; merchantId: string) : TDatafeed;
  10113. Const
  10114. _HTTPMethod = 'GET';
  10115. _Path = '{merchantId}/datafeeds/{datafeedId}';
  10116. _Methodid = 'content.datafeeds.get';
  10117. Var
  10118. _P : String;
  10119. begin
  10120. _P:=SubstitutePath(_Path,['datafeedId',datafeedId,'merchantId',merchantId]);
  10121. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TDatafeed) as TDatafeed;
  10122. end;
  10123. Function TDatafeedsResource.Insert(merchantId: string; aDatafeed : TDatafeed; AQuery : string = '') : TDatafeed;
  10124. Const
  10125. _HTTPMethod = 'POST';
  10126. _Path = '{merchantId}/datafeeds';
  10127. _Methodid = 'content.datafeeds.insert';
  10128. Var
  10129. _P : String;
  10130. begin
  10131. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  10132. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aDatafeed,TDatafeed) as TDatafeed;
  10133. end;
  10134. Function TDatafeedsResource.Insert(merchantId: string; aDatafeed : TDatafeed; AQuery : TDatafeedsinsertOptions) : TDatafeed;
  10135. Var
  10136. _Q : String;
  10137. begin
  10138. _Q:='';
  10139. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10140. Result:=Insert(merchantId,aDatafeed,_Q);
  10141. end;
  10142. Function TDatafeedsResource.List(merchantId: string; AQuery : string = '') : TDatafeedsListResponse;
  10143. Const
  10144. _HTTPMethod = 'GET';
  10145. _Path = '{merchantId}/datafeeds';
  10146. _Methodid = 'content.datafeeds.list';
  10147. Var
  10148. _P : String;
  10149. begin
  10150. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  10151. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TDatafeedsListResponse) as TDatafeedsListResponse;
  10152. end;
  10153. Function TDatafeedsResource.List(merchantId: string; AQuery : TDatafeedslistOptions) : TDatafeedsListResponse;
  10154. Var
  10155. _Q : String;
  10156. begin
  10157. _Q:='';
  10158. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  10159. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  10160. Result:=List(merchantId,_Q);
  10161. end;
  10162. Function TDatafeedsResource.Patch(datafeedId: string; merchantId: string; aDatafeed : TDatafeed; AQuery : string = '') : TDatafeed;
  10163. Const
  10164. _HTTPMethod = 'PATCH';
  10165. _Path = '{merchantId}/datafeeds/{datafeedId}';
  10166. _Methodid = 'content.datafeeds.patch';
  10167. Var
  10168. _P : String;
  10169. begin
  10170. _P:=SubstitutePath(_Path,['datafeedId',datafeedId,'merchantId',merchantId]);
  10171. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aDatafeed,TDatafeed) as TDatafeed;
  10172. end;
  10173. Function TDatafeedsResource.Patch(datafeedId: string; merchantId: string; aDatafeed : TDatafeed; AQuery : TDatafeedspatchOptions) : TDatafeed;
  10174. Var
  10175. _Q : String;
  10176. begin
  10177. _Q:='';
  10178. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10179. Result:=Patch(datafeedId,merchantId,aDatafeed,_Q);
  10180. end;
  10181. Function TDatafeedsResource.Update(datafeedId: string; merchantId: string; aDatafeed : TDatafeed; AQuery : string = '') : TDatafeed;
  10182. Const
  10183. _HTTPMethod = 'PUT';
  10184. _Path = '{merchantId}/datafeeds/{datafeedId}';
  10185. _Methodid = 'content.datafeeds.update';
  10186. Var
  10187. _P : String;
  10188. begin
  10189. _P:=SubstitutePath(_Path,['datafeedId',datafeedId,'merchantId',merchantId]);
  10190. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aDatafeed,TDatafeed) as TDatafeed;
  10191. end;
  10192. Function TDatafeedsResource.Update(datafeedId: string; merchantId: string; aDatafeed : TDatafeed; AQuery : TDatafeedsupdateOptions) : TDatafeed;
  10193. Var
  10194. _Q : String;
  10195. begin
  10196. _Q:='';
  10197. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10198. Result:=Update(datafeedId,merchantId,aDatafeed,_Q);
  10199. end;
  10200. { --------------------------------------------------------------------
  10201. TDatafeedstatusesResource
  10202. --------------------------------------------------------------------}
  10203. Class Function TDatafeedstatusesResource.ResourceName : String;
  10204. begin
  10205. Result:='datafeedstatuses';
  10206. end;
  10207. Class Function TDatafeedstatusesResource.DefaultAPI : TGoogleAPIClass;
  10208. begin
  10209. Result:=TcontentAPI;
  10210. end;
  10211. Function TDatafeedstatusesResource.Custombatch(aDatafeedstatusesCustomBatchRequest : TDatafeedstatusesCustomBatchRequest) : TDatafeedstatusesCustomBatchResponse;
  10212. Const
  10213. _HTTPMethod = 'POST';
  10214. _Path = 'datafeedstatuses/batch';
  10215. _Methodid = 'content.datafeedstatuses.custombatch';
  10216. begin
  10217. Result:=ServiceCall(_HTTPMethod,_Path,'',aDatafeedstatusesCustomBatchRequest,TDatafeedstatusesCustomBatchResponse) as TDatafeedstatusesCustomBatchResponse;
  10218. end;
  10219. Function TDatafeedstatusesResource.Get(datafeedId: string; merchantId: string) : TDatafeedStatus;
  10220. Const
  10221. _HTTPMethod = 'GET';
  10222. _Path = '{merchantId}/datafeedstatuses/{datafeedId}';
  10223. _Methodid = 'content.datafeedstatuses.get';
  10224. Var
  10225. _P : String;
  10226. begin
  10227. _P:=SubstitutePath(_Path,['datafeedId',datafeedId,'merchantId',merchantId]);
  10228. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TDatafeedStatus) as TDatafeedStatus;
  10229. end;
  10230. Function TDatafeedstatusesResource.List(merchantId: string; AQuery : string = '') : TDatafeedstatusesListResponse;
  10231. Const
  10232. _HTTPMethod = 'GET';
  10233. _Path = '{merchantId}/datafeedstatuses';
  10234. _Methodid = 'content.datafeedstatuses.list';
  10235. Var
  10236. _P : String;
  10237. begin
  10238. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  10239. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TDatafeedstatusesListResponse) as TDatafeedstatusesListResponse;
  10240. end;
  10241. Function TDatafeedstatusesResource.List(merchantId: string; AQuery : TDatafeedstatuseslistOptions) : TDatafeedstatusesListResponse;
  10242. Var
  10243. _Q : String;
  10244. begin
  10245. _Q:='';
  10246. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  10247. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  10248. Result:=List(merchantId,_Q);
  10249. end;
  10250. { --------------------------------------------------------------------
  10251. TInventoryResource
  10252. --------------------------------------------------------------------}
  10253. Class Function TInventoryResource.ResourceName : String;
  10254. begin
  10255. Result:='inventory';
  10256. end;
  10257. Class Function TInventoryResource.DefaultAPI : TGoogleAPIClass;
  10258. begin
  10259. Result:=TcontentAPI;
  10260. end;
  10261. Function TInventoryResource.Custombatch(aInventoryCustomBatchRequest : TInventoryCustomBatchRequest; AQuery : string = '') : TInventoryCustomBatchResponse;
  10262. Const
  10263. _HTTPMethod = 'POST';
  10264. _Path = 'inventory/batch';
  10265. _Methodid = 'content.inventory.custombatch';
  10266. begin
  10267. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aInventoryCustomBatchRequest,TInventoryCustomBatchResponse) as TInventoryCustomBatchResponse;
  10268. end;
  10269. Function TInventoryResource.Custombatch(aInventoryCustomBatchRequest : TInventoryCustomBatchRequest; AQuery : TInventorycustombatchOptions) : TInventoryCustomBatchResponse;
  10270. Var
  10271. _Q : String;
  10272. begin
  10273. _Q:='';
  10274. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10275. Result:=Custombatch(aInventoryCustomBatchRequest,_Q);
  10276. end;
  10277. Function TInventoryResource._set(merchantId: string; productId: string; storeCode: string; aInventorySetRequest : TInventorySetRequest; AQuery : string = '') : TInventorySetResponse;
  10278. Const
  10279. _HTTPMethod = 'POST';
  10280. _Path = '{merchantId}/inventory/{storeCode}/products/{productId}';
  10281. _Methodid = 'content.inventory.set';
  10282. Var
  10283. _P : String;
  10284. begin
  10285. _P:=SubstitutePath(_Path,['merchantId',merchantId,'productId',productId,'storeCode',storeCode]);
  10286. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aInventorySetRequest,TInventorySetResponse) as TInventorySetResponse;
  10287. end;
  10288. Function TInventoryResource._set(merchantId: string; productId: string; storeCode: string; aInventorySetRequest : TInventorySetRequest; AQuery : TInventorysetOptions) : TInventorySetResponse;
  10289. Var
  10290. _Q : String;
  10291. begin
  10292. _Q:='';
  10293. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10294. Result:=_set(merchantId,productId,storeCode,aInventorySetRequest,_Q);
  10295. end;
  10296. { --------------------------------------------------------------------
  10297. TOrdersResource
  10298. --------------------------------------------------------------------}
  10299. Class Function TOrdersResource.ResourceName : String;
  10300. begin
  10301. Result:='orders';
  10302. end;
  10303. Class Function TOrdersResource.DefaultAPI : TGoogleAPIClass;
  10304. begin
  10305. Result:=TcontentAPI;
  10306. end;
  10307. Function TOrdersResource.Acknowledge(merchantId: string; orderId: string; aOrdersAcknowledgeRequest : TOrdersAcknowledgeRequest) : TOrdersAcknowledgeResponse;
  10308. Const
  10309. _HTTPMethod = 'POST';
  10310. _Path = '{merchantId}/orders/{orderId}/acknowledge';
  10311. _Methodid = 'content.orders.acknowledge';
  10312. Var
  10313. _P : String;
  10314. begin
  10315. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10316. Result:=ServiceCall(_HTTPMethod,_P,'',aOrdersAcknowledgeRequest,TOrdersAcknowledgeResponse) as TOrdersAcknowledgeResponse;
  10317. end;
  10318. Function TOrdersResource.Advancetestorder(merchantId: string; orderId: string) : TOrdersAdvanceTestOrderResponse;
  10319. Const
  10320. _HTTPMethod = 'POST';
  10321. _Path = '{merchantId}/testorders/{orderId}/advance';
  10322. _Methodid = 'content.orders.advancetestorder';
  10323. Var
  10324. _P : String;
  10325. begin
  10326. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10327. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOrdersAdvanceTestOrderResponse) as TOrdersAdvanceTestOrderResponse;
  10328. end;
  10329. Function TOrdersResource.Cancel(merchantId: string; orderId: string; aOrdersCancelRequest : TOrdersCancelRequest) : TOrdersCancelResponse;
  10330. Const
  10331. _HTTPMethod = 'POST';
  10332. _Path = '{merchantId}/orders/{orderId}/cancel';
  10333. _Methodid = 'content.orders.cancel';
  10334. Var
  10335. _P : String;
  10336. begin
  10337. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10338. Result:=ServiceCall(_HTTPMethod,_P,'',aOrdersCancelRequest,TOrdersCancelResponse) as TOrdersCancelResponse;
  10339. end;
  10340. Function TOrdersResource.Cancellineitem(merchantId: string; orderId: string; aOrdersCancelLineItemRequest : TOrdersCancelLineItemRequest) : TOrdersCancelLineItemResponse;
  10341. Const
  10342. _HTTPMethod = 'POST';
  10343. _Path = '{merchantId}/orders/{orderId}/cancelLineItem';
  10344. _Methodid = 'content.orders.cancellineitem';
  10345. Var
  10346. _P : String;
  10347. begin
  10348. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10349. Result:=ServiceCall(_HTTPMethod,_P,'',aOrdersCancelLineItemRequest,TOrdersCancelLineItemResponse) as TOrdersCancelLineItemResponse;
  10350. end;
  10351. Function TOrdersResource.Createtestorder(merchantId: string; aOrdersCreateTestOrderRequest : TOrdersCreateTestOrderRequest) : TOrdersCreateTestOrderResponse;
  10352. Const
  10353. _HTTPMethod = 'POST';
  10354. _Path = '{merchantId}/testorders';
  10355. _Methodid = 'content.orders.createtestorder';
  10356. Var
  10357. _P : String;
  10358. begin
  10359. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  10360. Result:=ServiceCall(_HTTPMethod,_P,'',aOrdersCreateTestOrderRequest,TOrdersCreateTestOrderResponse) as TOrdersCreateTestOrderResponse;
  10361. end;
  10362. Function TOrdersResource.Custombatch(aOrdersCustomBatchRequest : TOrdersCustomBatchRequest) : TOrdersCustomBatchResponse;
  10363. Const
  10364. _HTTPMethod = 'POST';
  10365. _Path = 'orders/batch';
  10366. _Methodid = 'content.orders.custombatch';
  10367. begin
  10368. Result:=ServiceCall(_HTTPMethod,_Path,'',aOrdersCustomBatchRequest,TOrdersCustomBatchResponse) as TOrdersCustomBatchResponse;
  10369. end;
  10370. Function TOrdersResource.Get(merchantId: string; orderId: string) : TOrder;
  10371. Const
  10372. _HTTPMethod = 'GET';
  10373. _Path = '{merchantId}/orders/{orderId}';
  10374. _Methodid = 'content.orders.get';
  10375. Var
  10376. _P : String;
  10377. begin
  10378. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10379. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOrder) as TOrder;
  10380. end;
  10381. Function TOrdersResource.Getbymerchantorderid(merchantId: string; merchantOrderId: string) : TOrdersGetByMerchantOrderIdResponse;
  10382. Const
  10383. _HTTPMethod = 'GET';
  10384. _Path = '{merchantId}/ordersbymerchantid/{merchantOrderId}';
  10385. _Methodid = 'content.orders.getbymerchantorderid';
  10386. Var
  10387. _P : String;
  10388. begin
  10389. _P:=SubstitutePath(_Path,['merchantId',merchantId,'merchantOrderId',merchantOrderId]);
  10390. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOrdersGetByMerchantOrderIdResponse) as TOrdersGetByMerchantOrderIdResponse;
  10391. end;
  10392. Function TOrdersResource.Gettestordertemplate(merchantId: string; templateName: string) : TOrdersGetTestOrderTemplateResponse;
  10393. Const
  10394. _HTTPMethod = 'GET';
  10395. _Path = '{merchantId}/testordertemplates/{templateName}';
  10396. _Methodid = 'content.orders.gettestordertemplate';
  10397. Var
  10398. _P : String;
  10399. begin
  10400. _P:=SubstitutePath(_Path,['merchantId',merchantId,'templateName',templateName]);
  10401. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOrdersGetTestOrderTemplateResponse) as TOrdersGetTestOrderTemplateResponse;
  10402. end;
  10403. Function TOrdersResource.List(merchantId: string; AQuery : string = '') : TOrdersListResponse;
  10404. Const
  10405. _HTTPMethod = 'GET';
  10406. _Path = '{merchantId}/orders';
  10407. _Methodid = 'content.orders.list';
  10408. Var
  10409. _P : String;
  10410. begin
  10411. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  10412. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TOrdersListResponse) as TOrdersListResponse;
  10413. end;
  10414. Function TOrdersResource.List(merchantId: string; AQuery : TOrderslistOptions) : TOrdersListResponse;
  10415. Var
  10416. _Q : String;
  10417. begin
  10418. _Q:='';
  10419. AddToQuery(_Q,'acknowledged',AQuery.acknowledged);
  10420. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  10421. AddToQuery(_Q,'orderBy',AQuery.orderBy);
  10422. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  10423. AddToQuery(_Q,'placedDateEnd',AQuery.placedDateEnd);
  10424. AddToQuery(_Q,'placedDateStart',AQuery.placedDateStart);
  10425. AddToQuery(_Q,'statuses',AQuery.statuses);
  10426. Result:=List(merchantId,_Q);
  10427. end;
  10428. Function TOrdersResource.Refund(merchantId: string; orderId: string; aOrdersRefundRequest : TOrdersRefundRequest) : TOrdersRefundResponse;
  10429. Const
  10430. _HTTPMethod = 'POST';
  10431. _Path = '{merchantId}/orders/{orderId}/refund';
  10432. _Methodid = 'content.orders.refund';
  10433. Var
  10434. _P : String;
  10435. begin
  10436. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10437. Result:=ServiceCall(_HTTPMethod,_P,'',aOrdersRefundRequest,TOrdersRefundResponse) as TOrdersRefundResponse;
  10438. end;
  10439. Function TOrdersResource.Returnlineitem(merchantId: string; orderId: string; aOrdersReturnLineItemRequest : TOrdersReturnLineItemRequest) : TOrdersReturnLineItemResponse;
  10440. Const
  10441. _HTTPMethod = 'POST';
  10442. _Path = '{merchantId}/orders/{orderId}/returnLineItem';
  10443. _Methodid = 'content.orders.returnlineitem';
  10444. Var
  10445. _P : String;
  10446. begin
  10447. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10448. Result:=ServiceCall(_HTTPMethod,_P,'',aOrdersReturnLineItemRequest,TOrdersReturnLineItemResponse) as TOrdersReturnLineItemResponse;
  10449. end;
  10450. Function TOrdersResource.Shiplineitems(merchantId: string; orderId: string; aOrdersShipLineItemsRequest : TOrdersShipLineItemsRequest) : TOrdersShipLineItemsResponse;
  10451. Const
  10452. _HTTPMethod = 'POST';
  10453. _Path = '{merchantId}/orders/{orderId}/shipLineItems';
  10454. _Methodid = 'content.orders.shiplineitems';
  10455. Var
  10456. _P : String;
  10457. begin
  10458. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10459. Result:=ServiceCall(_HTTPMethod,_P,'',aOrdersShipLineItemsRequest,TOrdersShipLineItemsResponse) as TOrdersShipLineItemsResponse;
  10460. end;
  10461. Function TOrdersResource.Updatemerchantorderid(merchantId: string; orderId: string; aOrdersUpdateMerchantOrderIdRequest : TOrdersUpdateMerchantOrderIdRequest) : TOrdersUpdateMerchantOrderIdResponse;
  10462. Const
  10463. _HTTPMethod = 'POST';
  10464. _Path = '{merchantId}/orders/{orderId}/updateMerchantOrderId';
  10465. _Methodid = 'content.orders.updatemerchantorderid';
  10466. Var
  10467. _P : String;
  10468. begin
  10469. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10470. Result:=ServiceCall(_HTTPMethod,_P,'',aOrdersUpdateMerchantOrderIdRequest,TOrdersUpdateMerchantOrderIdResponse) as TOrdersUpdateMerchantOrderIdResponse;
  10471. end;
  10472. Function TOrdersResource.Updateshipment(merchantId: string; orderId: string; aOrdersUpdateShipmentRequest : TOrdersUpdateShipmentRequest) : TOrdersUpdateShipmentResponse;
  10473. Const
  10474. _HTTPMethod = 'POST';
  10475. _Path = '{merchantId}/orders/{orderId}/updateShipment';
  10476. _Methodid = 'content.orders.updateshipment';
  10477. Var
  10478. _P : String;
  10479. begin
  10480. _P:=SubstitutePath(_Path,['merchantId',merchantId,'orderId',orderId]);
  10481. Result:=ServiceCall(_HTTPMethod,_P,'',aOrdersUpdateShipmentRequest,TOrdersUpdateShipmentResponse) as TOrdersUpdateShipmentResponse;
  10482. end;
  10483. { --------------------------------------------------------------------
  10484. TProductsResource
  10485. --------------------------------------------------------------------}
  10486. Class Function TProductsResource.ResourceName : String;
  10487. begin
  10488. Result:='products';
  10489. end;
  10490. Class Function TProductsResource.DefaultAPI : TGoogleAPIClass;
  10491. begin
  10492. Result:=TcontentAPI;
  10493. end;
  10494. Function TProductsResource.Custombatch(aProductsCustomBatchRequest : TProductsCustomBatchRequest; AQuery : string = '') : TProductsCustomBatchResponse;
  10495. Const
  10496. _HTTPMethod = 'POST';
  10497. _Path = 'products/batch';
  10498. _Methodid = 'content.products.custombatch';
  10499. begin
  10500. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aProductsCustomBatchRequest,TProductsCustomBatchResponse) as TProductsCustomBatchResponse;
  10501. end;
  10502. Function TProductsResource.Custombatch(aProductsCustomBatchRequest : TProductsCustomBatchRequest; AQuery : TProductscustombatchOptions) : TProductsCustomBatchResponse;
  10503. Var
  10504. _Q : String;
  10505. begin
  10506. _Q:='';
  10507. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10508. Result:=Custombatch(aProductsCustomBatchRequest,_Q);
  10509. end;
  10510. Procedure TProductsResource.Delete(merchantId: string; productId: string; AQuery : string = '');
  10511. Const
  10512. _HTTPMethod = 'DELETE';
  10513. _Path = '{merchantId}/products/{productId}';
  10514. _Methodid = 'content.products.delete';
  10515. Var
  10516. _P : String;
  10517. begin
  10518. _P:=SubstitutePath(_Path,['merchantId',merchantId,'productId',productId]);
  10519. ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
  10520. end;
  10521. Procedure TProductsResource.Delete(merchantId: string; productId: string; AQuery : TProductsdeleteOptions);
  10522. Var
  10523. _Q : String;
  10524. begin
  10525. _Q:='';
  10526. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10527. Delete(merchantId,productId,_Q);
  10528. end;
  10529. Function TProductsResource.Get(merchantId: string; productId: string) : TProduct;
  10530. Const
  10531. _HTTPMethod = 'GET';
  10532. _Path = '{merchantId}/products/{productId}';
  10533. _Methodid = 'content.products.get';
  10534. Var
  10535. _P : String;
  10536. begin
  10537. _P:=SubstitutePath(_Path,['merchantId',merchantId,'productId',productId]);
  10538. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProduct) as TProduct;
  10539. end;
  10540. Function TProductsResource.Insert(merchantId: string; aProduct : TProduct; AQuery : string = '') : TProduct;
  10541. Const
  10542. _HTTPMethod = 'POST';
  10543. _Path = '{merchantId}/products';
  10544. _Methodid = 'content.products.insert';
  10545. Var
  10546. _P : String;
  10547. begin
  10548. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  10549. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aProduct,TProduct) as TProduct;
  10550. end;
  10551. Function TProductsResource.Insert(merchantId: string; aProduct : TProduct; AQuery : TProductsinsertOptions) : TProduct;
  10552. Var
  10553. _Q : String;
  10554. begin
  10555. _Q:='';
  10556. AddToQuery(_Q,'dryRun',AQuery.dryRun);
  10557. Result:=Insert(merchantId,aProduct,_Q);
  10558. end;
  10559. Function TProductsResource.List(merchantId: string; AQuery : string = '') : TProductsListResponse;
  10560. Const
  10561. _HTTPMethod = 'GET';
  10562. _Path = '{merchantId}/products';
  10563. _Methodid = 'content.products.list';
  10564. Var
  10565. _P : String;
  10566. begin
  10567. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  10568. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TProductsListResponse) as TProductsListResponse;
  10569. end;
  10570. Function TProductsResource.List(merchantId: string; AQuery : TProductslistOptions) : TProductsListResponse;
  10571. Var
  10572. _Q : String;
  10573. begin
  10574. _Q:='';
  10575. AddToQuery(_Q,'includeInvalidInsertedItems',AQuery.includeInvalidInsertedItems);
  10576. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  10577. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  10578. Result:=List(merchantId,_Q);
  10579. end;
  10580. { --------------------------------------------------------------------
  10581. TProductstatusesResource
  10582. --------------------------------------------------------------------}
  10583. Class Function TProductstatusesResource.ResourceName : String;
  10584. begin
  10585. Result:='productstatuses';
  10586. end;
  10587. Class Function TProductstatusesResource.DefaultAPI : TGoogleAPIClass;
  10588. begin
  10589. Result:=TcontentAPI;
  10590. end;
  10591. Function TProductstatusesResource.Custombatch(aProductstatusesCustomBatchRequest : TProductstatusesCustomBatchRequest) : TProductstatusesCustomBatchResponse;
  10592. Const
  10593. _HTTPMethod = 'POST';
  10594. _Path = 'productstatuses/batch';
  10595. _Methodid = 'content.productstatuses.custombatch';
  10596. begin
  10597. Result:=ServiceCall(_HTTPMethod,_Path,'',aProductstatusesCustomBatchRequest,TProductstatusesCustomBatchResponse) as TProductstatusesCustomBatchResponse;
  10598. end;
  10599. Function TProductstatusesResource.Get(merchantId: string; productId: string) : TProductStatus;
  10600. Const
  10601. _HTTPMethod = 'GET';
  10602. _Path = '{merchantId}/productstatuses/{productId}';
  10603. _Methodid = 'content.productstatuses.get';
  10604. Var
  10605. _P : String;
  10606. begin
  10607. _P:=SubstitutePath(_Path,['merchantId',merchantId,'productId',productId]);
  10608. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProductStatus) as TProductStatus;
  10609. end;
  10610. Function TProductstatusesResource.List(merchantId: string; AQuery : string = '') : TProductstatusesListResponse;
  10611. Const
  10612. _HTTPMethod = 'GET';
  10613. _Path = '{merchantId}/productstatuses';
  10614. _Methodid = 'content.productstatuses.list';
  10615. Var
  10616. _P : String;
  10617. begin
  10618. _P:=SubstitutePath(_Path,['merchantId',merchantId]);
  10619. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TProductstatusesListResponse) as TProductstatusesListResponse;
  10620. end;
  10621. Function TProductstatusesResource.List(merchantId: string; AQuery : TProductstatuseslistOptions) : TProductstatusesListResponse;
  10622. Var
  10623. _Q : String;
  10624. begin
  10625. _Q:='';
  10626. AddToQuery(_Q,'includeInvalidInsertedItems',AQuery.includeInvalidInsertedItems);
  10627. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  10628. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  10629. Result:=List(merchantId,_Q);
  10630. end;
  10631. { --------------------------------------------------------------------
  10632. TContentAPI
  10633. --------------------------------------------------------------------}
  10634. Class Function TContentAPI.APIName : String;
  10635. begin
  10636. Result:='content';
  10637. end;
  10638. Class Function TContentAPI.APIVersion : String;
  10639. begin
  10640. Result:='v2';
  10641. end;
  10642. Class Function TContentAPI.APIRevision : String;
  10643. begin
  10644. Result:='20160419';
  10645. end;
  10646. Class Function TContentAPI.APIID : String;
  10647. begin
  10648. Result:='content:v2';
  10649. end;
  10650. Class Function TContentAPI.APITitle : String;
  10651. begin
  10652. Result:='Content API for Shopping';
  10653. end;
  10654. Class Function TContentAPI.APIDescription : String;
  10655. begin
  10656. Result:='Manages product items, inventory, and Merchant Center accounts for Google Shopping.';
  10657. end;
  10658. Class Function TContentAPI.APIOwnerDomain : String;
  10659. begin
  10660. Result:='google.com';
  10661. end;
  10662. Class Function TContentAPI.APIOwnerName : String;
  10663. begin
  10664. Result:='Google';
  10665. end;
  10666. Class Function TContentAPI.APIIcon16 : String;
  10667. begin
  10668. Result:='http://www.google.com/images/icons/product/search-16.gif';
  10669. end;
  10670. Class Function TContentAPI.APIIcon32 : String;
  10671. begin
  10672. Result:='http://www.google.com/images/icons/product/search-32.gif';
  10673. end;
  10674. Class Function TContentAPI.APIdocumentationLink : String;
  10675. begin
  10676. Result:='https://developers.google.com/shopping-content';
  10677. end;
  10678. Class Function TContentAPI.APIrootUrl : string;
  10679. begin
  10680. Result:='https://www.googleapis.com/';
  10681. end;
  10682. Class Function TContentAPI.APIbasePath : string;
  10683. begin
  10684. Result:='/content/v2/';
  10685. end;
  10686. Class Function TContentAPI.APIbaseURL : String;
  10687. begin
  10688. Result:='https://www.googleapis.com/content/v2/';
  10689. end;
  10690. Class Function TContentAPI.APIProtocol : string;
  10691. begin
  10692. Result:='rest';
  10693. end;
  10694. Class Function TContentAPI.APIservicePath : string;
  10695. begin
  10696. Result:='content/v2/';
  10697. end;
  10698. Class Function TContentAPI.APIbatchPath : String;
  10699. begin
  10700. Result:='batch';
  10701. end;
  10702. Class Function TContentAPI.APIAuthScopes : TScopeInfoArray;
  10703. begin
  10704. SetLength(Result,1);
  10705. Result[0].Name:='https://www.googleapis.com/auth/content';
  10706. Result[0].Description:='Manage your product listings and accounts for Google Shopping';
  10707. end;
  10708. Class Function TContentAPI.APINeedsAuth : Boolean;
  10709. begin
  10710. Result:=True;
  10711. end;
  10712. Class Procedure TContentAPI.RegisterAPIResources;
  10713. begin
  10714. TAccount.RegisterObject;
  10715. TAccountAdwordsLink.RegisterObject;
  10716. TAccountIdentifier.RegisterObject;
  10717. TAccountShipping.RegisterObject;
  10718. TAccountShippingCarrierRate.RegisterObject;
  10719. TAccountShippingCondition.RegisterObject;
  10720. TAccountShippingLocationGroup.RegisterObject;
  10721. TAccountShippingPostalCodeRange.RegisterObject;
  10722. TAccountShippingRateTable.RegisterObject;
  10723. TAccountShippingRateTableCell.RegisterObject;
  10724. TAccountShippingShippingService.RegisterObject;
  10725. TAccountShippingShippingServiceCalculationMethod.RegisterObject;
  10726. TAccountShippingShippingServiceCostRule.RegisterObject;
  10727. TAccountStatus.RegisterObject;
  10728. TAccountStatusDataQualityIssue.RegisterObject;
  10729. TAccountStatusExampleItem.RegisterObject;
  10730. TAccountTax.RegisterObject;
  10731. TAccountTaxTaxRule.RegisterObject;
  10732. TAccountUser.RegisterObject;
  10733. TAccountsAuthInfoResponse.RegisterObject;
  10734. TAccountsCustomBatchRequest.RegisterObject;
  10735. TAccountsCustomBatchRequestEntry.RegisterObject;
  10736. TAccountsCustomBatchResponse.RegisterObject;
  10737. TAccountsCustomBatchResponseEntry.RegisterObject;
  10738. TAccountsListResponse.RegisterObject;
  10739. TAccountshippingCustomBatchRequest.RegisterObject;
  10740. TAccountshippingCustomBatchRequestEntry.RegisterObject;
  10741. TAccountshippingCustomBatchResponse.RegisterObject;
  10742. TAccountshippingCustomBatchResponseEntry.RegisterObject;
  10743. TAccountshippingListResponse.RegisterObject;
  10744. TAccountstatusesCustomBatchRequest.RegisterObject;
  10745. TAccountstatusesCustomBatchRequestEntry.RegisterObject;
  10746. TAccountstatusesCustomBatchResponse.RegisterObject;
  10747. TAccountstatusesCustomBatchResponseEntry.RegisterObject;
  10748. TAccountstatusesListResponse.RegisterObject;
  10749. TAccounttaxCustomBatchRequest.RegisterObject;
  10750. TAccounttaxCustomBatchRequestEntry.RegisterObject;
  10751. TAccounttaxCustomBatchResponse.RegisterObject;
  10752. TAccounttaxCustomBatchResponseEntry.RegisterObject;
  10753. TAccounttaxListResponse.RegisterObject;
  10754. TDatafeed.RegisterObject;
  10755. TDatafeedFetchSchedule.RegisterObject;
  10756. TDatafeedFormat.RegisterObject;
  10757. TDatafeedStatus.RegisterObject;
  10758. TDatafeedStatusError.RegisterObject;
  10759. TDatafeedStatusExample.RegisterObject;
  10760. TDatafeedsCustomBatchRequest.RegisterObject;
  10761. TDatafeedsCustomBatchRequestEntry.RegisterObject;
  10762. TDatafeedsCustomBatchResponse.RegisterObject;
  10763. TDatafeedsCustomBatchResponseEntry.RegisterObject;
  10764. TDatafeedsListResponse.RegisterObject;
  10765. TDatafeedstatusesCustomBatchRequest.RegisterObject;
  10766. TDatafeedstatusesCustomBatchRequestEntry.RegisterObject;
  10767. TDatafeedstatusesCustomBatchResponse.RegisterObject;
  10768. TDatafeedstatusesCustomBatchResponseEntry.RegisterObject;
  10769. TDatafeedstatusesListResponse.RegisterObject;
  10770. TError.RegisterObject;
  10771. TErrors.RegisterObject;
  10772. TInstallment.RegisterObject;
  10773. TInventory.RegisterObject;
  10774. TInventoryCustomBatchRequest.RegisterObject;
  10775. TInventoryCustomBatchRequestEntry.RegisterObject;
  10776. TInventoryCustomBatchResponse.RegisterObject;
  10777. TInventoryCustomBatchResponseEntry.RegisterObject;
  10778. TInventorySetRequest.RegisterObject;
  10779. TInventorySetResponse.RegisterObject;
  10780. TLoyaltyPoints.RegisterObject;
  10781. TOrder.RegisterObject;
  10782. TOrderAddress.RegisterObject;
  10783. TOrderCancellation.RegisterObject;
  10784. TOrderCustomer.RegisterObject;
  10785. TOrderDeliveryDetails.RegisterObject;
  10786. TOrderLineItem.RegisterObject;
  10787. TOrderLineItemProduct.RegisterObject;
  10788. TOrderLineItemProductVariantAttribute.RegisterObject;
  10789. TOrderLineItemReturnInfo.RegisterObject;
  10790. TOrderLineItemShippingDetails.RegisterObject;
  10791. TOrderLineItemShippingDetailsMethod.RegisterObject;
  10792. TOrderPaymentMethod.RegisterObject;
  10793. TOrderPromotion.RegisterObject;
  10794. TOrderPromotionBenefit.RegisterObject;
  10795. TOrderRefund.RegisterObject;
  10796. TOrderReturn.RegisterObject;
  10797. TOrderShipment.RegisterObject;
  10798. TOrderShipmentLineItemShipment.RegisterObject;
  10799. TOrdersAcknowledgeRequest.RegisterObject;
  10800. TOrdersAcknowledgeResponse.RegisterObject;
  10801. TOrdersAdvanceTestOrderResponse.RegisterObject;
  10802. TOrdersCancelLineItemRequest.RegisterObject;
  10803. TOrdersCancelLineItemResponse.RegisterObject;
  10804. TOrdersCancelRequest.RegisterObject;
  10805. TOrdersCancelResponse.RegisterObject;
  10806. TOrdersCreateTestOrderRequest.RegisterObject;
  10807. TOrdersCreateTestOrderResponse.RegisterObject;
  10808. TOrdersCustomBatchRequest.RegisterObject;
  10809. TOrdersCustomBatchRequestEntry.RegisterObject;
  10810. TOrdersCustomBatchRequestEntryCancel.RegisterObject;
  10811. TOrdersCustomBatchRequestEntryCancelLineItem.RegisterObject;
  10812. TOrdersCustomBatchRequestEntryRefund.RegisterObject;
  10813. TOrdersCustomBatchRequestEntryReturnLineItem.RegisterObject;
  10814. TOrdersCustomBatchRequestEntryShipLineItems.RegisterObject;
  10815. TOrdersCustomBatchRequestEntryUpdateShipment.RegisterObject;
  10816. TOrdersCustomBatchResponse.RegisterObject;
  10817. TOrdersCustomBatchResponseEntry.RegisterObject;
  10818. TOrdersGetByMerchantOrderIdResponse.RegisterObject;
  10819. TOrdersGetTestOrderTemplateResponse.RegisterObject;
  10820. TOrdersListResponse.RegisterObject;
  10821. TOrdersRefundRequest.RegisterObject;
  10822. TOrdersRefundResponse.RegisterObject;
  10823. TOrdersReturnLineItemRequest.RegisterObject;
  10824. TOrdersReturnLineItemResponse.RegisterObject;
  10825. TOrdersShipLineItemsRequest.RegisterObject;
  10826. TOrdersShipLineItemsResponse.RegisterObject;
  10827. TOrdersUpdateMerchantOrderIdRequest.RegisterObject;
  10828. TOrdersUpdateMerchantOrderIdResponse.RegisterObject;
  10829. TOrdersUpdateShipmentRequest.RegisterObject;
  10830. TOrdersUpdateShipmentResponse.RegisterObject;
  10831. TPrice.RegisterObject;
  10832. TProduct.RegisterObject;
  10833. TProductAspect.RegisterObject;
  10834. TProductCustomAttribute.RegisterObject;
  10835. TProductCustomGroup.RegisterObject;
  10836. TProductDestination.RegisterObject;
  10837. TProductShipping.RegisterObject;
  10838. TProductShippingDimension.RegisterObject;
  10839. TProductShippingWeight.RegisterObject;
  10840. TProductStatus.RegisterObject;
  10841. TProductStatusDataQualityIssue.RegisterObject;
  10842. TProductStatusDestinationStatus.RegisterObject;
  10843. TProductTax.RegisterObject;
  10844. TProductUnitPricingBaseMeasure.RegisterObject;
  10845. TProductUnitPricingMeasure.RegisterObject;
  10846. TProductsCustomBatchRequest.RegisterObject;
  10847. TProductsCustomBatchRequestEntry.RegisterObject;
  10848. TProductsCustomBatchResponse.RegisterObject;
  10849. TProductsCustomBatchResponseEntry.RegisterObject;
  10850. TProductsListResponse.RegisterObject;
  10851. TProductstatusesCustomBatchRequest.RegisterObject;
  10852. TProductstatusesCustomBatchRequestEntry.RegisterObject;
  10853. TProductstatusesCustomBatchResponse.RegisterObject;
  10854. TProductstatusesCustomBatchResponseEntry.RegisterObject;
  10855. TProductstatusesListResponse.RegisterObject;
  10856. TTestOrder.RegisterObject;
  10857. TTestOrderCustomer.RegisterObject;
  10858. TTestOrderLineItem.RegisterObject;
  10859. TTestOrderLineItemProduct.RegisterObject;
  10860. TTestOrderPaymentMethod.RegisterObject;
  10861. TWeight.RegisterObject;
  10862. end;
  10863. Function TContentAPI.GetAccountsInstance : TAccountsResource;
  10864. begin
  10865. if (FAccountsInstance=Nil) then
  10866. FAccountsInstance:=CreateAccountsResource;
  10867. Result:=FAccountsInstance;
  10868. end;
  10869. Function TContentAPI.CreateAccountsResource : TAccountsResource;
  10870. begin
  10871. Result:=CreateAccountsResource(Self);
  10872. end;
  10873. Function TContentAPI.CreateAccountsResource(AOwner : TComponent) : TAccountsResource;
  10874. begin
  10875. Result:=TAccountsResource.Create(AOwner);
  10876. Result.API:=Self.API;
  10877. end;
  10878. Function TContentAPI.GetAccountshippingInstance : TAccountshippingResource;
  10879. begin
  10880. if (FAccountshippingInstance=Nil) then
  10881. FAccountshippingInstance:=CreateAccountshippingResource;
  10882. Result:=FAccountshippingInstance;
  10883. end;
  10884. Function TContentAPI.CreateAccountshippingResource : TAccountshippingResource;
  10885. begin
  10886. Result:=CreateAccountshippingResource(Self);
  10887. end;
  10888. Function TContentAPI.CreateAccountshippingResource(AOwner : TComponent) : TAccountshippingResource;
  10889. begin
  10890. Result:=TAccountshippingResource.Create(AOwner);
  10891. Result.API:=Self.API;
  10892. end;
  10893. Function TContentAPI.GetAccountstatusesInstance : TAccountstatusesResource;
  10894. begin
  10895. if (FAccountstatusesInstance=Nil) then
  10896. FAccountstatusesInstance:=CreateAccountstatusesResource;
  10897. Result:=FAccountstatusesInstance;
  10898. end;
  10899. Function TContentAPI.CreateAccountstatusesResource : TAccountstatusesResource;
  10900. begin
  10901. Result:=CreateAccountstatusesResource(Self);
  10902. end;
  10903. Function TContentAPI.CreateAccountstatusesResource(AOwner : TComponent) : TAccountstatusesResource;
  10904. begin
  10905. Result:=TAccountstatusesResource.Create(AOwner);
  10906. Result.API:=Self.API;
  10907. end;
  10908. Function TContentAPI.GetAccounttaxInstance : TAccounttaxResource;
  10909. begin
  10910. if (FAccounttaxInstance=Nil) then
  10911. FAccounttaxInstance:=CreateAccounttaxResource;
  10912. Result:=FAccounttaxInstance;
  10913. end;
  10914. Function TContentAPI.CreateAccounttaxResource : TAccounttaxResource;
  10915. begin
  10916. Result:=CreateAccounttaxResource(Self);
  10917. end;
  10918. Function TContentAPI.CreateAccounttaxResource(AOwner : TComponent) : TAccounttaxResource;
  10919. begin
  10920. Result:=TAccounttaxResource.Create(AOwner);
  10921. Result.API:=Self.API;
  10922. end;
  10923. Function TContentAPI.GetDatafeedsInstance : TDatafeedsResource;
  10924. begin
  10925. if (FDatafeedsInstance=Nil) then
  10926. FDatafeedsInstance:=CreateDatafeedsResource;
  10927. Result:=FDatafeedsInstance;
  10928. end;
  10929. Function TContentAPI.CreateDatafeedsResource : TDatafeedsResource;
  10930. begin
  10931. Result:=CreateDatafeedsResource(Self);
  10932. end;
  10933. Function TContentAPI.CreateDatafeedsResource(AOwner : TComponent) : TDatafeedsResource;
  10934. begin
  10935. Result:=TDatafeedsResource.Create(AOwner);
  10936. Result.API:=Self.API;
  10937. end;
  10938. Function TContentAPI.GetDatafeedstatusesInstance : TDatafeedstatusesResource;
  10939. begin
  10940. if (FDatafeedstatusesInstance=Nil) then
  10941. FDatafeedstatusesInstance:=CreateDatafeedstatusesResource;
  10942. Result:=FDatafeedstatusesInstance;
  10943. end;
  10944. Function TContentAPI.CreateDatafeedstatusesResource : TDatafeedstatusesResource;
  10945. begin
  10946. Result:=CreateDatafeedstatusesResource(Self);
  10947. end;
  10948. Function TContentAPI.CreateDatafeedstatusesResource(AOwner : TComponent) : TDatafeedstatusesResource;
  10949. begin
  10950. Result:=TDatafeedstatusesResource.Create(AOwner);
  10951. Result.API:=Self.API;
  10952. end;
  10953. Function TContentAPI.GetInventoryInstance : TInventoryResource;
  10954. begin
  10955. if (FInventoryInstance=Nil) then
  10956. FInventoryInstance:=CreateInventoryResource;
  10957. Result:=FInventoryInstance;
  10958. end;
  10959. Function TContentAPI.CreateInventoryResource : TInventoryResource;
  10960. begin
  10961. Result:=CreateInventoryResource(Self);
  10962. end;
  10963. Function TContentAPI.CreateInventoryResource(AOwner : TComponent) : TInventoryResource;
  10964. begin
  10965. Result:=TInventoryResource.Create(AOwner);
  10966. Result.API:=Self.API;
  10967. end;
  10968. Function TContentAPI.GetOrdersInstance : TOrdersResource;
  10969. begin
  10970. if (FOrdersInstance=Nil) then
  10971. FOrdersInstance:=CreateOrdersResource;
  10972. Result:=FOrdersInstance;
  10973. end;
  10974. Function TContentAPI.CreateOrdersResource : TOrdersResource;
  10975. begin
  10976. Result:=CreateOrdersResource(Self);
  10977. end;
  10978. Function TContentAPI.CreateOrdersResource(AOwner : TComponent) : TOrdersResource;
  10979. begin
  10980. Result:=TOrdersResource.Create(AOwner);
  10981. Result.API:=Self.API;
  10982. end;
  10983. Function TContentAPI.GetProductsInstance : TProductsResource;
  10984. begin
  10985. if (FProductsInstance=Nil) then
  10986. FProductsInstance:=CreateProductsResource;
  10987. Result:=FProductsInstance;
  10988. end;
  10989. Function TContentAPI.CreateProductsResource : TProductsResource;
  10990. begin
  10991. Result:=CreateProductsResource(Self);
  10992. end;
  10993. Function TContentAPI.CreateProductsResource(AOwner : TComponent) : TProductsResource;
  10994. begin
  10995. Result:=TProductsResource.Create(AOwner);
  10996. Result.API:=Self.API;
  10997. end;
  10998. Function TContentAPI.GetProductstatusesInstance : TProductstatusesResource;
  10999. begin
  11000. if (FProductstatusesInstance=Nil) then
  11001. FProductstatusesInstance:=CreateProductstatusesResource;
  11002. Result:=FProductstatusesInstance;
  11003. end;
  11004. Function TContentAPI.CreateProductstatusesResource : TProductstatusesResource;
  11005. begin
  11006. Result:=CreateProductstatusesResource(Self);
  11007. end;
  11008. Function TContentAPI.CreateProductstatusesResource(AOwner : TComponent) : TProductstatusesResource;
  11009. begin
  11010. Result:=TProductstatusesResource.Create(AOwner);
  11011. Result.API:=Self.API;
  11012. end;
  11013. initialization
  11014. TContentAPI.RegisterAPI;
  11015. end.