googleandroidpublisher.pp 177 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966
  1. unit googleandroidpublisher;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TApk = Class;
  9. TApkBinary = Class;
  10. TApkListing = Class;
  11. TApkListingsListResponse = Class;
  12. TApksAddExternallyHostedRequest = Class;
  13. TApksAddExternallyHostedResponse = Class;
  14. TApksListResponse = Class;
  15. TAppDetails = Class;
  16. TAppEdit = Class;
  17. TComment = Class;
  18. TDeveloperComment = Class;
  19. TEntitlement = Class;
  20. TEntitlementsListResponse = Class;
  21. TExpansionFile = Class;
  22. TExpansionFilesUploadResponse = Class;
  23. TExternallyHostedApk = Class;
  24. TExternallyHostedApkUsesPermission = Class;
  25. TImage = Class;
  26. TImagesDeleteAllResponse = Class;
  27. TImagesListResponse = Class;
  28. TImagesUploadResponse = Class;
  29. TInAppProduct = Class;
  30. TInAppProductListing = Class;
  31. TInappproductsBatchRequest = Class;
  32. TInappproductsBatchRequestEntry = Class;
  33. TInappproductsBatchResponse = Class;
  34. TInappproductsBatchResponseEntry = Class;
  35. TInappproductsInsertRequest = Class;
  36. TInappproductsInsertResponse = Class;
  37. TInappproductsListResponse = Class;
  38. TInappproductsUpdateRequest = Class;
  39. TInappproductsUpdateResponse = Class;
  40. TListing = Class;
  41. TListingsListResponse = Class;
  42. TMonthDay = Class;
  43. TPageInfo = Class;
  44. TPrice = Class;
  45. TProductPurchase = Class;
  46. TProrate = Class;
  47. TReview = Class;
  48. TReviewReplyResult = Class;
  49. TReviewsListResponse = Class;
  50. TReviewsReplyRequest = Class;
  51. TReviewsReplyResponse = Class;
  52. TSeason = Class;
  53. TSubscriptionDeferralInfo = Class;
  54. TSubscriptionPurchase = Class;
  55. TSubscriptionPurchasesDeferRequest = Class;
  56. TSubscriptionPurchasesDeferResponse = Class;
  57. TTesters = Class;
  58. TTimestamp = Class;
  59. TTokenPagination = Class;
  60. TTrack = Class;
  61. TTracksListResponse = Class;
  62. TUserComment = Class;
  63. TApkArray = Array of TApk;
  64. TApkBinaryArray = Array of TApkBinary;
  65. TApkListingArray = Array of TApkListing;
  66. TApkListingsListResponseArray = Array of TApkListingsListResponse;
  67. TApksAddExternallyHostedRequestArray = Array of TApksAddExternallyHostedRequest;
  68. TApksAddExternallyHostedResponseArray = Array of TApksAddExternallyHostedResponse;
  69. TApksListResponseArray = Array of TApksListResponse;
  70. TAppDetailsArray = Array of TAppDetails;
  71. TAppEditArray = Array of TAppEdit;
  72. TCommentArray = Array of TComment;
  73. TDeveloperCommentArray = Array of TDeveloperComment;
  74. TEntitlementArray = Array of TEntitlement;
  75. TEntitlementsListResponseArray = Array of TEntitlementsListResponse;
  76. TExpansionFileArray = Array of TExpansionFile;
  77. TExpansionFilesUploadResponseArray = Array of TExpansionFilesUploadResponse;
  78. TExternallyHostedApkArray = Array of TExternallyHostedApk;
  79. TExternallyHostedApkUsesPermissionArray = Array of TExternallyHostedApkUsesPermission;
  80. TImageArray = Array of TImage;
  81. TImagesDeleteAllResponseArray = Array of TImagesDeleteAllResponse;
  82. TImagesListResponseArray = Array of TImagesListResponse;
  83. TImagesUploadResponseArray = Array of TImagesUploadResponse;
  84. TInAppProductArray = Array of TInAppProduct;
  85. TInAppProductListingArray = Array of TInAppProductListing;
  86. TInappproductsBatchRequestArray = Array of TInappproductsBatchRequest;
  87. TInappproductsBatchRequestEntryArray = Array of TInappproductsBatchRequestEntry;
  88. TInappproductsBatchResponseArray = Array of TInappproductsBatchResponse;
  89. TInappproductsBatchResponseEntryArray = Array of TInappproductsBatchResponseEntry;
  90. TInappproductsInsertRequestArray = Array of TInappproductsInsertRequest;
  91. TInappproductsInsertResponseArray = Array of TInappproductsInsertResponse;
  92. TInappproductsListResponseArray = Array of TInappproductsListResponse;
  93. TInappproductsUpdateRequestArray = Array of TInappproductsUpdateRequest;
  94. TInappproductsUpdateResponseArray = Array of TInappproductsUpdateResponse;
  95. TListingArray = Array of TListing;
  96. TListingsListResponseArray = Array of TListingsListResponse;
  97. TMonthDayArray = Array of TMonthDay;
  98. TPageInfoArray = Array of TPageInfo;
  99. TPriceArray = Array of TPrice;
  100. TProductPurchaseArray = Array of TProductPurchase;
  101. TProrateArray = Array of TProrate;
  102. TReviewArray = Array of TReview;
  103. TReviewReplyResultArray = Array of TReviewReplyResult;
  104. TReviewsListResponseArray = Array of TReviewsListResponse;
  105. TReviewsReplyRequestArray = Array of TReviewsReplyRequest;
  106. TReviewsReplyResponseArray = Array of TReviewsReplyResponse;
  107. TSeasonArray = Array of TSeason;
  108. TSubscriptionDeferralInfoArray = Array of TSubscriptionDeferralInfo;
  109. TSubscriptionPurchaseArray = Array of TSubscriptionPurchase;
  110. TSubscriptionPurchasesDeferRequestArray = Array of TSubscriptionPurchasesDeferRequest;
  111. TSubscriptionPurchasesDeferResponseArray = Array of TSubscriptionPurchasesDeferResponse;
  112. TTestersArray = Array of TTesters;
  113. TTimestampArray = Array of TTimestamp;
  114. TTokenPaginationArray = Array of TTokenPagination;
  115. TTrackArray = Array of TTrack;
  116. TTracksListResponseArray = Array of TTracksListResponse;
  117. TUserCommentArray = Array of TUserComment;
  118. //Anonymous types, using auto-generated names
  119. TInAppProductTypelistings = Class;
  120. TInAppProductTypeprices = Class;
  121. TApkListingsListResponseTypelistingsArray = Array of TApkListing;
  122. TApksListResponseTypeapksArray = Array of TApk;
  123. TEntitlementsListResponseTyperesourcesArray = Array of TEntitlement;
  124. TExternallyHostedApkTypeusesPermissionsArray = Array of TExternallyHostedApkUsesPermission;
  125. TImagesDeleteAllResponseTypedeletedArray = Array of TImage;
  126. TImagesListResponseTypeimagesArray = Array of TImage;
  127. TInappproductsBatchRequestTypeentrysArray = Array of TInappproductsBatchRequestEntry;
  128. TInappproductsBatchResponseTypeentrysArray = Array of TInappproductsBatchResponseEntry;
  129. TInappproductsListResponseTypeinappproductArray = Array of TInAppProduct;
  130. TListingsListResponseTypelistingsArray = Array of TListing;
  131. TReviewTypecommentsArray = Array of TComment;
  132. TReviewsListResponseTypereviewsArray = Array of TReview;
  133. TSeasonTypeprorationsArray = Array of TProrate;
  134. TTracksListResponseTypetracksArray = Array of TTrack;
  135. { --------------------------------------------------------------------
  136. TApk
  137. --------------------------------------------------------------------}
  138. TApk = Class(TGoogleBaseObject)
  139. Private
  140. Fbinary : TApkBinary;
  141. FversionCode : integer;
  142. Protected
  143. //Property setters
  144. Procedure Setbinary(AIndex : Integer; const AValue : TApkBinary); virtual;
  145. Procedure SetversionCode(AIndex : Integer; const AValue : integer); virtual;
  146. Public
  147. Published
  148. Property binary : TApkBinary Index 0 Read Fbinary Write Setbinary;
  149. Property versionCode : integer Index 8 Read FversionCode Write SetversionCode;
  150. end;
  151. TApkClass = Class of TApk;
  152. { --------------------------------------------------------------------
  153. TApkBinary
  154. --------------------------------------------------------------------}
  155. TApkBinary = Class(TGoogleBaseObject)
  156. Private
  157. Fsha1 : String;
  158. Protected
  159. //Property setters
  160. Procedure Setsha1(AIndex : Integer; const AValue : String); virtual;
  161. Public
  162. Published
  163. Property sha1 : String Index 0 Read Fsha1 Write Setsha1;
  164. end;
  165. TApkBinaryClass = Class of TApkBinary;
  166. { --------------------------------------------------------------------
  167. TApkListing
  168. --------------------------------------------------------------------}
  169. TApkListing = Class(TGoogleBaseObject)
  170. Private
  171. Flanguage : String;
  172. FrecentChanges : String;
  173. Protected
  174. //Property setters
  175. Procedure Setlanguage(AIndex : Integer; const AValue : String); virtual;
  176. Procedure SetrecentChanges(AIndex : Integer; const AValue : String); virtual;
  177. Public
  178. Published
  179. Property language : String Index 0 Read Flanguage Write Setlanguage;
  180. Property recentChanges : String Index 8 Read FrecentChanges Write SetrecentChanges;
  181. end;
  182. TApkListingClass = Class of TApkListing;
  183. { --------------------------------------------------------------------
  184. TApkListingsListResponse
  185. --------------------------------------------------------------------}
  186. TApkListingsListResponse = Class(TGoogleBaseObject)
  187. Private
  188. Fkind : String;
  189. Flistings : TApkListingsListResponseTypelistingsArray;
  190. Protected
  191. //Property setters
  192. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  193. Procedure Setlistings(AIndex : Integer; const AValue : TApkListingsListResponseTypelistingsArray); virtual;
  194. //2.6.4. bug workaround
  195. {$IFDEF VER2_6}
  196. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  197. {$ENDIF VER2_6}
  198. Public
  199. Published
  200. Property kind : String Index 0 Read Fkind Write Setkind;
  201. Property listings : TApkListingsListResponseTypelistingsArray Index 8 Read Flistings Write Setlistings;
  202. end;
  203. TApkListingsListResponseClass = Class of TApkListingsListResponse;
  204. { --------------------------------------------------------------------
  205. TApksAddExternallyHostedRequest
  206. --------------------------------------------------------------------}
  207. TApksAddExternallyHostedRequest = Class(TGoogleBaseObject)
  208. Private
  209. FexternallyHostedApk : TExternallyHostedApk;
  210. Protected
  211. //Property setters
  212. Procedure SetexternallyHostedApk(AIndex : Integer; const AValue : TExternallyHostedApk); virtual;
  213. Public
  214. Published
  215. Property externallyHostedApk : TExternallyHostedApk Index 0 Read FexternallyHostedApk Write SetexternallyHostedApk;
  216. end;
  217. TApksAddExternallyHostedRequestClass = Class of TApksAddExternallyHostedRequest;
  218. { --------------------------------------------------------------------
  219. TApksAddExternallyHostedResponse
  220. --------------------------------------------------------------------}
  221. TApksAddExternallyHostedResponse = Class(TGoogleBaseObject)
  222. Private
  223. FexternallyHostedApk : TExternallyHostedApk;
  224. Protected
  225. //Property setters
  226. Procedure SetexternallyHostedApk(AIndex : Integer; const AValue : TExternallyHostedApk); virtual;
  227. Public
  228. Published
  229. Property externallyHostedApk : TExternallyHostedApk Index 0 Read FexternallyHostedApk Write SetexternallyHostedApk;
  230. end;
  231. TApksAddExternallyHostedResponseClass = Class of TApksAddExternallyHostedResponse;
  232. { --------------------------------------------------------------------
  233. TApksListResponse
  234. --------------------------------------------------------------------}
  235. TApksListResponse = Class(TGoogleBaseObject)
  236. Private
  237. Fapks : TApksListResponseTypeapksArray;
  238. Fkind : String;
  239. Protected
  240. //Property setters
  241. Procedure Setapks(AIndex : Integer; const AValue : TApksListResponseTypeapksArray); virtual;
  242. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  243. //2.6.4. bug workaround
  244. {$IFDEF VER2_6}
  245. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  246. {$ENDIF VER2_6}
  247. Public
  248. Published
  249. Property apks : TApksListResponseTypeapksArray Index 0 Read Fapks Write Setapks;
  250. Property kind : String Index 8 Read Fkind Write Setkind;
  251. end;
  252. TApksListResponseClass = Class of TApksListResponse;
  253. { --------------------------------------------------------------------
  254. TAppDetails
  255. --------------------------------------------------------------------}
  256. TAppDetails = Class(TGoogleBaseObject)
  257. Private
  258. FcontactEmail : String;
  259. FcontactPhone : String;
  260. FcontactWebsite : String;
  261. FdefaultLanguage : String;
  262. Protected
  263. //Property setters
  264. Procedure SetcontactEmail(AIndex : Integer; const AValue : String); virtual;
  265. Procedure SetcontactPhone(AIndex : Integer; const AValue : String); virtual;
  266. Procedure SetcontactWebsite(AIndex : Integer; const AValue : String); virtual;
  267. Procedure SetdefaultLanguage(AIndex : Integer; const AValue : String); virtual;
  268. Public
  269. Published
  270. Property contactEmail : String Index 0 Read FcontactEmail Write SetcontactEmail;
  271. Property contactPhone : String Index 8 Read FcontactPhone Write SetcontactPhone;
  272. Property contactWebsite : String Index 16 Read FcontactWebsite Write SetcontactWebsite;
  273. Property defaultLanguage : String Index 24 Read FdefaultLanguage Write SetdefaultLanguage;
  274. end;
  275. TAppDetailsClass = Class of TAppDetails;
  276. { --------------------------------------------------------------------
  277. TAppEdit
  278. --------------------------------------------------------------------}
  279. TAppEdit = Class(TGoogleBaseObject)
  280. Private
  281. FexpiryTimeSeconds : String;
  282. Fid : String;
  283. Protected
  284. //Property setters
  285. Procedure SetexpiryTimeSeconds(AIndex : Integer; const AValue : String); virtual;
  286. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  287. Public
  288. Published
  289. Property expiryTimeSeconds : String Index 0 Read FexpiryTimeSeconds Write SetexpiryTimeSeconds;
  290. Property id : String Index 8 Read Fid Write Setid;
  291. end;
  292. TAppEditClass = Class of TAppEdit;
  293. { --------------------------------------------------------------------
  294. TComment
  295. --------------------------------------------------------------------}
  296. TComment = Class(TGoogleBaseObject)
  297. Private
  298. FdeveloperComment : TDeveloperComment;
  299. FuserComment : TUserComment;
  300. Protected
  301. //Property setters
  302. Procedure SetdeveloperComment(AIndex : Integer; const AValue : TDeveloperComment); virtual;
  303. Procedure SetuserComment(AIndex : Integer; const AValue : TUserComment); virtual;
  304. Public
  305. Published
  306. Property developerComment : TDeveloperComment Index 0 Read FdeveloperComment Write SetdeveloperComment;
  307. Property userComment : TUserComment Index 8 Read FuserComment Write SetuserComment;
  308. end;
  309. TCommentClass = Class of TComment;
  310. { --------------------------------------------------------------------
  311. TDeveloperComment
  312. --------------------------------------------------------------------}
  313. TDeveloperComment = Class(TGoogleBaseObject)
  314. Private
  315. FlastModified : TTimestamp;
  316. Ftext : String;
  317. Protected
  318. //Property setters
  319. Procedure SetlastModified(AIndex : Integer; const AValue : TTimestamp); virtual;
  320. Procedure Settext(AIndex : Integer; const AValue : String); virtual;
  321. Public
  322. Published
  323. Property lastModified : TTimestamp Index 0 Read FlastModified Write SetlastModified;
  324. Property text : String Index 8 Read Ftext Write Settext;
  325. end;
  326. TDeveloperCommentClass = Class of TDeveloperComment;
  327. { --------------------------------------------------------------------
  328. TEntitlement
  329. --------------------------------------------------------------------}
  330. TEntitlement = Class(TGoogleBaseObject)
  331. Private
  332. Fkind : String;
  333. FproductId : String;
  334. FproductType : String;
  335. Ftoken : String;
  336. Protected
  337. //Property setters
  338. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  339. Procedure SetproductId(AIndex : Integer; const AValue : String); virtual;
  340. Procedure SetproductType(AIndex : Integer; const AValue : String); virtual;
  341. Procedure Settoken(AIndex : Integer; const AValue : String); virtual;
  342. Public
  343. Published
  344. Property kind : String Index 0 Read Fkind Write Setkind;
  345. Property productId : String Index 8 Read FproductId Write SetproductId;
  346. Property productType : String Index 16 Read FproductType Write SetproductType;
  347. Property token : String Index 24 Read Ftoken Write Settoken;
  348. end;
  349. TEntitlementClass = Class of TEntitlement;
  350. { --------------------------------------------------------------------
  351. TEntitlementsListResponse
  352. --------------------------------------------------------------------}
  353. TEntitlementsListResponse = Class(TGoogleBaseObject)
  354. Private
  355. FpageInfo : TPageInfo;
  356. Fresources : TEntitlementsListResponseTyperesourcesArray;
  357. FtokenPagination : TTokenPagination;
  358. Protected
  359. //Property setters
  360. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  361. Procedure Setresources(AIndex : Integer; const AValue : TEntitlementsListResponseTyperesourcesArray); virtual;
  362. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  363. //2.6.4. bug workaround
  364. {$IFDEF VER2_6}
  365. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  366. {$ENDIF VER2_6}
  367. Public
  368. Published
  369. Property pageInfo : TPageInfo Index 0 Read FpageInfo Write SetpageInfo;
  370. Property resources : TEntitlementsListResponseTyperesourcesArray Index 8 Read Fresources Write Setresources;
  371. Property tokenPagination : TTokenPagination Index 16 Read FtokenPagination Write SettokenPagination;
  372. end;
  373. TEntitlementsListResponseClass = Class of TEntitlementsListResponse;
  374. { --------------------------------------------------------------------
  375. TExpansionFile
  376. --------------------------------------------------------------------}
  377. TExpansionFile = Class(TGoogleBaseObject)
  378. Private
  379. FfileSize : String;
  380. FreferencesVersion : integer;
  381. Protected
  382. //Property setters
  383. Procedure SetfileSize(AIndex : Integer; const AValue : String); virtual;
  384. Procedure SetreferencesVersion(AIndex : Integer; const AValue : integer); virtual;
  385. Public
  386. Published
  387. Property fileSize : String Index 0 Read FfileSize Write SetfileSize;
  388. Property referencesVersion : integer Index 8 Read FreferencesVersion Write SetreferencesVersion;
  389. end;
  390. TExpansionFileClass = Class of TExpansionFile;
  391. { --------------------------------------------------------------------
  392. TExpansionFilesUploadResponse
  393. --------------------------------------------------------------------}
  394. TExpansionFilesUploadResponse = Class(TGoogleBaseObject)
  395. Private
  396. FexpansionFile : TExpansionFile;
  397. Protected
  398. //Property setters
  399. Procedure SetexpansionFile(AIndex : Integer; const AValue : TExpansionFile); virtual;
  400. Public
  401. Published
  402. Property expansionFile : TExpansionFile Index 0 Read FexpansionFile Write SetexpansionFile;
  403. end;
  404. TExpansionFilesUploadResponseClass = Class of TExpansionFilesUploadResponse;
  405. { --------------------------------------------------------------------
  406. TExternallyHostedApk
  407. --------------------------------------------------------------------}
  408. TExternallyHostedApk = Class(TGoogleBaseObject)
  409. Private
  410. FapplicationLabel : String;
  411. FcertificateBase64s : TStringArray;
  412. FexternallyHostedUrl : String;
  413. FfileSha1Base64 : String;
  414. FfileSha256Base64 : String;
  415. FfileSize : String;
  416. FiconBase64 : String;
  417. FmaximumSdk : integer;
  418. FminimumSdk : integer;
  419. FnativeCodes : TStringArray;
  420. FpackageName : String;
  421. FusesFeatures : TStringArray;
  422. FusesPermissions : TExternallyHostedApkTypeusesPermissionsArray;
  423. FversionCode : integer;
  424. FversionName : String;
  425. Protected
  426. //Property setters
  427. Procedure SetapplicationLabel(AIndex : Integer; const AValue : String); virtual;
  428. Procedure SetcertificateBase64s(AIndex : Integer; const AValue : TStringArray); virtual;
  429. Procedure SetexternallyHostedUrl(AIndex : Integer; const AValue : String); virtual;
  430. Procedure SetfileSha1Base64(AIndex : Integer; const AValue : String); virtual;
  431. Procedure SetfileSha256Base64(AIndex : Integer; const AValue : String); virtual;
  432. Procedure SetfileSize(AIndex : Integer; const AValue : String); virtual;
  433. Procedure SeticonBase64(AIndex : Integer; const AValue : String); virtual;
  434. Procedure SetmaximumSdk(AIndex : Integer; const AValue : integer); virtual;
  435. Procedure SetminimumSdk(AIndex : Integer; const AValue : integer); virtual;
  436. Procedure SetnativeCodes(AIndex : Integer; const AValue : TStringArray); virtual;
  437. Procedure SetpackageName(AIndex : Integer; const AValue : String); virtual;
  438. Procedure SetusesFeatures(AIndex : Integer; const AValue : TStringArray); virtual;
  439. Procedure SetusesPermissions(AIndex : Integer; const AValue : TExternallyHostedApkTypeusesPermissionsArray); virtual;
  440. Procedure SetversionCode(AIndex : Integer; const AValue : integer); virtual;
  441. Procedure SetversionName(AIndex : Integer; const AValue : String); virtual;
  442. //2.6.4. bug workaround
  443. {$IFDEF VER2_6}
  444. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  445. {$ENDIF VER2_6}
  446. Public
  447. Published
  448. Property applicationLabel : String Index 0 Read FapplicationLabel Write SetapplicationLabel;
  449. Property certificateBase64s : TStringArray Index 8 Read FcertificateBase64s Write SetcertificateBase64s;
  450. Property externallyHostedUrl : String Index 16 Read FexternallyHostedUrl Write SetexternallyHostedUrl;
  451. Property fileSha1Base64 : String Index 24 Read FfileSha1Base64 Write SetfileSha1Base64;
  452. Property fileSha256Base64 : String Index 32 Read FfileSha256Base64 Write SetfileSha256Base64;
  453. Property fileSize : String Index 40 Read FfileSize Write SetfileSize;
  454. Property iconBase64 : String Index 48 Read FiconBase64 Write SeticonBase64;
  455. Property maximumSdk : integer Index 56 Read FmaximumSdk Write SetmaximumSdk;
  456. Property minimumSdk : integer Index 64 Read FminimumSdk Write SetminimumSdk;
  457. Property nativeCodes : TStringArray Index 72 Read FnativeCodes Write SetnativeCodes;
  458. Property packageName : String Index 80 Read FpackageName Write SetpackageName;
  459. Property usesFeatures : TStringArray Index 88 Read FusesFeatures Write SetusesFeatures;
  460. Property usesPermissions : TExternallyHostedApkTypeusesPermissionsArray Index 96 Read FusesPermissions Write SetusesPermissions;
  461. Property versionCode : integer Index 104 Read FversionCode Write SetversionCode;
  462. Property versionName : String Index 112 Read FversionName Write SetversionName;
  463. end;
  464. TExternallyHostedApkClass = Class of TExternallyHostedApk;
  465. { --------------------------------------------------------------------
  466. TExternallyHostedApkUsesPermission
  467. --------------------------------------------------------------------}
  468. TExternallyHostedApkUsesPermission = Class(TGoogleBaseObject)
  469. Private
  470. FmaxSdkVersion : integer;
  471. Fname : String;
  472. Protected
  473. //Property setters
  474. Procedure SetmaxSdkVersion(AIndex : Integer; const AValue : integer); virtual;
  475. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  476. Public
  477. Published
  478. Property maxSdkVersion : integer Index 0 Read FmaxSdkVersion Write SetmaxSdkVersion;
  479. Property name : String Index 8 Read Fname Write Setname;
  480. end;
  481. TExternallyHostedApkUsesPermissionClass = Class of TExternallyHostedApkUsesPermission;
  482. { --------------------------------------------------------------------
  483. TImage
  484. --------------------------------------------------------------------}
  485. TImage = Class(TGoogleBaseObject)
  486. Private
  487. Fid : String;
  488. Fsha1 : String;
  489. Furl : String;
  490. Protected
  491. //Property setters
  492. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  493. Procedure Setsha1(AIndex : Integer; const AValue : String); virtual;
  494. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  495. Public
  496. Published
  497. Property id : String Index 0 Read Fid Write Setid;
  498. Property sha1 : String Index 8 Read Fsha1 Write Setsha1;
  499. Property url : String Index 16 Read Furl Write Seturl;
  500. end;
  501. TImageClass = Class of TImage;
  502. { --------------------------------------------------------------------
  503. TImagesDeleteAllResponse
  504. --------------------------------------------------------------------}
  505. TImagesDeleteAllResponse = Class(TGoogleBaseObject)
  506. Private
  507. Fdeleted : TImagesDeleteAllResponseTypedeletedArray;
  508. Protected
  509. //Property setters
  510. Procedure Setdeleted(AIndex : Integer; const AValue : TImagesDeleteAllResponseTypedeletedArray); virtual;
  511. //2.6.4. bug workaround
  512. {$IFDEF VER2_6}
  513. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  514. {$ENDIF VER2_6}
  515. Public
  516. Published
  517. Property deleted : TImagesDeleteAllResponseTypedeletedArray Index 0 Read Fdeleted Write Setdeleted;
  518. end;
  519. TImagesDeleteAllResponseClass = Class of TImagesDeleteAllResponse;
  520. { --------------------------------------------------------------------
  521. TImagesListResponse
  522. --------------------------------------------------------------------}
  523. TImagesListResponse = Class(TGoogleBaseObject)
  524. Private
  525. Fimages : TImagesListResponseTypeimagesArray;
  526. Protected
  527. //Property setters
  528. Procedure Setimages(AIndex : Integer; const AValue : TImagesListResponseTypeimagesArray); virtual;
  529. //2.6.4. bug workaround
  530. {$IFDEF VER2_6}
  531. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  532. {$ENDIF VER2_6}
  533. Public
  534. Published
  535. Property images : TImagesListResponseTypeimagesArray Index 0 Read Fimages Write Setimages;
  536. end;
  537. TImagesListResponseClass = Class of TImagesListResponse;
  538. { --------------------------------------------------------------------
  539. TImagesUploadResponse
  540. --------------------------------------------------------------------}
  541. TImagesUploadResponse = Class(TGoogleBaseObject)
  542. Private
  543. Fimage : TImage;
  544. Protected
  545. //Property setters
  546. Procedure Setimage(AIndex : Integer; const AValue : TImage); virtual;
  547. Public
  548. Published
  549. Property image : TImage Index 0 Read Fimage Write Setimage;
  550. end;
  551. TImagesUploadResponseClass = Class of TImagesUploadResponse;
  552. { --------------------------------------------------------------------
  553. TInAppProductTypelistings
  554. --------------------------------------------------------------------}
  555. TInAppProductTypelistings = Class(TGoogleBaseObject)
  556. Private
  557. Protected
  558. //Property setters
  559. Public
  560. Class Function AllowAdditionalProperties : Boolean; override;
  561. Published
  562. end;
  563. TInAppProductTypelistingsClass = Class of TInAppProductTypelistings;
  564. { --------------------------------------------------------------------
  565. TInAppProductTypeprices
  566. --------------------------------------------------------------------}
  567. TInAppProductTypeprices = Class(TGoogleBaseObject)
  568. Private
  569. Protected
  570. //Property setters
  571. Public
  572. Class Function AllowAdditionalProperties : Boolean; override;
  573. Published
  574. end;
  575. TInAppProductTypepricesClass = Class of TInAppProductTypeprices;
  576. { --------------------------------------------------------------------
  577. TInAppProduct
  578. --------------------------------------------------------------------}
  579. TInAppProduct = Class(TGoogleBaseObject)
  580. Private
  581. FdefaultLanguage : String;
  582. FdefaultPrice : TPrice;
  583. Flistings : TInAppProductTypelistings;
  584. FpackageName : String;
  585. Fprices : TInAppProductTypeprices;
  586. FpurchaseType : String;
  587. Fseason : TSeason;
  588. Fsku : String;
  589. Fstatus : String;
  590. FsubscriptionPeriod : String;
  591. FtrialPeriod : String;
  592. Protected
  593. //Property setters
  594. Procedure SetdefaultLanguage(AIndex : Integer; const AValue : String); virtual;
  595. Procedure SetdefaultPrice(AIndex : Integer; const AValue : TPrice); virtual;
  596. Procedure Setlistings(AIndex : Integer; const AValue : TInAppProductTypelistings); virtual;
  597. Procedure SetpackageName(AIndex : Integer; const AValue : String); virtual;
  598. Procedure Setprices(AIndex : Integer; const AValue : TInAppProductTypeprices); virtual;
  599. Procedure SetpurchaseType(AIndex : Integer; const AValue : String); virtual;
  600. Procedure Setseason(AIndex : Integer; const AValue : TSeason); virtual;
  601. Procedure Setsku(AIndex : Integer; const AValue : String); virtual;
  602. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  603. Procedure SetsubscriptionPeriod(AIndex : Integer; const AValue : String); virtual;
  604. Procedure SettrialPeriod(AIndex : Integer; const AValue : String); virtual;
  605. Public
  606. Published
  607. Property defaultLanguage : String Index 0 Read FdefaultLanguage Write SetdefaultLanguage;
  608. Property defaultPrice : TPrice Index 8 Read FdefaultPrice Write SetdefaultPrice;
  609. Property listings : TInAppProductTypelistings Index 16 Read Flistings Write Setlistings;
  610. Property packageName : String Index 24 Read FpackageName Write SetpackageName;
  611. Property prices : TInAppProductTypeprices Index 32 Read Fprices Write Setprices;
  612. Property purchaseType : String Index 40 Read FpurchaseType Write SetpurchaseType;
  613. Property season : TSeason Index 48 Read Fseason Write Setseason;
  614. Property sku : String Index 56 Read Fsku Write Setsku;
  615. Property status : String Index 64 Read Fstatus Write Setstatus;
  616. Property subscriptionPeriod : String Index 72 Read FsubscriptionPeriod Write SetsubscriptionPeriod;
  617. Property trialPeriod : String Index 80 Read FtrialPeriod Write SettrialPeriod;
  618. end;
  619. TInAppProductClass = Class of TInAppProduct;
  620. { --------------------------------------------------------------------
  621. TInAppProductListing
  622. --------------------------------------------------------------------}
  623. TInAppProductListing = Class(TGoogleBaseObject)
  624. Private
  625. Fdescription : String;
  626. Ftitle : String;
  627. Protected
  628. //Property setters
  629. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  630. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  631. Public
  632. Published
  633. Property description : String Index 0 Read Fdescription Write Setdescription;
  634. Property title : String Index 8 Read Ftitle Write Settitle;
  635. end;
  636. TInAppProductListingClass = Class of TInAppProductListing;
  637. { --------------------------------------------------------------------
  638. TInappproductsBatchRequest
  639. --------------------------------------------------------------------}
  640. TInappproductsBatchRequest = Class(TGoogleBaseObject)
  641. Private
  642. Fentrys : TInappproductsBatchRequestTypeentrysArray;
  643. Protected
  644. //Property setters
  645. Procedure Setentrys(AIndex : Integer; const AValue : TInappproductsBatchRequestTypeentrysArray); virtual;
  646. //2.6.4. bug workaround
  647. {$IFDEF VER2_6}
  648. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  649. {$ENDIF VER2_6}
  650. Public
  651. Published
  652. Property entrys : TInappproductsBatchRequestTypeentrysArray Index 0 Read Fentrys Write Setentrys;
  653. end;
  654. TInappproductsBatchRequestClass = Class of TInappproductsBatchRequest;
  655. { --------------------------------------------------------------------
  656. TInappproductsBatchRequestEntry
  657. --------------------------------------------------------------------}
  658. TInappproductsBatchRequestEntry = Class(TGoogleBaseObject)
  659. Private
  660. FbatchId : integer;
  661. Finappproductsinsertrequest : TInappproductsInsertRequest;
  662. Finappproductsupdaterequest : TInappproductsUpdateRequest;
  663. FmethodName : String;
  664. Protected
  665. //Property setters
  666. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  667. Procedure Setinappproductsinsertrequest(AIndex : Integer; const AValue : TInappproductsInsertRequest); virtual;
  668. Procedure Setinappproductsupdaterequest(AIndex : Integer; const AValue : TInappproductsUpdateRequest); virtual;
  669. Procedure SetmethodName(AIndex : Integer; const AValue : String); virtual;
  670. Public
  671. Published
  672. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  673. Property inappproductsinsertrequest : TInappproductsInsertRequest Index 8 Read Finappproductsinsertrequest Write Setinappproductsinsertrequest;
  674. Property inappproductsupdaterequest : TInappproductsUpdateRequest Index 16 Read Finappproductsupdaterequest Write Setinappproductsupdaterequest;
  675. Property methodName : String Index 24 Read FmethodName Write SetmethodName;
  676. end;
  677. TInappproductsBatchRequestEntryClass = Class of TInappproductsBatchRequestEntry;
  678. { --------------------------------------------------------------------
  679. TInappproductsBatchResponse
  680. --------------------------------------------------------------------}
  681. TInappproductsBatchResponse = Class(TGoogleBaseObject)
  682. Private
  683. Fentrys : TInappproductsBatchResponseTypeentrysArray;
  684. Fkind : String;
  685. Protected
  686. //Property setters
  687. Procedure Setentrys(AIndex : Integer; const AValue : TInappproductsBatchResponseTypeentrysArray); virtual;
  688. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  689. //2.6.4. bug workaround
  690. {$IFDEF VER2_6}
  691. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  692. {$ENDIF VER2_6}
  693. Public
  694. Published
  695. Property entrys : TInappproductsBatchResponseTypeentrysArray Index 0 Read Fentrys Write Setentrys;
  696. Property kind : String Index 8 Read Fkind Write Setkind;
  697. end;
  698. TInappproductsBatchResponseClass = Class of TInappproductsBatchResponse;
  699. { --------------------------------------------------------------------
  700. TInappproductsBatchResponseEntry
  701. --------------------------------------------------------------------}
  702. TInappproductsBatchResponseEntry = Class(TGoogleBaseObject)
  703. Private
  704. FbatchId : integer;
  705. Finappproductsinsertresponse : TInappproductsInsertResponse;
  706. Finappproductsupdateresponse : TInappproductsUpdateResponse;
  707. Protected
  708. //Property setters
  709. Procedure SetbatchId(AIndex : Integer; const AValue : integer); virtual;
  710. Procedure Setinappproductsinsertresponse(AIndex : Integer; const AValue : TInappproductsInsertResponse); virtual;
  711. Procedure Setinappproductsupdateresponse(AIndex : Integer; const AValue : TInappproductsUpdateResponse); virtual;
  712. Public
  713. Published
  714. Property batchId : integer Index 0 Read FbatchId Write SetbatchId;
  715. Property inappproductsinsertresponse : TInappproductsInsertResponse Index 8 Read Finappproductsinsertresponse Write Setinappproductsinsertresponse;
  716. Property inappproductsupdateresponse : TInappproductsUpdateResponse Index 16 Read Finappproductsupdateresponse Write Setinappproductsupdateresponse;
  717. end;
  718. TInappproductsBatchResponseEntryClass = Class of TInappproductsBatchResponseEntry;
  719. { --------------------------------------------------------------------
  720. TInappproductsInsertRequest
  721. --------------------------------------------------------------------}
  722. TInappproductsInsertRequest = Class(TGoogleBaseObject)
  723. Private
  724. Finappproduct : TInAppProduct;
  725. Protected
  726. //Property setters
  727. Procedure Setinappproduct(AIndex : Integer; const AValue : TInAppProduct); virtual;
  728. Public
  729. Published
  730. Property inappproduct : TInAppProduct Index 0 Read Finappproduct Write Setinappproduct;
  731. end;
  732. TInappproductsInsertRequestClass = Class of TInappproductsInsertRequest;
  733. { --------------------------------------------------------------------
  734. TInappproductsInsertResponse
  735. --------------------------------------------------------------------}
  736. TInappproductsInsertResponse = Class(TGoogleBaseObject)
  737. Private
  738. Finappproduct : TInAppProduct;
  739. Protected
  740. //Property setters
  741. Procedure Setinappproduct(AIndex : Integer; const AValue : TInAppProduct); virtual;
  742. Public
  743. Published
  744. Property inappproduct : TInAppProduct Index 0 Read Finappproduct Write Setinappproduct;
  745. end;
  746. TInappproductsInsertResponseClass = Class of TInappproductsInsertResponse;
  747. { --------------------------------------------------------------------
  748. TInappproductsListResponse
  749. --------------------------------------------------------------------}
  750. TInappproductsListResponse = Class(TGoogleBaseObject)
  751. Private
  752. Finappproduct : TInappproductsListResponseTypeinappproductArray;
  753. Fkind : String;
  754. FpageInfo : TPageInfo;
  755. FtokenPagination : TTokenPagination;
  756. Protected
  757. //Property setters
  758. Procedure Setinappproduct(AIndex : Integer; const AValue : TInappproductsListResponseTypeinappproductArray); virtual;
  759. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  760. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  761. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  762. //2.6.4. bug workaround
  763. {$IFDEF VER2_6}
  764. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  765. {$ENDIF VER2_6}
  766. Public
  767. Published
  768. Property inappproduct : TInappproductsListResponseTypeinappproductArray Index 0 Read Finappproduct Write Setinappproduct;
  769. Property kind : String Index 8 Read Fkind Write Setkind;
  770. Property pageInfo : TPageInfo Index 16 Read FpageInfo Write SetpageInfo;
  771. Property tokenPagination : TTokenPagination Index 24 Read FtokenPagination Write SettokenPagination;
  772. end;
  773. TInappproductsListResponseClass = Class of TInappproductsListResponse;
  774. { --------------------------------------------------------------------
  775. TInappproductsUpdateRequest
  776. --------------------------------------------------------------------}
  777. TInappproductsUpdateRequest = Class(TGoogleBaseObject)
  778. Private
  779. Finappproduct : TInAppProduct;
  780. Protected
  781. //Property setters
  782. Procedure Setinappproduct(AIndex : Integer; const AValue : TInAppProduct); virtual;
  783. Public
  784. Published
  785. Property inappproduct : TInAppProduct Index 0 Read Finappproduct Write Setinappproduct;
  786. end;
  787. TInappproductsUpdateRequestClass = Class of TInappproductsUpdateRequest;
  788. { --------------------------------------------------------------------
  789. TInappproductsUpdateResponse
  790. --------------------------------------------------------------------}
  791. TInappproductsUpdateResponse = Class(TGoogleBaseObject)
  792. Private
  793. Finappproduct : TInAppProduct;
  794. Protected
  795. //Property setters
  796. Procedure Setinappproduct(AIndex : Integer; const AValue : TInAppProduct); virtual;
  797. Public
  798. Published
  799. Property inappproduct : TInAppProduct Index 0 Read Finappproduct Write Setinappproduct;
  800. end;
  801. TInappproductsUpdateResponseClass = Class of TInappproductsUpdateResponse;
  802. { --------------------------------------------------------------------
  803. TListing
  804. --------------------------------------------------------------------}
  805. TListing = Class(TGoogleBaseObject)
  806. Private
  807. FfullDescription : String;
  808. Flanguage : String;
  809. FshortDescription : String;
  810. Ftitle : String;
  811. Fvideo : String;
  812. Protected
  813. //Property setters
  814. Procedure SetfullDescription(AIndex : Integer; const AValue : String); virtual;
  815. Procedure Setlanguage(AIndex : Integer; const AValue : String); virtual;
  816. Procedure SetshortDescription(AIndex : Integer; const AValue : String); virtual;
  817. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  818. Procedure Setvideo(AIndex : Integer; const AValue : String); virtual;
  819. Public
  820. Published
  821. Property fullDescription : String Index 0 Read FfullDescription Write SetfullDescription;
  822. Property language : String Index 8 Read Flanguage Write Setlanguage;
  823. Property shortDescription : String Index 16 Read FshortDescription Write SetshortDescription;
  824. Property title : String Index 24 Read Ftitle Write Settitle;
  825. Property video : String Index 32 Read Fvideo Write Setvideo;
  826. end;
  827. TListingClass = Class of TListing;
  828. { --------------------------------------------------------------------
  829. TListingsListResponse
  830. --------------------------------------------------------------------}
  831. TListingsListResponse = Class(TGoogleBaseObject)
  832. Private
  833. Fkind : String;
  834. Flistings : TListingsListResponseTypelistingsArray;
  835. Protected
  836. //Property setters
  837. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  838. Procedure Setlistings(AIndex : Integer; const AValue : TListingsListResponseTypelistingsArray); virtual;
  839. //2.6.4. bug workaround
  840. {$IFDEF VER2_6}
  841. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  842. {$ENDIF VER2_6}
  843. Public
  844. Published
  845. Property kind : String Index 0 Read Fkind Write Setkind;
  846. Property listings : TListingsListResponseTypelistingsArray Index 8 Read Flistings Write Setlistings;
  847. end;
  848. TListingsListResponseClass = Class of TListingsListResponse;
  849. { --------------------------------------------------------------------
  850. TMonthDay
  851. --------------------------------------------------------------------}
  852. TMonthDay = Class(TGoogleBaseObject)
  853. Private
  854. Fday : integer;
  855. Fmonth : integer;
  856. Protected
  857. //Property setters
  858. Procedure Setday(AIndex : Integer; const AValue : integer); virtual;
  859. Procedure Setmonth(AIndex : Integer; const AValue : integer); virtual;
  860. Public
  861. Published
  862. Property day : integer Index 0 Read Fday Write Setday;
  863. Property month : integer Index 8 Read Fmonth Write Setmonth;
  864. end;
  865. TMonthDayClass = Class of TMonthDay;
  866. { --------------------------------------------------------------------
  867. TPageInfo
  868. --------------------------------------------------------------------}
  869. TPageInfo = Class(TGoogleBaseObject)
  870. Private
  871. FresultPerPage : integer;
  872. FstartIndex : integer;
  873. FtotalResults : integer;
  874. Protected
  875. //Property setters
  876. Procedure SetresultPerPage(AIndex : Integer; const AValue : integer); virtual;
  877. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  878. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  879. Public
  880. Published
  881. Property resultPerPage : integer Index 0 Read FresultPerPage Write SetresultPerPage;
  882. Property startIndex : integer Index 8 Read FstartIndex Write SetstartIndex;
  883. Property totalResults : integer Index 16 Read FtotalResults Write SettotalResults;
  884. end;
  885. TPageInfoClass = Class of TPageInfo;
  886. { --------------------------------------------------------------------
  887. TPrice
  888. --------------------------------------------------------------------}
  889. TPrice = Class(TGoogleBaseObject)
  890. Private
  891. Fcurrency : String;
  892. FpriceMicros : String;
  893. Protected
  894. //Property setters
  895. Procedure Setcurrency(AIndex : Integer; const AValue : String); virtual;
  896. Procedure SetpriceMicros(AIndex : Integer; const AValue : String); virtual;
  897. Public
  898. Published
  899. Property currency : String Index 0 Read Fcurrency Write Setcurrency;
  900. Property priceMicros : String Index 8 Read FpriceMicros Write SetpriceMicros;
  901. end;
  902. TPriceClass = Class of TPrice;
  903. { --------------------------------------------------------------------
  904. TProductPurchase
  905. --------------------------------------------------------------------}
  906. TProductPurchase = Class(TGoogleBaseObject)
  907. Private
  908. FconsumptionState : integer;
  909. FdeveloperPayload : String;
  910. Fkind : String;
  911. FpurchaseState : integer;
  912. FpurchaseTimeMillis : String;
  913. Protected
  914. //Property setters
  915. Procedure SetconsumptionState(AIndex : Integer; const AValue : integer); virtual;
  916. Procedure SetdeveloperPayload(AIndex : Integer; const AValue : String); virtual;
  917. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  918. Procedure SetpurchaseState(AIndex : Integer; const AValue : integer); virtual;
  919. Procedure SetpurchaseTimeMillis(AIndex : Integer; const AValue : String); virtual;
  920. Public
  921. Published
  922. Property consumptionState : integer Index 0 Read FconsumptionState Write SetconsumptionState;
  923. Property developerPayload : String Index 8 Read FdeveloperPayload Write SetdeveloperPayload;
  924. Property kind : String Index 16 Read Fkind Write Setkind;
  925. Property purchaseState : integer Index 24 Read FpurchaseState Write SetpurchaseState;
  926. Property purchaseTimeMillis : String Index 32 Read FpurchaseTimeMillis Write SetpurchaseTimeMillis;
  927. end;
  928. TProductPurchaseClass = Class of TProductPurchase;
  929. { --------------------------------------------------------------------
  930. TProrate
  931. --------------------------------------------------------------------}
  932. TProrate = Class(TGoogleBaseObject)
  933. Private
  934. FdefaultPrice : TPrice;
  935. Fstart : TMonthDay;
  936. Protected
  937. //Property setters
  938. Procedure SetdefaultPrice(AIndex : Integer; const AValue : TPrice); virtual;
  939. Procedure Setstart(AIndex : Integer; const AValue : TMonthDay); virtual;
  940. Public
  941. Published
  942. Property defaultPrice : TPrice Index 0 Read FdefaultPrice Write SetdefaultPrice;
  943. Property start : TMonthDay Index 8 Read Fstart Write Setstart;
  944. end;
  945. TProrateClass = Class of TProrate;
  946. { --------------------------------------------------------------------
  947. TReview
  948. --------------------------------------------------------------------}
  949. TReview = Class(TGoogleBaseObject)
  950. Private
  951. FauthorName : String;
  952. Fcomments : TReviewTypecommentsArray;
  953. FreviewId : String;
  954. Protected
  955. //Property setters
  956. Procedure SetauthorName(AIndex : Integer; const AValue : String); virtual;
  957. Procedure Setcomments(AIndex : Integer; const AValue : TReviewTypecommentsArray); virtual;
  958. Procedure SetreviewId(AIndex : Integer; const AValue : String); virtual;
  959. //2.6.4. bug workaround
  960. {$IFDEF VER2_6}
  961. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  962. {$ENDIF VER2_6}
  963. Public
  964. Published
  965. Property authorName : String Index 0 Read FauthorName Write SetauthorName;
  966. Property comments : TReviewTypecommentsArray Index 8 Read Fcomments Write Setcomments;
  967. Property reviewId : String Index 16 Read FreviewId Write SetreviewId;
  968. end;
  969. TReviewClass = Class of TReview;
  970. { --------------------------------------------------------------------
  971. TReviewReplyResult
  972. --------------------------------------------------------------------}
  973. TReviewReplyResult = Class(TGoogleBaseObject)
  974. Private
  975. FlastEdited : TTimestamp;
  976. FreplyText : String;
  977. Protected
  978. //Property setters
  979. Procedure SetlastEdited(AIndex : Integer; const AValue : TTimestamp); virtual;
  980. Procedure SetreplyText(AIndex : Integer; const AValue : String); virtual;
  981. Public
  982. Published
  983. Property lastEdited : TTimestamp Index 0 Read FlastEdited Write SetlastEdited;
  984. Property replyText : String Index 8 Read FreplyText Write SetreplyText;
  985. end;
  986. TReviewReplyResultClass = Class of TReviewReplyResult;
  987. { --------------------------------------------------------------------
  988. TReviewsListResponse
  989. --------------------------------------------------------------------}
  990. TReviewsListResponse = Class(TGoogleBaseObject)
  991. Private
  992. FpageInfo : TPageInfo;
  993. Freviews : TReviewsListResponseTypereviewsArray;
  994. FtokenPagination : TTokenPagination;
  995. Protected
  996. //Property setters
  997. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  998. Procedure Setreviews(AIndex : Integer; const AValue : TReviewsListResponseTypereviewsArray); virtual;
  999. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  1000. //2.6.4. bug workaround
  1001. {$IFDEF VER2_6}
  1002. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1003. {$ENDIF VER2_6}
  1004. Public
  1005. Published
  1006. Property pageInfo : TPageInfo Index 0 Read FpageInfo Write SetpageInfo;
  1007. Property reviews : TReviewsListResponseTypereviewsArray Index 8 Read Freviews Write Setreviews;
  1008. Property tokenPagination : TTokenPagination Index 16 Read FtokenPagination Write SettokenPagination;
  1009. end;
  1010. TReviewsListResponseClass = Class of TReviewsListResponse;
  1011. { --------------------------------------------------------------------
  1012. TReviewsReplyRequest
  1013. --------------------------------------------------------------------}
  1014. TReviewsReplyRequest = Class(TGoogleBaseObject)
  1015. Private
  1016. FreplyText : String;
  1017. Protected
  1018. //Property setters
  1019. Procedure SetreplyText(AIndex : Integer; const AValue : String); virtual;
  1020. Public
  1021. Published
  1022. Property replyText : String Index 0 Read FreplyText Write SetreplyText;
  1023. end;
  1024. TReviewsReplyRequestClass = Class of TReviewsReplyRequest;
  1025. { --------------------------------------------------------------------
  1026. TReviewsReplyResponse
  1027. --------------------------------------------------------------------}
  1028. TReviewsReplyResponse = Class(TGoogleBaseObject)
  1029. Private
  1030. Fresult : TReviewReplyResult;
  1031. Protected
  1032. //Property setters
  1033. Procedure Setresult(AIndex : Integer; const AValue : TReviewReplyResult); virtual;
  1034. Public
  1035. Published
  1036. Property result : TReviewReplyResult Index 0 Read Fresult Write Setresult;
  1037. end;
  1038. TReviewsReplyResponseClass = Class of TReviewsReplyResponse;
  1039. { --------------------------------------------------------------------
  1040. TSeason
  1041. --------------------------------------------------------------------}
  1042. TSeason = Class(TGoogleBaseObject)
  1043. Private
  1044. F_end : TMonthDay;
  1045. Fprorations : TSeasonTypeprorationsArray;
  1046. Fstart : TMonthDay;
  1047. Protected
  1048. Class Function ExportPropertyName(Const AName : String) : string; override;
  1049. //Property setters
  1050. Procedure Set_end(AIndex : Integer; const AValue : TMonthDay); virtual;
  1051. Procedure Setprorations(AIndex : Integer; const AValue : TSeasonTypeprorationsArray); virtual;
  1052. Procedure Setstart(AIndex : Integer; const AValue : TMonthDay); virtual;
  1053. //2.6.4. bug workaround
  1054. {$IFDEF VER2_6}
  1055. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1056. {$ENDIF VER2_6}
  1057. Public
  1058. Published
  1059. Property _end : TMonthDay Index 0 Read F_end Write Set_end;
  1060. Property prorations : TSeasonTypeprorationsArray Index 8 Read Fprorations Write Setprorations;
  1061. Property start : TMonthDay Index 16 Read Fstart Write Setstart;
  1062. end;
  1063. TSeasonClass = Class of TSeason;
  1064. { --------------------------------------------------------------------
  1065. TSubscriptionDeferralInfo
  1066. --------------------------------------------------------------------}
  1067. TSubscriptionDeferralInfo = Class(TGoogleBaseObject)
  1068. Private
  1069. FdesiredExpiryTimeMillis : String;
  1070. FexpectedExpiryTimeMillis : String;
  1071. Protected
  1072. //Property setters
  1073. Procedure SetdesiredExpiryTimeMillis(AIndex : Integer; const AValue : String); virtual;
  1074. Procedure SetexpectedExpiryTimeMillis(AIndex : Integer; const AValue : String); virtual;
  1075. Public
  1076. Published
  1077. Property desiredExpiryTimeMillis : String Index 0 Read FdesiredExpiryTimeMillis Write SetdesiredExpiryTimeMillis;
  1078. Property expectedExpiryTimeMillis : String Index 8 Read FexpectedExpiryTimeMillis Write SetexpectedExpiryTimeMillis;
  1079. end;
  1080. TSubscriptionDeferralInfoClass = Class of TSubscriptionDeferralInfo;
  1081. { --------------------------------------------------------------------
  1082. TSubscriptionPurchase
  1083. --------------------------------------------------------------------}
  1084. TSubscriptionPurchase = Class(TGoogleBaseObject)
  1085. Private
  1086. FautoRenewing : boolean;
  1087. FcancelReason : integer;
  1088. FcountryCode : String;
  1089. FdeveloperPayload : String;
  1090. FexpiryTimeMillis : String;
  1091. Fkind : String;
  1092. FpaymentState : integer;
  1093. FpriceAmountMicros : String;
  1094. FpriceCurrencyCode : String;
  1095. FstartTimeMillis : String;
  1096. Protected
  1097. //Property setters
  1098. Procedure SetautoRenewing(AIndex : Integer; const AValue : boolean); virtual;
  1099. Procedure SetcancelReason(AIndex : Integer; const AValue : integer); virtual;
  1100. Procedure SetcountryCode(AIndex : Integer; const AValue : String); virtual;
  1101. Procedure SetdeveloperPayload(AIndex : Integer; const AValue : String); virtual;
  1102. Procedure SetexpiryTimeMillis(AIndex : Integer; const AValue : String); virtual;
  1103. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1104. Procedure SetpaymentState(AIndex : Integer; const AValue : integer); virtual;
  1105. Procedure SetpriceAmountMicros(AIndex : Integer; const AValue : String); virtual;
  1106. Procedure SetpriceCurrencyCode(AIndex : Integer; const AValue : String); virtual;
  1107. Procedure SetstartTimeMillis(AIndex : Integer; const AValue : String); virtual;
  1108. Public
  1109. Published
  1110. Property autoRenewing : boolean Index 0 Read FautoRenewing Write SetautoRenewing;
  1111. Property cancelReason : integer Index 8 Read FcancelReason Write SetcancelReason;
  1112. Property countryCode : String Index 16 Read FcountryCode Write SetcountryCode;
  1113. Property developerPayload : String Index 24 Read FdeveloperPayload Write SetdeveloperPayload;
  1114. Property expiryTimeMillis : String Index 32 Read FexpiryTimeMillis Write SetexpiryTimeMillis;
  1115. Property kind : String Index 40 Read Fkind Write Setkind;
  1116. Property paymentState : integer Index 48 Read FpaymentState Write SetpaymentState;
  1117. Property priceAmountMicros : String Index 56 Read FpriceAmountMicros Write SetpriceAmountMicros;
  1118. Property priceCurrencyCode : String Index 64 Read FpriceCurrencyCode Write SetpriceCurrencyCode;
  1119. Property startTimeMillis : String Index 72 Read FstartTimeMillis Write SetstartTimeMillis;
  1120. end;
  1121. TSubscriptionPurchaseClass = Class of TSubscriptionPurchase;
  1122. { --------------------------------------------------------------------
  1123. TSubscriptionPurchasesDeferRequest
  1124. --------------------------------------------------------------------}
  1125. TSubscriptionPurchasesDeferRequest = Class(TGoogleBaseObject)
  1126. Private
  1127. FdeferralInfo : TSubscriptionDeferralInfo;
  1128. Protected
  1129. //Property setters
  1130. Procedure SetdeferralInfo(AIndex : Integer; const AValue : TSubscriptionDeferralInfo); virtual;
  1131. Public
  1132. Published
  1133. Property deferralInfo : TSubscriptionDeferralInfo Index 0 Read FdeferralInfo Write SetdeferralInfo;
  1134. end;
  1135. TSubscriptionPurchasesDeferRequestClass = Class of TSubscriptionPurchasesDeferRequest;
  1136. { --------------------------------------------------------------------
  1137. TSubscriptionPurchasesDeferResponse
  1138. --------------------------------------------------------------------}
  1139. TSubscriptionPurchasesDeferResponse = Class(TGoogleBaseObject)
  1140. Private
  1141. FnewExpiryTimeMillis : String;
  1142. Protected
  1143. //Property setters
  1144. Procedure SetnewExpiryTimeMillis(AIndex : Integer; const AValue : String); virtual;
  1145. Public
  1146. Published
  1147. Property newExpiryTimeMillis : String Index 0 Read FnewExpiryTimeMillis Write SetnewExpiryTimeMillis;
  1148. end;
  1149. TSubscriptionPurchasesDeferResponseClass = Class of TSubscriptionPurchasesDeferResponse;
  1150. { --------------------------------------------------------------------
  1151. TTesters
  1152. --------------------------------------------------------------------}
  1153. TTesters = Class(TGoogleBaseObject)
  1154. Private
  1155. FgoogleGroups : TStringArray;
  1156. FgooglePlusCommunities : TStringArray;
  1157. Protected
  1158. //Property setters
  1159. Procedure SetgoogleGroups(AIndex : Integer; const AValue : TStringArray); virtual;
  1160. Procedure SetgooglePlusCommunities(AIndex : Integer; const AValue : TStringArray); virtual;
  1161. //2.6.4. bug workaround
  1162. {$IFDEF VER2_6}
  1163. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1164. {$ENDIF VER2_6}
  1165. Public
  1166. Published
  1167. Property googleGroups : TStringArray Index 0 Read FgoogleGroups Write SetgoogleGroups;
  1168. Property googlePlusCommunities : TStringArray Index 8 Read FgooglePlusCommunities Write SetgooglePlusCommunities;
  1169. end;
  1170. TTestersClass = Class of TTesters;
  1171. { --------------------------------------------------------------------
  1172. TTimestamp
  1173. --------------------------------------------------------------------}
  1174. TTimestamp = Class(TGoogleBaseObject)
  1175. Private
  1176. Fnanos : integer;
  1177. Fseconds : String;
  1178. Protected
  1179. //Property setters
  1180. Procedure Setnanos(AIndex : Integer; const AValue : integer); virtual;
  1181. Procedure Setseconds(AIndex : Integer; const AValue : String); virtual;
  1182. Public
  1183. Published
  1184. Property nanos : integer Index 0 Read Fnanos Write Setnanos;
  1185. Property seconds : String Index 8 Read Fseconds Write Setseconds;
  1186. end;
  1187. TTimestampClass = Class of TTimestamp;
  1188. { --------------------------------------------------------------------
  1189. TTokenPagination
  1190. --------------------------------------------------------------------}
  1191. TTokenPagination = Class(TGoogleBaseObject)
  1192. Private
  1193. FnextPageToken : String;
  1194. FpreviousPageToken : String;
  1195. Protected
  1196. //Property setters
  1197. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1198. Procedure SetpreviousPageToken(AIndex : Integer; const AValue : String); virtual;
  1199. Public
  1200. Published
  1201. Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
  1202. Property previousPageToken : String Index 8 Read FpreviousPageToken Write SetpreviousPageToken;
  1203. end;
  1204. TTokenPaginationClass = Class of TTokenPagination;
  1205. { --------------------------------------------------------------------
  1206. TTrack
  1207. --------------------------------------------------------------------}
  1208. TTrack = Class(TGoogleBaseObject)
  1209. Private
  1210. Ftrack : String;
  1211. FuserFraction : double;
  1212. FversionCodes : TintegerArray;
  1213. Protected
  1214. //Property setters
  1215. Procedure Settrack(AIndex : Integer; const AValue : String); virtual;
  1216. Procedure SetuserFraction(AIndex : Integer; const AValue : double); virtual;
  1217. Procedure SetversionCodes(AIndex : Integer; const AValue : TintegerArray); virtual;
  1218. //2.6.4. bug workaround
  1219. {$IFDEF VER2_6}
  1220. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1221. {$ENDIF VER2_6}
  1222. Public
  1223. Published
  1224. Property track : String Index 0 Read Ftrack Write Settrack;
  1225. Property userFraction : double Index 8 Read FuserFraction Write SetuserFraction;
  1226. Property versionCodes : TintegerArray Index 16 Read FversionCodes Write SetversionCodes;
  1227. end;
  1228. TTrackClass = Class of TTrack;
  1229. { --------------------------------------------------------------------
  1230. TTracksListResponse
  1231. --------------------------------------------------------------------}
  1232. TTracksListResponse = Class(TGoogleBaseObject)
  1233. Private
  1234. Fkind : String;
  1235. Ftracks : TTracksListResponseTypetracksArray;
  1236. Protected
  1237. //Property setters
  1238. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1239. Procedure Settracks(AIndex : Integer; const AValue : TTracksListResponseTypetracksArray); virtual;
  1240. //2.6.4. bug workaround
  1241. {$IFDEF VER2_6}
  1242. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1243. {$ENDIF VER2_6}
  1244. Public
  1245. Published
  1246. Property kind : String Index 0 Read Fkind Write Setkind;
  1247. Property tracks : TTracksListResponseTypetracksArray Index 8 Read Ftracks Write Settracks;
  1248. end;
  1249. TTracksListResponseClass = Class of TTracksListResponse;
  1250. { --------------------------------------------------------------------
  1251. TUserComment
  1252. --------------------------------------------------------------------}
  1253. TUserComment = Class(TGoogleBaseObject)
  1254. Private
  1255. FandroidOsVersion : integer;
  1256. FappVersionCode : integer;
  1257. FappVersionName : String;
  1258. Fdevice : String;
  1259. FlastModified : TTimestamp;
  1260. FreviewerLanguage : String;
  1261. FstarRating : integer;
  1262. Ftext : String;
  1263. Protected
  1264. //Property setters
  1265. Procedure SetandroidOsVersion(AIndex : Integer; const AValue : integer); virtual;
  1266. Procedure SetappVersionCode(AIndex : Integer; const AValue : integer); virtual;
  1267. Procedure SetappVersionName(AIndex : Integer; const AValue : String); virtual;
  1268. Procedure Setdevice(AIndex : Integer; const AValue : String); virtual;
  1269. Procedure SetlastModified(AIndex : Integer; const AValue : TTimestamp); virtual;
  1270. Procedure SetreviewerLanguage(AIndex : Integer; const AValue : String); virtual;
  1271. Procedure SetstarRating(AIndex : Integer; const AValue : integer); virtual;
  1272. Procedure Settext(AIndex : Integer; const AValue : String); virtual;
  1273. Public
  1274. Published
  1275. Property androidOsVersion : integer Index 0 Read FandroidOsVersion Write SetandroidOsVersion;
  1276. Property appVersionCode : integer Index 8 Read FappVersionCode Write SetappVersionCode;
  1277. Property appVersionName : String Index 16 Read FappVersionName Write SetappVersionName;
  1278. Property device : String Index 24 Read Fdevice Write Setdevice;
  1279. Property lastModified : TTimestamp Index 32 Read FlastModified Write SetlastModified;
  1280. Property reviewerLanguage : String Index 40 Read FreviewerLanguage Write SetreviewerLanguage;
  1281. Property starRating : integer Index 48 Read FstarRating Write SetstarRating;
  1282. Property text : String Index 56 Read Ftext Write Settext;
  1283. end;
  1284. TUserCommentClass = Class of TUserComment;
  1285. { --------------------------------------------------------------------
  1286. TEditsApklistingsResource
  1287. --------------------------------------------------------------------}
  1288. TEditsApklistingsResource = Class(TGoogleResource)
  1289. Public
  1290. Class Function ResourceName : String; override;
  1291. Class Function DefaultAPI : TGoogleAPIClass; override;
  1292. Procedure Delete(apkVersionCode: integer; editId: string; language: string; packageName: string);
  1293. Procedure Deleteall(apkVersionCode: integer; editId: string; packageName: string);
  1294. Function Get(apkVersionCode: integer; editId: string; language: string; packageName: string) : TApkListing;
  1295. Function List(apkVersionCode: integer; editId: string; packageName: string) : TApkListingsListResponse;
  1296. Function Patch(apkVersionCode: integer; editId: string; language: string; packageName: string; aApkListing : TApkListing) : TApkListing;
  1297. Function Update(apkVersionCode: integer; editId: string; language: string; packageName: string; aApkListing : TApkListing) : TApkListing;
  1298. end;
  1299. { --------------------------------------------------------------------
  1300. TEditsApksResource
  1301. --------------------------------------------------------------------}
  1302. TEditsApksResource = Class(TGoogleResource)
  1303. Public
  1304. Class Function ResourceName : String; override;
  1305. Class Function DefaultAPI : TGoogleAPIClass; override;
  1306. Function Addexternallyhosted(editId: string; packageName: string; aApksAddExternallyHostedRequest : TApksAddExternallyHostedRequest) : TApksAddExternallyHostedResponse;
  1307. Function List(editId: string; packageName: string) : TApksListResponse;
  1308. Function Upload(editId: string; packageName: string) : TApk;
  1309. end;
  1310. { --------------------------------------------------------------------
  1311. TEditsDetailsResource
  1312. --------------------------------------------------------------------}
  1313. TEditsDetailsResource = Class(TGoogleResource)
  1314. Public
  1315. Class Function ResourceName : String; override;
  1316. Class Function DefaultAPI : TGoogleAPIClass; override;
  1317. Function Get(editId: string; packageName: string) : TAppDetails;
  1318. Function Patch(editId: string; packageName: string; aAppDetails : TAppDetails) : TAppDetails;
  1319. Function Update(editId: string; packageName: string; aAppDetails : TAppDetails) : TAppDetails;
  1320. end;
  1321. { --------------------------------------------------------------------
  1322. TEditsExpansionfilesResource
  1323. --------------------------------------------------------------------}
  1324. TEditsExpansionfilesResource = Class(TGoogleResource)
  1325. Public
  1326. Class Function ResourceName : String; override;
  1327. Class Function DefaultAPI : TGoogleAPIClass; override;
  1328. Function Get(apkVersionCode: integer; editId: string; expansionFileType: string; packageName: string) : TExpansionFile;
  1329. Function Patch(apkVersionCode: integer; editId: string; expansionFileType: string; packageName: string; aExpansionFile : TExpansionFile) : TExpansionFile;
  1330. Function Update(apkVersionCode: integer; editId: string; expansionFileType: string; packageName: string; aExpansionFile : TExpansionFile) : TExpansionFile;
  1331. Function Upload(apkVersionCode: integer; editId: string; expansionFileType: string; packageName: string) : TExpansionFilesUploadResponse;
  1332. end;
  1333. { --------------------------------------------------------------------
  1334. TEditsImagesResource
  1335. --------------------------------------------------------------------}
  1336. TEditsImagesResource = Class(TGoogleResource)
  1337. Public
  1338. Class Function ResourceName : String; override;
  1339. Class Function DefaultAPI : TGoogleAPIClass; override;
  1340. Procedure Delete(editId: string; imageId: string; imageType: string; language: string; packageName: string);
  1341. Function Deleteall(editId: string; imageType: string; language: string; packageName: string) : TImagesDeleteAllResponse;
  1342. Function List(editId: string; imageType: string; language: string; packageName: string) : TImagesListResponse;
  1343. Function Upload(editId: string; imageType: string; language: string; packageName: string) : TImagesUploadResponse;
  1344. end;
  1345. { --------------------------------------------------------------------
  1346. TEditsListingsResource
  1347. --------------------------------------------------------------------}
  1348. TEditsListingsResource = Class(TGoogleResource)
  1349. Public
  1350. Class Function ResourceName : String; override;
  1351. Class Function DefaultAPI : TGoogleAPIClass; override;
  1352. Procedure Delete(editId: string; language: string; packageName: string);
  1353. Procedure Deleteall(editId: string; packageName: string);
  1354. Function Get(editId: string; language: string; packageName: string) : TListing;
  1355. Function List(editId: string; packageName: string) : TListingsListResponse;
  1356. Function Patch(editId: string; language: string; packageName: string; aListing : TListing) : TListing;
  1357. Function Update(editId: string; language: string; packageName: string; aListing : TListing) : TListing;
  1358. end;
  1359. { --------------------------------------------------------------------
  1360. TEditsTestersResource
  1361. --------------------------------------------------------------------}
  1362. TEditsTestersResource = Class(TGoogleResource)
  1363. Public
  1364. Class Function ResourceName : String; override;
  1365. Class Function DefaultAPI : TGoogleAPIClass; override;
  1366. Function Get(editId: string; packageName: string; track: string) : TTesters;
  1367. Function Patch(editId: string; packageName: string; track: string; aTesters : TTesters) : TTesters;
  1368. Function Update(editId: string; packageName: string; track: string; aTesters : TTesters) : TTesters;
  1369. end;
  1370. { --------------------------------------------------------------------
  1371. TEditsTracksResource
  1372. --------------------------------------------------------------------}
  1373. TEditsTracksResource = Class(TGoogleResource)
  1374. Public
  1375. Class Function ResourceName : String; override;
  1376. Class Function DefaultAPI : TGoogleAPIClass; override;
  1377. Function Get(editId: string; packageName: string; track: string) : TTrack;
  1378. Function List(editId: string; packageName: string) : TTracksListResponse;
  1379. Function Patch(editId: string; packageName: string; track: string; aTrack : TTrack) : TTrack;
  1380. Function Update(editId: string; packageName: string; track: string; aTrack : TTrack) : TTrack;
  1381. end;
  1382. { --------------------------------------------------------------------
  1383. TEditsResource
  1384. --------------------------------------------------------------------}
  1385. TEditsResource = Class(TGoogleResource)
  1386. Private
  1387. FApklistingsInstance : TEditsApklistingsResource;
  1388. FApksInstance : TEditsApksResource;
  1389. FDetailsInstance : TEditsDetailsResource;
  1390. FExpansionfilesInstance : TEditsExpansionfilesResource;
  1391. FImagesInstance : TEditsImagesResource;
  1392. FListingsInstance : TEditsListingsResource;
  1393. FTestersInstance : TEditsTestersResource;
  1394. FTracksInstance : TEditsTracksResource;
  1395. Function GetApklistingsInstance : TEditsApklistingsResource;virtual;
  1396. Function GetApksInstance : TEditsApksResource;virtual;
  1397. Function GetDetailsInstance : TEditsDetailsResource;virtual;
  1398. Function GetExpansionfilesInstance : TEditsExpansionfilesResource;virtual;
  1399. Function GetImagesInstance : TEditsImagesResource;virtual;
  1400. Function GetListingsInstance : TEditsListingsResource;virtual;
  1401. Function GetTestersInstance : TEditsTestersResource;virtual;
  1402. Function GetTracksInstance : TEditsTracksResource;virtual;
  1403. Public
  1404. Class Function ResourceName : String; override;
  1405. Class Function DefaultAPI : TGoogleAPIClass; override;
  1406. Function Commit(editId: string; packageName: string) : TAppEdit;
  1407. Procedure Delete(editId: string; packageName: string);
  1408. Function Get(editId: string; packageName: string) : TAppEdit;
  1409. Function Insert(packageName: string; aAppEdit : TAppEdit) : TAppEdit;
  1410. Function Validate(editId: string; packageName: string) : TAppEdit;
  1411. Function CreateApklistingsResource(AOwner : TComponent) : TEditsApklistingsResource;virtual;overload;
  1412. Function CreateApklistingsResource : TEditsApklistingsResource;virtual;overload;
  1413. Function CreateApksResource(AOwner : TComponent) : TEditsApksResource;virtual;overload;
  1414. Function CreateApksResource : TEditsApksResource;virtual;overload;
  1415. Function CreateDetailsResource(AOwner : TComponent) : TEditsDetailsResource;virtual;overload;
  1416. Function CreateDetailsResource : TEditsDetailsResource;virtual;overload;
  1417. Function CreateExpansionfilesResource(AOwner : TComponent) : TEditsExpansionfilesResource;virtual;overload;
  1418. Function CreateExpansionfilesResource : TEditsExpansionfilesResource;virtual;overload;
  1419. Function CreateImagesResource(AOwner : TComponent) : TEditsImagesResource;virtual;overload;
  1420. Function CreateImagesResource : TEditsImagesResource;virtual;overload;
  1421. Function CreateListingsResource(AOwner : TComponent) : TEditsListingsResource;virtual;overload;
  1422. Function CreateListingsResource : TEditsListingsResource;virtual;overload;
  1423. Function CreateTestersResource(AOwner : TComponent) : TEditsTestersResource;virtual;overload;
  1424. Function CreateTestersResource : TEditsTestersResource;virtual;overload;
  1425. Function CreateTracksResource(AOwner : TComponent) : TEditsTracksResource;virtual;overload;
  1426. Function CreateTracksResource : TEditsTracksResource;virtual;overload;
  1427. Property ApklistingsResource : TEditsApklistingsResource Read GetApklistingsInstance;
  1428. Property ApksResource : TEditsApksResource Read GetApksInstance;
  1429. Property DetailsResource : TEditsDetailsResource Read GetDetailsInstance;
  1430. Property ExpansionfilesResource : TEditsExpansionfilesResource Read GetExpansionfilesInstance;
  1431. Property ImagesResource : TEditsImagesResource Read GetImagesInstance;
  1432. Property ListingsResource : TEditsListingsResource Read GetListingsInstance;
  1433. Property TestersResource : TEditsTestersResource Read GetTestersInstance;
  1434. Property TracksResource : TEditsTracksResource Read GetTracksInstance;
  1435. end;
  1436. { --------------------------------------------------------------------
  1437. TEntitlementsResource
  1438. --------------------------------------------------------------------}
  1439. //Optional query Options for TEntitlementsResource, method List
  1440. TEntitlementsListOptions = Record
  1441. maxResults : integer;
  1442. productId : String;
  1443. startIndex : integer;
  1444. token : String;
  1445. end;
  1446. TEntitlementsResource = Class(TGoogleResource)
  1447. Public
  1448. Class Function ResourceName : String; override;
  1449. Class Function DefaultAPI : TGoogleAPIClass; override;
  1450. Function List(packageName: string; AQuery : string = '') : TEntitlementsListResponse;
  1451. Function List(packageName: string; AQuery : TEntitlementslistOptions) : TEntitlementsListResponse;
  1452. end;
  1453. { --------------------------------------------------------------------
  1454. TInappproductsResource
  1455. --------------------------------------------------------------------}
  1456. //Optional query Options for TInappproductsResource, method Insert
  1457. TInappproductsInsertOptions = Record
  1458. autoConvertMissingPrices : boolean;
  1459. end;
  1460. //Optional query Options for TInappproductsResource, method List
  1461. TInappproductsListOptions = Record
  1462. maxResults : integer;
  1463. startIndex : integer;
  1464. token : String;
  1465. end;
  1466. //Optional query Options for TInappproductsResource, method Patch
  1467. TInappproductsPatchOptions = Record
  1468. autoConvertMissingPrices : boolean;
  1469. end;
  1470. //Optional query Options for TInappproductsResource, method Update
  1471. TInappproductsUpdateOptions = Record
  1472. autoConvertMissingPrices : boolean;
  1473. end;
  1474. TInappproductsResource = Class(TGoogleResource)
  1475. Public
  1476. Class Function ResourceName : String; override;
  1477. Class Function DefaultAPI : TGoogleAPIClass; override;
  1478. Function Batch(aInappproductsBatchRequest : TInappproductsBatchRequest) : TInappproductsBatchResponse;
  1479. Procedure Delete(packageName: string; sku: string);
  1480. Function Get(packageName: string; sku: string) : TInAppProduct;
  1481. Function Insert(packageName: string; aInAppProduct : TInAppProduct; AQuery : string = '') : TInAppProduct;
  1482. Function Insert(packageName: string; aInAppProduct : TInAppProduct; AQuery : TInappproductsinsertOptions) : TInAppProduct;
  1483. Function List(packageName: string; AQuery : string = '') : TInappproductsListResponse;
  1484. Function List(packageName: string; AQuery : TInappproductslistOptions) : TInappproductsListResponse;
  1485. Function Patch(packageName: string; sku: string; aInAppProduct : TInAppProduct; AQuery : string = '') : TInAppProduct;
  1486. Function Patch(packageName: string; sku: string; aInAppProduct : TInAppProduct; AQuery : TInappproductspatchOptions) : TInAppProduct;
  1487. Function Update(packageName: string; sku: string; aInAppProduct : TInAppProduct; AQuery : string = '') : TInAppProduct;
  1488. Function Update(packageName: string; sku: string; aInAppProduct : TInAppProduct; AQuery : TInappproductsupdateOptions) : TInAppProduct;
  1489. end;
  1490. { --------------------------------------------------------------------
  1491. TPurchasesProductsResource
  1492. --------------------------------------------------------------------}
  1493. TPurchasesProductsResource = Class(TGoogleResource)
  1494. Public
  1495. Class Function ResourceName : String; override;
  1496. Class Function DefaultAPI : TGoogleAPIClass; override;
  1497. Function Get(packageName: string; productId: string; token: string) : TProductPurchase;
  1498. end;
  1499. { --------------------------------------------------------------------
  1500. TPurchasesSubscriptionsResource
  1501. --------------------------------------------------------------------}
  1502. TPurchasesSubscriptionsResource = Class(TGoogleResource)
  1503. Public
  1504. Class Function ResourceName : String; override;
  1505. Class Function DefaultAPI : TGoogleAPIClass; override;
  1506. Procedure Cancel(packageName: string; subscriptionId: string; token: string);
  1507. Function Defer(packageName: string; subscriptionId: string; token: string; aSubscriptionPurchasesDeferRequest : TSubscriptionPurchasesDeferRequest) : TSubscriptionPurchasesDeferResponse;
  1508. Function Get(packageName: string; subscriptionId: string; token: string) : TSubscriptionPurchase;
  1509. Procedure Refund(packageName: string; subscriptionId: string; token: string);
  1510. Procedure Revoke(packageName: string; subscriptionId: string; token: string);
  1511. end;
  1512. { --------------------------------------------------------------------
  1513. TPurchasesResource
  1514. --------------------------------------------------------------------}
  1515. TPurchasesResource = Class(TGoogleResource)
  1516. Private
  1517. FProductsInstance : TPurchasesProductsResource;
  1518. FSubscriptionsInstance : TPurchasesSubscriptionsResource;
  1519. Function GetProductsInstance : TPurchasesProductsResource;virtual;
  1520. Function GetSubscriptionsInstance : TPurchasesSubscriptionsResource;virtual;
  1521. Public
  1522. Class Function ResourceName : String; override;
  1523. Class Function DefaultAPI : TGoogleAPIClass; override;
  1524. Function CreateProductsResource(AOwner : TComponent) : TPurchasesProductsResource;virtual;overload;
  1525. Function CreateProductsResource : TPurchasesProductsResource;virtual;overload;
  1526. Function CreateSubscriptionsResource(AOwner : TComponent) : TPurchasesSubscriptionsResource;virtual;overload;
  1527. Function CreateSubscriptionsResource : TPurchasesSubscriptionsResource;virtual;overload;
  1528. Property ProductsResource : TPurchasesProductsResource Read GetProductsInstance;
  1529. Property SubscriptionsResource : TPurchasesSubscriptionsResource Read GetSubscriptionsInstance;
  1530. end;
  1531. { --------------------------------------------------------------------
  1532. TReviewsResource
  1533. --------------------------------------------------------------------}
  1534. //Optional query Options for TReviewsResource, method List
  1535. TReviewsListOptions = Record
  1536. maxResults : integer;
  1537. startIndex : integer;
  1538. token : String;
  1539. end;
  1540. TReviewsResource = Class(TGoogleResource)
  1541. Public
  1542. Class Function ResourceName : String; override;
  1543. Class Function DefaultAPI : TGoogleAPIClass; override;
  1544. Function Get(packageName: string; reviewId: string) : TReview;
  1545. Function List(packageName: string; AQuery : string = '') : TReviewsListResponse;
  1546. Function List(packageName: string; AQuery : TReviewslistOptions) : TReviewsListResponse;
  1547. Function Reply(packageName: string; reviewId: string; aReviewsReplyRequest : TReviewsReplyRequest) : TReviewsReplyResponse;
  1548. end;
  1549. { --------------------------------------------------------------------
  1550. TAndroidpublisherAPI
  1551. --------------------------------------------------------------------}
  1552. TAndroidpublisherAPI = Class(TGoogleAPI)
  1553. Private
  1554. FEditsApklistingsInstance : TEditsApklistingsResource;
  1555. FEditsApksInstance : TEditsApksResource;
  1556. FEditsDetailsInstance : TEditsDetailsResource;
  1557. FEditsExpansionfilesInstance : TEditsExpansionfilesResource;
  1558. FEditsImagesInstance : TEditsImagesResource;
  1559. FEditsListingsInstance : TEditsListingsResource;
  1560. FEditsTestersInstance : TEditsTestersResource;
  1561. FEditsTracksInstance : TEditsTracksResource;
  1562. FEditsInstance : TEditsResource;
  1563. FEntitlementsInstance : TEntitlementsResource;
  1564. FInappproductsInstance : TInappproductsResource;
  1565. FPurchasesProductsInstance : TPurchasesProductsResource;
  1566. FPurchasesSubscriptionsInstance : TPurchasesSubscriptionsResource;
  1567. FPurchasesInstance : TPurchasesResource;
  1568. FReviewsInstance : TReviewsResource;
  1569. Function GetEditsApklistingsInstance : TEditsApklistingsResource;virtual;
  1570. Function GetEditsApksInstance : TEditsApksResource;virtual;
  1571. Function GetEditsDetailsInstance : TEditsDetailsResource;virtual;
  1572. Function GetEditsExpansionfilesInstance : TEditsExpansionfilesResource;virtual;
  1573. Function GetEditsImagesInstance : TEditsImagesResource;virtual;
  1574. Function GetEditsListingsInstance : TEditsListingsResource;virtual;
  1575. Function GetEditsTestersInstance : TEditsTestersResource;virtual;
  1576. Function GetEditsTracksInstance : TEditsTracksResource;virtual;
  1577. Function GetEditsInstance : TEditsResource;virtual;
  1578. Function GetEntitlementsInstance : TEntitlementsResource;virtual;
  1579. Function GetInappproductsInstance : TInappproductsResource;virtual;
  1580. Function GetPurchasesProductsInstance : TPurchasesProductsResource;virtual;
  1581. Function GetPurchasesSubscriptionsInstance : TPurchasesSubscriptionsResource;virtual;
  1582. Function GetPurchasesInstance : TPurchasesResource;virtual;
  1583. Function GetReviewsInstance : TReviewsResource;virtual;
  1584. Public
  1585. //Override class functions with API info
  1586. Class Function APIName : String; override;
  1587. Class Function APIVersion : String; override;
  1588. Class Function APIRevision : String; override;
  1589. Class Function APIID : String; override;
  1590. Class Function APITitle : String; override;
  1591. Class Function APIDescription : String; override;
  1592. Class Function APIOwnerDomain : String; override;
  1593. Class Function APIOwnerName : String; override;
  1594. Class Function APIIcon16 : String; override;
  1595. Class Function APIIcon32 : String; override;
  1596. Class Function APIdocumentationLink : String; override;
  1597. Class Function APIrootUrl : string; override;
  1598. Class Function APIbasePath : string;override;
  1599. Class Function APIbaseURL : String;override;
  1600. Class Function APIProtocol : string;override;
  1601. Class Function APIservicePath : string;override;
  1602. Class Function APIbatchPath : String;override;
  1603. Class Function APIAuthScopes : TScopeInfoArray;override;
  1604. Class Function APINeedsAuth : Boolean;override;
  1605. Class Procedure RegisterAPIResources; override;
  1606. //Add create function for resources
  1607. Function CreateEditsApklistingsResource(AOwner : TComponent) : TEditsApklistingsResource;virtual;overload;
  1608. Function CreateEditsApklistingsResource : TEditsApklistingsResource;virtual;overload;
  1609. Function CreateEditsApksResource(AOwner : TComponent) : TEditsApksResource;virtual;overload;
  1610. Function CreateEditsApksResource : TEditsApksResource;virtual;overload;
  1611. Function CreateEditsDetailsResource(AOwner : TComponent) : TEditsDetailsResource;virtual;overload;
  1612. Function CreateEditsDetailsResource : TEditsDetailsResource;virtual;overload;
  1613. Function CreateEditsExpansionfilesResource(AOwner : TComponent) : TEditsExpansionfilesResource;virtual;overload;
  1614. Function CreateEditsExpansionfilesResource : TEditsExpansionfilesResource;virtual;overload;
  1615. Function CreateEditsImagesResource(AOwner : TComponent) : TEditsImagesResource;virtual;overload;
  1616. Function CreateEditsImagesResource : TEditsImagesResource;virtual;overload;
  1617. Function CreateEditsListingsResource(AOwner : TComponent) : TEditsListingsResource;virtual;overload;
  1618. Function CreateEditsListingsResource : TEditsListingsResource;virtual;overload;
  1619. Function CreateEditsTestersResource(AOwner : TComponent) : TEditsTestersResource;virtual;overload;
  1620. Function CreateEditsTestersResource : TEditsTestersResource;virtual;overload;
  1621. Function CreateEditsTracksResource(AOwner : TComponent) : TEditsTracksResource;virtual;overload;
  1622. Function CreateEditsTracksResource : TEditsTracksResource;virtual;overload;
  1623. Function CreateEditsResource(AOwner : TComponent) : TEditsResource;virtual;overload;
  1624. Function CreateEditsResource : TEditsResource;virtual;overload;
  1625. Function CreateEntitlementsResource(AOwner : TComponent) : TEntitlementsResource;virtual;overload;
  1626. Function CreateEntitlementsResource : TEntitlementsResource;virtual;overload;
  1627. Function CreateInappproductsResource(AOwner : TComponent) : TInappproductsResource;virtual;overload;
  1628. Function CreateInappproductsResource : TInappproductsResource;virtual;overload;
  1629. Function CreatePurchasesProductsResource(AOwner : TComponent) : TPurchasesProductsResource;virtual;overload;
  1630. Function CreatePurchasesProductsResource : TPurchasesProductsResource;virtual;overload;
  1631. Function CreatePurchasesSubscriptionsResource(AOwner : TComponent) : TPurchasesSubscriptionsResource;virtual;overload;
  1632. Function CreatePurchasesSubscriptionsResource : TPurchasesSubscriptionsResource;virtual;overload;
  1633. Function CreatePurchasesResource(AOwner : TComponent) : TPurchasesResource;virtual;overload;
  1634. Function CreatePurchasesResource : TPurchasesResource;virtual;overload;
  1635. Function CreateReviewsResource(AOwner : TComponent) : TReviewsResource;virtual;overload;
  1636. Function CreateReviewsResource : TReviewsResource;virtual;overload;
  1637. //Add default on-demand instances for resources
  1638. Property EditsApklistingsResource : TEditsApklistingsResource Read GetEditsApklistingsInstance;
  1639. Property EditsApksResource : TEditsApksResource Read GetEditsApksInstance;
  1640. Property EditsDetailsResource : TEditsDetailsResource Read GetEditsDetailsInstance;
  1641. Property EditsExpansionfilesResource : TEditsExpansionfilesResource Read GetEditsExpansionfilesInstance;
  1642. Property EditsImagesResource : TEditsImagesResource Read GetEditsImagesInstance;
  1643. Property EditsListingsResource : TEditsListingsResource Read GetEditsListingsInstance;
  1644. Property EditsTestersResource : TEditsTestersResource Read GetEditsTestersInstance;
  1645. Property EditsTracksResource : TEditsTracksResource Read GetEditsTracksInstance;
  1646. Property EditsResource : TEditsResource Read GetEditsInstance;
  1647. Property EntitlementsResource : TEntitlementsResource Read GetEntitlementsInstance;
  1648. Property InappproductsResource : TInappproductsResource Read GetInappproductsInstance;
  1649. Property PurchasesProductsResource : TPurchasesProductsResource Read GetPurchasesProductsInstance;
  1650. Property PurchasesSubscriptionsResource : TPurchasesSubscriptionsResource Read GetPurchasesSubscriptionsInstance;
  1651. Property PurchasesResource : TPurchasesResource Read GetPurchasesInstance;
  1652. Property ReviewsResource : TReviewsResource Read GetReviewsInstance;
  1653. end;
  1654. implementation
  1655. { --------------------------------------------------------------------
  1656. TApk
  1657. --------------------------------------------------------------------}
  1658. Procedure TApk.Setbinary(AIndex : Integer; const AValue : TApkBinary);
  1659. begin
  1660. If (Fbinary=AValue) then exit;
  1661. Fbinary:=AValue;
  1662. MarkPropertyChanged(AIndex);
  1663. end;
  1664. Procedure TApk.SetversionCode(AIndex : Integer; const AValue : integer);
  1665. begin
  1666. If (FversionCode=AValue) then exit;
  1667. FversionCode:=AValue;
  1668. MarkPropertyChanged(AIndex);
  1669. end;
  1670. { --------------------------------------------------------------------
  1671. TApkBinary
  1672. --------------------------------------------------------------------}
  1673. Procedure TApkBinary.Setsha1(AIndex : Integer; const AValue : String);
  1674. begin
  1675. If (Fsha1=AValue) then exit;
  1676. Fsha1:=AValue;
  1677. MarkPropertyChanged(AIndex);
  1678. end;
  1679. { --------------------------------------------------------------------
  1680. TApkListing
  1681. --------------------------------------------------------------------}
  1682. Procedure TApkListing.Setlanguage(AIndex : Integer; const AValue : String);
  1683. begin
  1684. If (Flanguage=AValue) then exit;
  1685. Flanguage:=AValue;
  1686. MarkPropertyChanged(AIndex);
  1687. end;
  1688. Procedure TApkListing.SetrecentChanges(AIndex : Integer; const AValue : String);
  1689. begin
  1690. If (FrecentChanges=AValue) then exit;
  1691. FrecentChanges:=AValue;
  1692. MarkPropertyChanged(AIndex);
  1693. end;
  1694. { --------------------------------------------------------------------
  1695. TApkListingsListResponse
  1696. --------------------------------------------------------------------}
  1697. Procedure TApkListingsListResponse.Setkind(AIndex : Integer; const AValue : String);
  1698. begin
  1699. If (Fkind=AValue) then exit;
  1700. Fkind:=AValue;
  1701. MarkPropertyChanged(AIndex);
  1702. end;
  1703. Procedure TApkListingsListResponse.Setlistings(AIndex : Integer; const AValue : TApkListingsListResponseTypelistingsArray);
  1704. begin
  1705. If (Flistings=AValue) then exit;
  1706. Flistings:=AValue;
  1707. MarkPropertyChanged(AIndex);
  1708. end;
  1709. //2.6.4. bug workaround
  1710. {$IFDEF VER2_6}
  1711. Procedure TApkListingsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1712. begin
  1713. Case AName of
  1714. 'listings' : SetLength(Flistings,ALength);
  1715. else
  1716. Inherited SetArrayLength(AName,ALength);
  1717. end;
  1718. end;
  1719. {$ENDIF VER2_6}
  1720. { --------------------------------------------------------------------
  1721. TApksAddExternallyHostedRequest
  1722. --------------------------------------------------------------------}
  1723. Procedure TApksAddExternallyHostedRequest.SetexternallyHostedApk(AIndex : Integer; const AValue : TExternallyHostedApk);
  1724. begin
  1725. If (FexternallyHostedApk=AValue) then exit;
  1726. FexternallyHostedApk:=AValue;
  1727. MarkPropertyChanged(AIndex);
  1728. end;
  1729. { --------------------------------------------------------------------
  1730. TApksAddExternallyHostedResponse
  1731. --------------------------------------------------------------------}
  1732. Procedure TApksAddExternallyHostedResponse.SetexternallyHostedApk(AIndex : Integer; const AValue : TExternallyHostedApk);
  1733. begin
  1734. If (FexternallyHostedApk=AValue) then exit;
  1735. FexternallyHostedApk:=AValue;
  1736. MarkPropertyChanged(AIndex);
  1737. end;
  1738. { --------------------------------------------------------------------
  1739. TApksListResponse
  1740. --------------------------------------------------------------------}
  1741. Procedure TApksListResponse.Setapks(AIndex : Integer; const AValue : TApksListResponseTypeapksArray);
  1742. begin
  1743. If (Fapks=AValue) then exit;
  1744. Fapks:=AValue;
  1745. MarkPropertyChanged(AIndex);
  1746. end;
  1747. Procedure TApksListResponse.Setkind(AIndex : Integer; const AValue : String);
  1748. begin
  1749. If (Fkind=AValue) then exit;
  1750. Fkind:=AValue;
  1751. MarkPropertyChanged(AIndex);
  1752. end;
  1753. //2.6.4. bug workaround
  1754. {$IFDEF VER2_6}
  1755. Procedure TApksListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1756. begin
  1757. Case AName of
  1758. 'apks' : SetLength(Fapks,ALength);
  1759. else
  1760. Inherited SetArrayLength(AName,ALength);
  1761. end;
  1762. end;
  1763. {$ENDIF VER2_6}
  1764. { --------------------------------------------------------------------
  1765. TAppDetails
  1766. --------------------------------------------------------------------}
  1767. Procedure TAppDetails.SetcontactEmail(AIndex : Integer; const AValue : String);
  1768. begin
  1769. If (FcontactEmail=AValue) then exit;
  1770. FcontactEmail:=AValue;
  1771. MarkPropertyChanged(AIndex);
  1772. end;
  1773. Procedure TAppDetails.SetcontactPhone(AIndex : Integer; const AValue : String);
  1774. begin
  1775. If (FcontactPhone=AValue) then exit;
  1776. FcontactPhone:=AValue;
  1777. MarkPropertyChanged(AIndex);
  1778. end;
  1779. Procedure TAppDetails.SetcontactWebsite(AIndex : Integer; const AValue : String);
  1780. begin
  1781. If (FcontactWebsite=AValue) then exit;
  1782. FcontactWebsite:=AValue;
  1783. MarkPropertyChanged(AIndex);
  1784. end;
  1785. Procedure TAppDetails.SetdefaultLanguage(AIndex : Integer; const AValue : String);
  1786. begin
  1787. If (FdefaultLanguage=AValue) then exit;
  1788. FdefaultLanguage:=AValue;
  1789. MarkPropertyChanged(AIndex);
  1790. end;
  1791. { --------------------------------------------------------------------
  1792. TAppEdit
  1793. --------------------------------------------------------------------}
  1794. Procedure TAppEdit.SetexpiryTimeSeconds(AIndex : Integer; const AValue : String);
  1795. begin
  1796. If (FexpiryTimeSeconds=AValue) then exit;
  1797. FexpiryTimeSeconds:=AValue;
  1798. MarkPropertyChanged(AIndex);
  1799. end;
  1800. Procedure TAppEdit.Setid(AIndex : Integer; const AValue : String);
  1801. begin
  1802. If (Fid=AValue) then exit;
  1803. Fid:=AValue;
  1804. MarkPropertyChanged(AIndex);
  1805. end;
  1806. { --------------------------------------------------------------------
  1807. TComment
  1808. --------------------------------------------------------------------}
  1809. Procedure TComment.SetdeveloperComment(AIndex : Integer; const AValue : TDeveloperComment);
  1810. begin
  1811. If (FdeveloperComment=AValue) then exit;
  1812. FdeveloperComment:=AValue;
  1813. MarkPropertyChanged(AIndex);
  1814. end;
  1815. Procedure TComment.SetuserComment(AIndex : Integer; const AValue : TUserComment);
  1816. begin
  1817. If (FuserComment=AValue) then exit;
  1818. FuserComment:=AValue;
  1819. MarkPropertyChanged(AIndex);
  1820. end;
  1821. { --------------------------------------------------------------------
  1822. TDeveloperComment
  1823. --------------------------------------------------------------------}
  1824. Procedure TDeveloperComment.SetlastModified(AIndex : Integer; const AValue : TTimestamp);
  1825. begin
  1826. If (FlastModified=AValue) then exit;
  1827. FlastModified:=AValue;
  1828. MarkPropertyChanged(AIndex);
  1829. end;
  1830. Procedure TDeveloperComment.Settext(AIndex : Integer; const AValue : String);
  1831. begin
  1832. If (Ftext=AValue) then exit;
  1833. Ftext:=AValue;
  1834. MarkPropertyChanged(AIndex);
  1835. end;
  1836. { --------------------------------------------------------------------
  1837. TEntitlement
  1838. --------------------------------------------------------------------}
  1839. Procedure TEntitlement.Setkind(AIndex : Integer; const AValue : String);
  1840. begin
  1841. If (Fkind=AValue) then exit;
  1842. Fkind:=AValue;
  1843. MarkPropertyChanged(AIndex);
  1844. end;
  1845. Procedure TEntitlement.SetproductId(AIndex : Integer; const AValue : String);
  1846. begin
  1847. If (FproductId=AValue) then exit;
  1848. FproductId:=AValue;
  1849. MarkPropertyChanged(AIndex);
  1850. end;
  1851. Procedure TEntitlement.SetproductType(AIndex : Integer; const AValue : String);
  1852. begin
  1853. If (FproductType=AValue) then exit;
  1854. FproductType:=AValue;
  1855. MarkPropertyChanged(AIndex);
  1856. end;
  1857. Procedure TEntitlement.Settoken(AIndex : Integer; const AValue : String);
  1858. begin
  1859. If (Ftoken=AValue) then exit;
  1860. Ftoken:=AValue;
  1861. MarkPropertyChanged(AIndex);
  1862. end;
  1863. { --------------------------------------------------------------------
  1864. TEntitlementsListResponse
  1865. --------------------------------------------------------------------}
  1866. Procedure TEntitlementsListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  1867. begin
  1868. If (FpageInfo=AValue) then exit;
  1869. FpageInfo:=AValue;
  1870. MarkPropertyChanged(AIndex);
  1871. end;
  1872. Procedure TEntitlementsListResponse.Setresources(AIndex : Integer; const AValue : TEntitlementsListResponseTyperesourcesArray);
  1873. begin
  1874. If (Fresources=AValue) then exit;
  1875. Fresources:=AValue;
  1876. MarkPropertyChanged(AIndex);
  1877. end;
  1878. Procedure TEntitlementsListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  1879. begin
  1880. If (FtokenPagination=AValue) then exit;
  1881. FtokenPagination:=AValue;
  1882. MarkPropertyChanged(AIndex);
  1883. end;
  1884. //2.6.4. bug workaround
  1885. {$IFDEF VER2_6}
  1886. Procedure TEntitlementsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1887. begin
  1888. Case AName of
  1889. 'resources' : SetLength(Fresources,ALength);
  1890. else
  1891. Inherited SetArrayLength(AName,ALength);
  1892. end;
  1893. end;
  1894. {$ENDIF VER2_6}
  1895. { --------------------------------------------------------------------
  1896. TExpansionFile
  1897. --------------------------------------------------------------------}
  1898. Procedure TExpansionFile.SetfileSize(AIndex : Integer; const AValue : String);
  1899. begin
  1900. If (FfileSize=AValue) then exit;
  1901. FfileSize:=AValue;
  1902. MarkPropertyChanged(AIndex);
  1903. end;
  1904. Procedure TExpansionFile.SetreferencesVersion(AIndex : Integer; const AValue : integer);
  1905. begin
  1906. If (FreferencesVersion=AValue) then exit;
  1907. FreferencesVersion:=AValue;
  1908. MarkPropertyChanged(AIndex);
  1909. end;
  1910. { --------------------------------------------------------------------
  1911. TExpansionFilesUploadResponse
  1912. --------------------------------------------------------------------}
  1913. Procedure TExpansionFilesUploadResponse.SetexpansionFile(AIndex : Integer; const AValue : TExpansionFile);
  1914. begin
  1915. If (FexpansionFile=AValue) then exit;
  1916. FexpansionFile:=AValue;
  1917. MarkPropertyChanged(AIndex);
  1918. end;
  1919. { --------------------------------------------------------------------
  1920. TExternallyHostedApk
  1921. --------------------------------------------------------------------}
  1922. Procedure TExternallyHostedApk.SetapplicationLabel(AIndex : Integer; const AValue : String);
  1923. begin
  1924. If (FapplicationLabel=AValue) then exit;
  1925. FapplicationLabel:=AValue;
  1926. MarkPropertyChanged(AIndex);
  1927. end;
  1928. Procedure TExternallyHostedApk.SetcertificateBase64s(AIndex : Integer; const AValue : TStringArray);
  1929. begin
  1930. If (FcertificateBase64s=AValue) then exit;
  1931. FcertificateBase64s:=AValue;
  1932. MarkPropertyChanged(AIndex);
  1933. end;
  1934. Procedure TExternallyHostedApk.SetexternallyHostedUrl(AIndex : Integer; const AValue : String);
  1935. begin
  1936. If (FexternallyHostedUrl=AValue) then exit;
  1937. FexternallyHostedUrl:=AValue;
  1938. MarkPropertyChanged(AIndex);
  1939. end;
  1940. Procedure TExternallyHostedApk.SetfileSha1Base64(AIndex : Integer; const AValue : String);
  1941. begin
  1942. If (FfileSha1Base64=AValue) then exit;
  1943. FfileSha1Base64:=AValue;
  1944. MarkPropertyChanged(AIndex);
  1945. end;
  1946. Procedure TExternallyHostedApk.SetfileSha256Base64(AIndex : Integer; const AValue : String);
  1947. begin
  1948. If (FfileSha256Base64=AValue) then exit;
  1949. FfileSha256Base64:=AValue;
  1950. MarkPropertyChanged(AIndex);
  1951. end;
  1952. Procedure TExternallyHostedApk.SetfileSize(AIndex : Integer; const AValue : String);
  1953. begin
  1954. If (FfileSize=AValue) then exit;
  1955. FfileSize:=AValue;
  1956. MarkPropertyChanged(AIndex);
  1957. end;
  1958. Procedure TExternallyHostedApk.SeticonBase64(AIndex : Integer; const AValue : String);
  1959. begin
  1960. If (FiconBase64=AValue) then exit;
  1961. FiconBase64:=AValue;
  1962. MarkPropertyChanged(AIndex);
  1963. end;
  1964. Procedure TExternallyHostedApk.SetmaximumSdk(AIndex : Integer; const AValue : integer);
  1965. begin
  1966. If (FmaximumSdk=AValue) then exit;
  1967. FmaximumSdk:=AValue;
  1968. MarkPropertyChanged(AIndex);
  1969. end;
  1970. Procedure TExternallyHostedApk.SetminimumSdk(AIndex : Integer; const AValue : integer);
  1971. begin
  1972. If (FminimumSdk=AValue) then exit;
  1973. FminimumSdk:=AValue;
  1974. MarkPropertyChanged(AIndex);
  1975. end;
  1976. Procedure TExternallyHostedApk.SetnativeCodes(AIndex : Integer; const AValue : TStringArray);
  1977. begin
  1978. If (FnativeCodes=AValue) then exit;
  1979. FnativeCodes:=AValue;
  1980. MarkPropertyChanged(AIndex);
  1981. end;
  1982. Procedure TExternallyHostedApk.SetpackageName(AIndex : Integer; const AValue : String);
  1983. begin
  1984. If (FpackageName=AValue) then exit;
  1985. FpackageName:=AValue;
  1986. MarkPropertyChanged(AIndex);
  1987. end;
  1988. Procedure TExternallyHostedApk.SetusesFeatures(AIndex : Integer; const AValue : TStringArray);
  1989. begin
  1990. If (FusesFeatures=AValue) then exit;
  1991. FusesFeatures:=AValue;
  1992. MarkPropertyChanged(AIndex);
  1993. end;
  1994. Procedure TExternallyHostedApk.SetusesPermissions(AIndex : Integer; const AValue : TExternallyHostedApkTypeusesPermissionsArray);
  1995. begin
  1996. If (FusesPermissions=AValue) then exit;
  1997. FusesPermissions:=AValue;
  1998. MarkPropertyChanged(AIndex);
  1999. end;
  2000. Procedure TExternallyHostedApk.SetversionCode(AIndex : Integer; const AValue : integer);
  2001. begin
  2002. If (FversionCode=AValue) then exit;
  2003. FversionCode:=AValue;
  2004. MarkPropertyChanged(AIndex);
  2005. end;
  2006. Procedure TExternallyHostedApk.SetversionName(AIndex : Integer; const AValue : String);
  2007. begin
  2008. If (FversionName=AValue) then exit;
  2009. FversionName:=AValue;
  2010. MarkPropertyChanged(AIndex);
  2011. end;
  2012. //2.6.4. bug workaround
  2013. {$IFDEF VER2_6}
  2014. Procedure TExternallyHostedApk.SetArrayLength(Const AName : String; ALength : Longint);
  2015. begin
  2016. Case AName of
  2017. 'certificatebase64s' : SetLength(FcertificateBase64s,ALength);
  2018. 'nativecodes' : SetLength(FnativeCodes,ALength);
  2019. 'usesfeatures' : SetLength(FusesFeatures,ALength);
  2020. 'usespermissions' : SetLength(FusesPermissions,ALength);
  2021. else
  2022. Inherited SetArrayLength(AName,ALength);
  2023. end;
  2024. end;
  2025. {$ENDIF VER2_6}
  2026. { --------------------------------------------------------------------
  2027. TExternallyHostedApkUsesPermission
  2028. --------------------------------------------------------------------}
  2029. Procedure TExternallyHostedApkUsesPermission.SetmaxSdkVersion(AIndex : Integer; const AValue : integer);
  2030. begin
  2031. If (FmaxSdkVersion=AValue) then exit;
  2032. FmaxSdkVersion:=AValue;
  2033. MarkPropertyChanged(AIndex);
  2034. end;
  2035. Procedure TExternallyHostedApkUsesPermission.Setname(AIndex : Integer; const AValue : String);
  2036. begin
  2037. If (Fname=AValue) then exit;
  2038. Fname:=AValue;
  2039. MarkPropertyChanged(AIndex);
  2040. end;
  2041. { --------------------------------------------------------------------
  2042. TImage
  2043. --------------------------------------------------------------------}
  2044. Procedure TImage.Setid(AIndex : Integer; const AValue : String);
  2045. begin
  2046. If (Fid=AValue) then exit;
  2047. Fid:=AValue;
  2048. MarkPropertyChanged(AIndex);
  2049. end;
  2050. Procedure TImage.Setsha1(AIndex : Integer; const AValue : String);
  2051. begin
  2052. If (Fsha1=AValue) then exit;
  2053. Fsha1:=AValue;
  2054. MarkPropertyChanged(AIndex);
  2055. end;
  2056. Procedure TImage.Seturl(AIndex : Integer; const AValue : String);
  2057. begin
  2058. If (Furl=AValue) then exit;
  2059. Furl:=AValue;
  2060. MarkPropertyChanged(AIndex);
  2061. end;
  2062. { --------------------------------------------------------------------
  2063. TImagesDeleteAllResponse
  2064. --------------------------------------------------------------------}
  2065. Procedure TImagesDeleteAllResponse.Setdeleted(AIndex : Integer; const AValue : TImagesDeleteAllResponseTypedeletedArray);
  2066. begin
  2067. If (Fdeleted=AValue) then exit;
  2068. Fdeleted:=AValue;
  2069. MarkPropertyChanged(AIndex);
  2070. end;
  2071. //2.6.4. bug workaround
  2072. {$IFDEF VER2_6}
  2073. Procedure TImagesDeleteAllResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2074. begin
  2075. Case AName of
  2076. 'deleted' : SetLength(Fdeleted,ALength);
  2077. else
  2078. Inherited SetArrayLength(AName,ALength);
  2079. end;
  2080. end;
  2081. {$ENDIF VER2_6}
  2082. { --------------------------------------------------------------------
  2083. TImagesListResponse
  2084. --------------------------------------------------------------------}
  2085. Procedure TImagesListResponse.Setimages(AIndex : Integer; const AValue : TImagesListResponseTypeimagesArray);
  2086. begin
  2087. If (Fimages=AValue) then exit;
  2088. Fimages:=AValue;
  2089. MarkPropertyChanged(AIndex);
  2090. end;
  2091. //2.6.4. bug workaround
  2092. {$IFDEF VER2_6}
  2093. Procedure TImagesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2094. begin
  2095. Case AName of
  2096. 'images' : SetLength(Fimages,ALength);
  2097. else
  2098. Inherited SetArrayLength(AName,ALength);
  2099. end;
  2100. end;
  2101. {$ENDIF VER2_6}
  2102. { --------------------------------------------------------------------
  2103. TImagesUploadResponse
  2104. --------------------------------------------------------------------}
  2105. Procedure TImagesUploadResponse.Setimage(AIndex : Integer; const AValue : TImage);
  2106. begin
  2107. If (Fimage=AValue) then exit;
  2108. Fimage:=AValue;
  2109. MarkPropertyChanged(AIndex);
  2110. end;
  2111. { --------------------------------------------------------------------
  2112. TInAppProductTypelistings
  2113. --------------------------------------------------------------------}
  2114. Class Function TInAppProductTypelistings.AllowAdditionalProperties : Boolean;
  2115. begin
  2116. Result:=True;
  2117. end;
  2118. { --------------------------------------------------------------------
  2119. TInAppProductTypeprices
  2120. --------------------------------------------------------------------}
  2121. Class Function TInAppProductTypeprices.AllowAdditionalProperties : Boolean;
  2122. begin
  2123. Result:=True;
  2124. end;
  2125. { --------------------------------------------------------------------
  2126. TInAppProduct
  2127. --------------------------------------------------------------------}
  2128. Procedure TInAppProduct.SetdefaultLanguage(AIndex : Integer; const AValue : String);
  2129. begin
  2130. If (FdefaultLanguage=AValue) then exit;
  2131. FdefaultLanguage:=AValue;
  2132. MarkPropertyChanged(AIndex);
  2133. end;
  2134. Procedure TInAppProduct.SetdefaultPrice(AIndex : Integer; const AValue : TPrice);
  2135. begin
  2136. If (FdefaultPrice=AValue) then exit;
  2137. FdefaultPrice:=AValue;
  2138. MarkPropertyChanged(AIndex);
  2139. end;
  2140. Procedure TInAppProduct.Setlistings(AIndex : Integer; const AValue : TInAppProductTypelistings);
  2141. begin
  2142. If (Flistings=AValue) then exit;
  2143. Flistings:=AValue;
  2144. MarkPropertyChanged(AIndex);
  2145. end;
  2146. Procedure TInAppProduct.SetpackageName(AIndex : Integer; const AValue : String);
  2147. begin
  2148. If (FpackageName=AValue) then exit;
  2149. FpackageName:=AValue;
  2150. MarkPropertyChanged(AIndex);
  2151. end;
  2152. Procedure TInAppProduct.Setprices(AIndex : Integer; const AValue : TInAppProductTypeprices);
  2153. begin
  2154. If (Fprices=AValue) then exit;
  2155. Fprices:=AValue;
  2156. MarkPropertyChanged(AIndex);
  2157. end;
  2158. Procedure TInAppProduct.SetpurchaseType(AIndex : Integer; const AValue : String);
  2159. begin
  2160. If (FpurchaseType=AValue) then exit;
  2161. FpurchaseType:=AValue;
  2162. MarkPropertyChanged(AIndex);
  2163. end;
  2164. Procedure TInAppProduct.Setseason(AIndex : Integer; const AValue : TSeason);
  2165. begin
  2166. If (Fseason=AValue) then exit;
  2167. Fseason:=AValue;
  2168. MarkPropertyChanged(AIndex);
  2169. end;
  2170. Procedure TInAppProduct.Setsku(AIndex : Integer; const AValue : String);
  2171. begin
  2172. If (Fsku=AValue) then exit;
  2173. Fsku:=AValue;
  2174. MarkPropertyChanged(AIndex);
  2175. end;
  2176. Procedure TInAppProduct.Setstatus(AIndex : Integer; const AValue : String);
  2177. begin
  2178. If (Fstatus=AValue) then exit;
  2179. Fstatus:=AValue;
  2180. MarkPropertyChanged(AIndex);
  2181. end;
  2182. Procedure TInAppProduct.SetsubscriptionPeriod(AIndex : Integer; const AValue : String);
  2183. begin
  2184. If (FsubscriptionPeriod=AValue) then exit;
  2185. FsubscriptionPeriod:=AValue;
  2186. MarkPropertyChanged(AIndex);
  2187. end;
  2188. Procedure TInAppProduct.SettrialPeriod(AIndex : Integer; const AValue : String);
  2189. begin
  2190. If (FtrialPeriod=AValue) then exit;
  2191. FtrialPeriod:=AValue;
  2192. MarkPropertyChanged(AIndex);
  2193. end;
  2194. { --------------------------------------------------------------------
  2195. TInAppProductListing
  2196. --------------------------------------------------------------------}
  2197. Procedure TInAppProductListing.Setdescription(AIndex : Integer; const AValue : String);
  2198. begin
  2199. If (Fdescription=AValue) then exit;
  2200. Fdescription:=AValue;
  2201. MarkPropertyChanged(AIndex);
  2202. end;
  2203. Procedure TInAppProductListing.Settitle(AIndex : Integer; const AValue : String);
  2204. begin
  2205. If (Ftitle=AValue) then exit;
  2206. Ftitle:=AValue;
  2207. MarkPropertyChanged(AIndex);
  2208. end;
  2209. { --------------------------------------------------------------------
  2210. TInappproductsBatchRequest
  2211. --------------------------------------------------------------------}
  2212. Procedure TInappproductsBatchRequest.Setentrys(AIndex : Integer; const AValue : TInappproductsBatchRequestTypeentrysArray);
  2213. begin
  2214. If (Fentrys=AValue) then exit;
  2215. Fentrys:=AValue;
  2216. MarkPropertyChanged(AIndex);
  2217. end;
  2218. //2.6.4. bug workaround
  2219. {$IFDEF VER2_6}
  2220. Procedure TInappproductsBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  2221. begin
  2222. Case AName of
  2223. 'entrys' : SetLength(Fentrys,ALength);
  2224. else
  2225. Inherited SetArrayLength(AName,ALength);
  2226. end;
  2227. end;
  2228. {$ENDIF VER2_6}
  2229. { --------------------------------------------------------------------
  2230. TInappproductsBatchRequestEntry
  2231. --------------------------------------------------------------------}
  2232. Procedure TInappproductsBatchRequestEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  2233. begin
  2234. If (FbatchId=AValue) then exit;
  2235. FbatchId:=AValue;
  2236. MarkPropertyChanged(AIndex);
  2237. end;
  2238. Procedure TInappproductsBatchRequestEntry.Setinappproductsinsertrequest(AIndex : Integer; const AValue : TInappproductsInsertRequest);
  2239. begin
  2240. If (Finappproductsinsertrequest=AValue) then exit;
  2241. Finappproductsinsertrequest:=AValue;
  2242. MarkPropertyChanged(AIndex);
  2243. end;
  2244. Procedure TInappproductsBatchRequestEntry.Setinappproductsupdaterequest(AIndex : Integer; const AValue : TInappproductsUpdateRequest);
  2245. begin
  2246. If (Finappproductsupdaterequest=AValue) then exit;
  2247. Finappproductsupdaterequest:=AValue;
  2248. MarkPropertyChanged(AIndex);
  2249. end;
  2250. Procedure TInappproductsBatchRequestEntry.SetmethodName(AIndex : Integer; const AValue : String);
  2251. begin
  2252. If (FmethodName=AValue) then exit;
  2253. FmethodName:=AValue;
  2254. MarkPropertyChanged(AIndex);
  2255. end;
  2256. { --------------------------------------------------------------------
  2257. TInappproductsBatchResponse
  2258. --------------------------------------------------------------------}
  2259. Procedure TInappproductsBatchResponse.Setentrys(AIndex : Integer; const AValue : TInappproductsBatchResponseTypeentrysArray);
  2260. begin
  2261. If (Fentrys=AValue) then exit;
  2262. Fentrys:=AValue;
  2263. MarkPropertyChanged(AIndex);
  2264. end;
  2265. Procedure TInappproductsBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  2266. begin
  2267. If (Fkind=AValue) then exit;
  2268. Fkind:=AValue;
  2269. MarkPropertyChanged(AIndex);
  2270. end;
  2271. //2.6.4. bug workaround
  2272. {$IFDEF VER2_6}
  2273. Procedure TInappproductsBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2274. begin
  2275. Case AName of
  2276. 'entrys' : SetLength(Fentrys,ALength);
  2277. else
  2278. Inherited SetArrayLength(AName,ALength);
  2279. end;
  2280. end;
  2281. {$ENDIF VER2_6}
  2282. { --------------------------------------------------------------------
  2283. TInappproductsBatchResponseEntry
  2284. --------------------------------------------------------------------}
  2285. Procedure TInappproductsBatchResponseEntry.SetbatchId(AIndex : Integer; const AValue : integer);
  2286. begin
  2287. If (FbatchId=AValue) then exit;
  2288. FbatchId:=AValue;
  2289. MarkPropertyChanged(AIndex);
  2290. end;
  2291. Procedure TInappproductsBatchResponseEntry.Setinappproductsinsertresponse(AIndex : Integer; const AValue : TInappproductsInsertResponse);
  2292. begin
  2293. If (Finappproductsinsertresponse=AValue) then exit;
  2294. Finappproductsinsertresponse:=AValue;
  2295. MarkPropertyChanged(AIndex);
  2296. end;
  2297. Procedure TInappproductsBatchResponseEntry.Setinappproductsupdateresponse(AIndex : Integer; const AValue : TInappproductsUpdateResponse);
  2298. begin
  2299. If (Finappproductsupdateresponse=AValue) then exit;
  2300. Finappproductsupdateresponse:=AValue;
  2301. MarkPropertyChanged(AIndex);
  2302. end;
  2303. { --------------------------------------------------------------------
  2304. TInappproductsInsertRequest
  2305. --------------------------------------------------------------------}
  2306. Procedure TInappproductsInsertRequest.Setinappproduct(AIndex : Integer; const AValue : TInAppProduct);
  2307. begin
  2308. If (Finappproduct=AValue) then exit;
  2309. Finappproduct:=AValue;
  2310. MarkPropertyChanged(AIndex);
  2311. end;
  2312. { --------------------------------------------------------------------
  2313. TInappproductsInsertResponse
  2314. --------------------------------------------------------------------}
  2315. Procedure TInappproductsInsertResponse.Setinappproduct(AIndex : Integer; const AValue : TInAppProduct);
  2316. begin
  2317. If (Finappproduct=AValue) then exit;
  2318. Finappproduct:=AValue;
  2319. MarkPropertyChanged(AIndex);
  2320. end;
  2321. { --------------------------------------------------------------------
  2322. TInappproductsListResponse
  2323. --------------------------------------------------------------------}
  2324. Procedure TInappproductsListResponse.Setinappproduct(AIndex : Integer; const AValue : TInappproductsListResponseTypeinappproductArray);
  2325. begin
  2326. If (Finappproduct=AValue) then exit;
  2327. Finappproduct:=AValue;
  2328. MarkPropertyChanged(AIndex);
  2329. end;
  2330. Procedure TInappproductsListResponse.Setkind(AIndex : Integer; const AValue : String);
  2331. begin
  2332. If (Fkind=AValue) then exit;
  2333. Fkind:=AValue;
  2334. MarkPropertyChanged(AIndex);
  2335. end;
  2336. Procedure TInappproductsListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  2337. begin
  2338. If (FpageInfo=AValue) then exit;
  2339. FpageInfo:=AValue;
  2340. MarkPropertyChanged(AIndex);
  2341. end;
  2342. Procedure TInappproductsListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  2343. begin
  2344. If (FtokenPagination=AValue) then exit;
  2345. FtokenPagination:=AValue;
  2346. MarkPropertyChanged(AIndex);
  2347. end;
  2348. //2.6.4. bug workaround
  2349. {$IFDEF VER2_6}
  2350. Procedure TInappproductsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2351. begin
  2352. Case AName of
  2353. 'inappproduct' : SetLength(Finappproduct,ALength);
  2354. else
  2355. Inherited SetArrayLength(AName,ALength);
  2356. end;
  2357. end;
  2358. {$ENDIF VER2_6}
  2359. { --------------------------------------------------------------------
  2360. TInappproductsUpdateRequest
  2361. --------------------------------------------------------------------}
  2362. Procedure TInappproductsUpdateRequest.Setinappproduct(AIndex : Integer; const AValue : TInAppProduct);
  2363. begin
  2364. If (Finappproduct=AValue) then exit;
  2365. Finappproduct:=AValue;
  2366. MarkPropertyChanged(AIndex);
  2367. end;
  2368. { --------------------------------------------------------------------
  2369. TInappproductsUpdateResponse
  2370. --------------------------------------------------------------------}
  2371. Procedure TInappproductsUpdateResponse.Setinappproduct(AIndex : Integer; const AValue : TInAppProduct);
  2372. begin
  2373. If (Finappproduct=AValue) then exit;
  2374. Finappproduct:=AValue;
  2375. MarkPropertyChanged(AIndex);
  2376. end;
  2377. { --------------------------------------------------------------------
  2378. TListing
  2379. --------------------------------------------------------------------}
  2380. Procedure TListing.SetfullDescription(AIndex : Integer; const AValue : String);
  2381. begin
  2382. If (FfullDescription=AValue) then exit;
  2383. FfullDescription:=AValue;
  2384. MarkPropertyChanged(AIndex);
  2385. end;
  2386. Procedure TListing.Setlanguage(AIndex : Integer; const AValue : String);
  2387. begin
  2388. If (Flanguage=AValue) then exit;
  2389. Flanguage:=AValue;
  2390. MarkPropertyChanged(AIndex);
  2391. end;
  2392. Procedure TListing.SetshortDescription(AIndex : Integer; const AValue : String);
  2393. begin
  2394. If (FshortDescription=AValue) then exit;
  2395. FshortDescription:=AValue;
  2396. MarkPropertyChanged(AIndex);
  2397. end;
  2398. Procedure TListing.Settitle(AIndex : Integer; const AValue : String);
  2399. begin
  2400. If (Ftitle=AValue) then exit;
  2401. Ftitle:=AValue;
  2402. MarkPropertyChanged(AIndex);
  2403. end;
  2404. Procedure TListing.Setvideo(AIndex : Integer; const AValue : String);
  2405. begin
  2406. If (Fvideo=AValue) then exit;
  2407. Fvideo:=AValue;
  2408. MarkPropertyChanged(AIndex);
  2409. end;
  2410. { --------------------------------------------------------------------
  2411. TListingsListResponse
  2412. --------------------------------------------------------------------}
  2413. Procedure TListingsListResponse.Setkind(AIndex : Integer; const AValue : String);
  2414. begin
  2415. If (Fkind=AValue) then exit;
  2416. Fkind:=AValue;
  2417. MarkPropertyChanged(AIndex);
  2418. end;
  2419. Procedure TListingsListResponse.Setlistings(AIndex : Integer; const AValue : TListingsListResponseTypelistingsArray);
  2420. begin
  2421. If (Flistings=AValue) then exit;
  2422. Flistings:=AValue;
  2423. MarkPropertyChanged(AIndex);
  2424. end;
  2425. //2.6.4. bug workaround
  2426. {$IFDEF VER2_6}
  2427. Procedure TListingsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2428. begin
  2429. Case AName of
  2430. 'listings' : SetLength(Flistings,ALength);
  2431. else
  2432. Inherited SetArrayLength(AName,ALength);
  2433. end;
  2434. end;
  2435. {$ENDIF VER2_6}
  2436. { --------------------------------------------------------------------
  2437. TMonthDay
  2438. --------------------------------------------------------------------}
  2439. Procedure TMonthDay.Setday(AIndex : Integer; const AValue : integer);
  2440. begin
  2441. If (Fday=AValue) then exit;
  2442. Fday:=AValue;
  2443. MarkPropertyChanged(AIndex);
  2444. end;
  2445. Procedure TMonthDay.Setmonth(AIndex : Integer; const AValue : integer);
  2446. begin
  2447. If (Fmonth=AValue) then exit;
  2448. Fmonth:=AValue;
  2449. MarkPropertyChanged(AIndex);
  2450. end;
  2451. { --------------------------------------------------------------------
  2452. TPageInfo
  2453. --------------------------------------------------------------------}
  2454. Procedure TPageInfo.SetresultPerPage(AIndex : Integer; const AValue : integer);
  2455. begin
  2456. If (FresultPerPage=AValue) then exit;
  2457. FresultPerPage:=AValue;
  2458. MarkPropertyChanged(AIndex);
  2459. end;
  2460. Procedure TPageInfo.SetstartIndex(AIndex : Integer; const AValue : integer);
  2461. begin
  2462. If (FstartIndex=AValue) then exit;
  2463. FstartIndex:=AValue;
  2464. MarkPropertyChanged(AIndex);
  2465. end;
  2466. Procedure TPageInfo.SettotalResults(AIndex : Integer; const AValue : integer);
  2467. begin
  2468. If (FtotalResults=AValue) then exit;
  2469. FtotalResults:=AValue;
  2470. MarkPropertyChanged(AIndex);
  2471. end;
  2472. { --------------------------------------------------------------------
  2473. TPrice
  2474. --------------------------------------------------------------------}
  2475. Procedure TPrice.Setcurrency(AIndex : Integer; const AValue : String);
  2476. begin
  2477. If (Fcurrency=AValue) then exit;
  2478. Fcurrency:=AValue;
  2479. MarkPropertyChanged(AIndex);
  2480. end;
  2481. Procedure TPrice.SetpriceMicros(AIndex : Integer; const AValue : String);
  2482. begin
  2483. If (FpriceMicros=AValue) then exit;
  2484. FpriceMicros:=AValue;
  2485. MarkPropertyChanged(AIndex);
  2486. end;
  2487. { --------------------------------------------------------------------
  2488. TProductPurchase
  2489. --------------------------------------------------------------------}
  2490. Procedure TProductPurchase.SetconsumptionState(AIndex : Integer; const AValue : integer);
  2491. begin
  2492. If (FconsumptionState=AValue) then exit;
  2493. FconsumptionState:=AValue;
  2494. MarkPropertyChanged(AIndex);
  2495. end;
  2496. Procedure TProductPurchase.SetdeveloperPayload(AIndex : Integer; const AValue : String);
  2497. begin
  2498. If (FdeveloperPayload=AValue) then exit;
  2499. FdeveloperPayload:=AValue;
  2500. MarkPropertyChanged(AIndex);
  2501. end;
  2502. Procedure TProductPurchase.Setkind(AIndex : Integer; const AValue : String);
  2503. begin
  2504. If (Fkind=AValue) then exit;
  2505. Fkind:=AValue;
  2506. MarkPropertyChanged(AIndex);
  2507. end;
  2508. Procedure TProductPurchase.SetpurchaseState(AIndex : Integer; const AValue : integer);
  2509. begin
  2510. If (FpurchaseState=AValue) then exit;
  2511. FpurchaseState:=AValue;
  2512. MarkPropertyChanged(AIndex);
  2513. end;
  2514. Procedure TProductPurchase.SetpurchaseTimeMillis(AIndex : Integer; const AValue : String);
  2515. begin
  2516. If (FpurchaseTimeMillis=AValue) then exit;
  2517. FpurchaseTimeMillis:=AValue;
  2518. MarkPropertyChanged(AIndex);
  2519. end;
  2520. { --------------------------------------------------------------------
  2521. TProrate
  2522. --------------------------------------------------------------------}
  2523. Procedure TProrate.SetdefaultPrice(AIndex : Integer; const AValue : TPrice);
  2524. begin
  2525. If (FdefaultPrice=AValue) then exit;
  2526. FdefaultPrice:=AValue;
  2527. MarkPropertyChanged(AIndex);
  2528. end;
  2529. Procedure TProrate.Setstart(AIndex : Integer; const AValue : TMonthDay);
  2530. begin
  2531. If (Fstart=AValue) then exit;
  2532. Fstart:=AValue;
  2533. MarkPropertyChanged(AIndex);
  2534. end;
  2535. { --------------------------------------------------------------------
  2536. TReview
  2537. --------------------------------------------------------------------}
  2538. Procedure TReview.SetauthorName(AIndex : Integer; const AValue : String);
  2539. begin
  2540. If (FauthorName=AValue) then exit;
  2541. FauthorName:=AValue;
  2542. MarkPropertyChanged(AIndex);
  2543. end;
  2544. Procedure TReview.Setcomments(AIndex : Integer; const AValue : TReviewTypecommentsArray);
  2545. begin
  2546. If (Fcomments=AValue) then exit;
  2547. Fcomments:=AValue;
  2548. MarkPropertyChanged(AIndex);
  2549. end;
  2550. Procedure TReview.SetreviewId(AIndex : Integer; const AValue : String);
  2551. begin
  2552. If (FreviewId=AValue) then exit;
  2553. FreviewId:=AValue;
  2554. MarkPropertyChanged(AIndex);
  2555. end;
  2556. //2.6.4. bug workaround
  2557. {$IFDEF VER2_6}
  2558. Procedure TReview.SetArrayLength(Const AName : String; ALength : Longint);
  2559. begin
  2560. Case AName of
  2561. 'comments' : SetLength(Fcomments,ALength);
  2562. else
  2563. Inherited SetArrayLength(AName,ALength);
  2564. end;
  2565. end;
  2566. {$ENDIF VER2_6}
  2567. { --------------------------------------------------------------------
  2568. TReviewReplyResult
  2569. --------------------------------------------------------------------}
  2570. Procedure TReviewReplyResult.SetlastEdited(AIndex : Integer; const AValue : TTimestamp);
  2571. begin
  2572. If (FlastEdited=AValue) then exit;
  2573. FlastEdited:=AValue;
  2574. MarkPropertyChanged(AIndex);
  2575. end;
  2576. Procedure TReviewReplyResult.SetreplyText(AIndex : Integer; const AValue : String);
  2577. begin
  2578. If (FreplyText=AValue) then exit;
  2579. FreplyText:=AValue;
  2580. MarkPropertyChanged(AIndex);
  2581. end;
  2582. { --------------------------------------------------------------------
  2583. TReviewsListResponse
  2584. --------------------------------------------------------------------}
  2585. Procedure TReviewsListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  2586. begin
  2587. If (FpageInfo=AValue) then exit;
  2588. FpageInfo:=AValue;
  2589. MarkPropertyChanged(AIndex);
  2590. end;
  2591. Procedure TReviewsListResponse.Setreviews(AIndex : Integer; const AValue : TReviewsListResponseTypereviewsArray);
  2592. begin
  2593. If (Freviews=AValue) then exit;
  2594. Freviews:=AValue;
  2595. MarkPropertyChanged(AIndex);
  2596. end;
  2597. Procedure TReviewsListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  2598. begin
  2599. If (FtokenPagination=AValue) then exit;
  2600. FtokenPagination:=AValue;
  2601. MarkPropertyChanged(AIndex);
  2602. end;
  2603. //2.6.4. bug workaround
  2604. {$IFDEF VER2_6}
  2605. Procedure TReviewsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2606. begin
  2607. Case AName of
  2608. 'reviews' : SetLength(Freviews,ALength);
  2609. else
  2610. Inherited SetArrayLength(AName,ALength);
  2611. end;
  2612. end;
  2613. {$ENDIF VER2_6}
  2614. { --------------------------------------------------------------------
  2615. TReviewsReplyRequest
  2616. --------------------------------------------------------------------}
  2617. Procedure TReviewsReplyRequest.SetreplyText(AIndex : Integer; const AValue : String);
  2618. begin
  2619. If (FreplyText=AValue) then exit;
  2620. FreplyText:=AValue;
  2621. MarkPropertyChanged(AIndex);
  2622. end;
  2623. { --------------------------------------------------------------------
  2624. TReviewsReplyResponse
  2625. --------------------------------------------------------------------}
  2626. Procedure TReviewsReplyResponse.Setresult(AIndex : Integer; const AValue : TReviewReplyResult);
  2627. begin
  2628. If (Fresult=AValue) then exit;
  2629. Fresult:=AValue;
  2630. MarkPropertyChanged(AIndex);
  2631. end;
  2632. { --------------------------------------------------------------------
  2633. TSeason
  2634. --------------------------------------------------------------------}
  2635. Procedure TSeason.Set_end(AIndex : Integer; const AValue : TMonthDay);
  2636. begin
  2637. If (F_end=AValue) then exit;
  2638. F_end:=AValue;
  2639. MarkPropertyChanged(AIndex);
  2640. end;
  2641. Procedure TSeason.Setprorations(AIndex : Integer; const AValue : TSeasonTypeprorationsArray);
  2642. begin
  2643. If (Fprorations=AValue) then exit;
  2644. Fprorations:=AValue;
  2645. MarkPropertyChanged(AIndex);
  2646. end;
  2647. Procedure TSeason.Setstart(AIndex : Integer; const AValue : TMonthDay);
  2648. begin
  2649. If (Fstart=AValue) then exit;
  2650. Fstart:=AValue;
  2651. MarkPropertyChanged(AIndex);
  2652. end;
  2653. Class Function TSeason.ExportPropertyName(Const AName : String) :String;
  2654. begin
  2655. Case AName of
  2656. '_end' : Result:='end';
  2657. else
  2658. Result:=Inherited ExportPropertyName(AName);
  2659. end;
  2660. end;
  2661. //2.6.4. bug workaround
  2662. {$IFDEF VER2_6}
  2663. Procedure TSeason.SetArrayLength(Const AName : String; ALength : Longint);
  2664. begin
  2665. Case AName of
  2666. 'prorations' : SetLength(Fprorations,ALength);
  2667. else
  2668. Inherited SetArrayLength(AName,ALength);
  2669. end;
  2670. end;
  2671. {$ENDIF VER2_6}
  2672. { --------------------------------------------------------------------
  2673. TSubscriptionDeferralInfo
  2674. --------------------------------------------------------------------}
  2675. Procedure TSubscriptionDeferralInfo.SetdesiredExpiryTimeMillis(AIndex : Integer; const AValue : String);
  2676. begin
  2677. If (FdesiredExpiryTimeMillis=AValue) then exit;
  2678. FdesiredExpiryTimeMillis:=AValue;
  2679. MarkPropertyChanged(AIndex);
  2680. end;
  2681. Procedure TSubscriptionDeferralInfo.SetexpectedExpiryTimeMillis(AIndex : Integer; const AValue : String);
  2682. begin
  2683. If (FexpectedExpiryTimeMillis=AValue) then exit;
  2684. FexpectedExpiryTimeMillis:=AValue;
  2685. MarkPropertyChanged(AIndex);
  2686. end;
  2687. { --------------------------------------------------------------------
  2688. TSubscriptionPurchase
  2689. --------------------------------------------------------------------}
  2690. Procedure TSubscriptionPurchase.SetautoRenewing(AIndex : Integer; const AValue : boolean);
  2691. begin
  2692. If (FautoRenewing=AValue) then exit;
  2693. FautoRenewing:=AValue;
  2694. MarkPropertyChanged(AIndex);
  2695. end;
  2696. Procedure TSubscriptionPurchase.SetcancelReason(AIndex : Integer; const AValue : integer);
  2697. begin
  2698. If (FcancelReason=AValue) then exit;
  2699. FcancelReason:=AValue;
  2700. MarkPropertyChanged(AIndex);
  2701. end;
  2702. Procedure TSubscriptionPurchase.SetcountryCode(AIndex : Integer; const AValue : String);
  2703. begin
  2704. If (FcountryCode=AValue) then exit;
  2705. FcountryCode:=AValue;
  2706. MarkPropertyChanged(AIndex);
  2707. end;
  2708. Procedure TSubscriptionPurchase.SetdeveloperPayload(AIndex : Integer; const AValue : String);
  2709. begin
  2710. If (FdeveloperPayload=AValue) then exit;
  2711. FdeveloperPayload:=AValue;
  2712. MarkPropertyChanged(AIndex);
  2713. end;
  2714. Procedure TSubscriptionPurchase.SetexpiryTimeMillis(AIndex : Integer; const AValue : String);
  2715. begin
  2716. If (FexpiryTimeMillis=AValue) then exit;
  2717. FexpiryTimeMillis:=AValue;
  2718. MarkPropertyChanged(AIndex);
  2719. end;
  2720. Procedure TSubscriptionPurchase.Setkind(AIndex : Integer; const AValue : String);
  2721. begin
  2722. If (Fkind=AValue) then exit;
  2723. Fkind:=AValue;
  2724. MarkPropertyChanged(AIndex);
  2725. end;
  2726. Procedure TSubscriptionPurchase.SetpaymentState(AIndex : Integer; const AValue : integer);
  2727. begin
  2728. If (FpaymentState=AValue) then exit;
  2729. FpaymentState:=AValue;
  2730. MarkPropertyChanged(AIndex);
  2731. end;
  2732. Procedure TSubscriptionPurchase.SetpriceAmountMicros(AIndex : Integer; const AValue : String);
  2733. begin
  2734. If (FpriceAmountMicros=AValue) then exit;
  2735. FpriceAmountMicros:=AValue;
  2736. MarkPropertyChanged(AIndex);
  2737. end;
  2738. Procedure TSubscriptionPurchase.SetpriceCurrencyCode(AIndex : Integer; const AValue : String);
  2739. begin
  2740. If (FpriceCurrencyCode=AValue) then exit;
  2741. FpriceCurrencyCode:=AValue;
  2742. MarkPropertyChanged(AIndex);
  2743. end;
  2744. Procedure TSubscriptionPurchase.SetstartTimeMillis(AIndex : Integer; const AValue : String);
  2745. begin
  2746. If (FstartTimeMillis=AValue) then exit;
  2747. FstartTimeMillis:=AValue;
  2748. MarkPropertyChanged(AIndex);
  2749. end;
  2750. { --------------------------------------------------------------------
  2751. TSubscriptionPurchasesDeferRequest
  2752. --------------------------------------------------------------------}
  2753. Procedure TSubscriptionPurchasesDeferRequest.SetdeferralInfo(AIndex : Integer; const AValue : TSubscriptionDeferralInfo);
  2754. begin
  2755. If (FdeferralInfo=AValue) then exit;
  2756. FdeferralInfo:=AValue;
  2757. MarkPropertyChanged(AIndex);
  2758. end;
  2759. { --------------------------------------------------------------------
  2760. TSubscriptionPurchasesDeferResponse
  2761. --------------------------------------------------------------------}
  2762. Procedure TSubscriptionPurchasesDeferResponse.SetnewExpiryTimeMillis(AIndex : Integer; const AValue : String);
  2763. begin
  2764. If (FnewExpiryTimeMillis=AValue) then exit;
  2765. FnewExpiryTimeMillis:=AValue;
  2766. MarkPropertyChanged(AIndex);
  2767. end;
  2768. { --------------------------------------------------------------------
  2769. TTesters
  2770. --------------------------------------------------------------------}
  2771. Procedure TTesters.SetgoogleGroups(AIndex : Integer; const AValue : TStringArray);
  2772. begin
  2773. If (FgoogleGroups=AValue) then exit;
  2774. FgoogleGroups:=AValue;
  2775. MarkPropertyChanged(AIndex);
  2776. end;
  2777. Procedure TTesters.SetgooglePlusCommunities(AIndex : Integer; const AValue : TStringArray);
  2778. begin
  2779. If (FgooglePlusCommunities=AValue) then exit;
  2780. FgooglePlusCommunities:=AValue;
  2781. MarkPropertyChanged(AIndex);
  2782. end;
  2783. //2.6.4. bug workaround
  2784. {$IFDEF VER2_6}
  2785. Procedure TTesters.SetArrayLength(Const AName : String; ALength : Longint);
  2786. begin
  2787. Case AName of
  2788. 'googlegroups' : SetLength(FgoogleGroups,ALength);
  2789. 'googlepluscommunities' : SetLength(FgooglePlusCommunities,ALength);
  2790. else
  2791. Inherited SetArrayLength(AName,ALength);
  2792. end;
  2793. end;
  2794. {$ENDIF VER2_6}
  2795. { --------------------------------------------------------------------
  2796. TTimestamp
  2797. --------------------------------------------------------------------}
  2798. Procedure TTimestamp.Setnanos(AIndex : Integer; const AValue : integer);
  2799. begin
  2800. If (Fnanos=AValue) then exit;
  2801. Fnanos:=AValue;
  2802. MarkPropertyChanged(AIndex);
  2803. end;
  2804. Procedure TTimestamp.Setseconds(AIndex : Integer; const AValue : String);
  2805. begin
  2806. If (Fseconds=AValue) then exit;
  2807. Fseconds:=AValue;
  2808. MarkPropertyChanged(AIndex);
  2809. end;
  2810. { --------------------------------------------------------------------
  2811. TTokenPagination
  2812. --------------------------------------------------------------------}
  2813. Procedure TTokenPagination.SetnextPageToken(AIndex : Integer; const AValue : String);
  2814. begin
  2815. If (FnextPageToken=AValue) then exit;
  2816. FnextPageToken:=AValue;
  2817. MarkPropertyChanged(AIndex);
  2818. end;
  2819. Procedure TTokenPagination.SetpreviousPageToken(AIndex : Integer; const AValue : String);
  2820. begin
  2821. If (FpreviousPageToken=AValue) then exit;
  2822. FpreviousPageToken:=AValue;
  2823. MarkPropertyChanged(AIndex);
  2824. end;
  2825. { --------------------------------------------------------------------
  2826. TTrack
  2827. --------------------------------------------------------------------}
  2828. Procedure TTrack.Settrack(AIndex : Integer; const AValue : String);
  2829. begin
  2830. If (Ftrack=AValue) then exit;
  2831. Ftrack:=AValue;
  2832. MarkPropertyChanged(AIndex);
  2833. end;
  2834. Procedure TTrack.SetuserFraction(AIndex : Integer; const AValue : double);
  2835. begin
  2836. If (FuserFraction=AValue) then exit;
  2837. FuserFraction:=AValue;
  2838. MarkPropertyChanged(AIndex);
  2839. end;
  2840. Procedure TTrack.SetversionCodes(AIndex : Integer; const AValue : TintegerArray);
  2841. begin
  2842. If (FversionCodes=AValue) then exit;
  2843. FversionCodes:=AValue;
  2844. MarkPropertyChanged(AIndex);
  2845. end;
  2846. //2.6.4. bug workaround
  2847. {$IFDEF VER2_6}
  2848. Procedure TTrack.SetArrayLength(Const AName : String; ALength : Longint);
  2849. begin
  2850. Case AName of
  2851. 'versioncodes' : SetLength(FversionCodes,ALength);
  2852. else
  2853. Inherited SetArrayLength(AName,ALength);
  2854. end;
  2855. end;
  2856. {$ENDIF VER2_6}
  2857. { --------------------------------------------------------------------
  2858. TTracksListResponse
  2859. --------------------------------------------------------------------}
  2860. Procedure TTracksListResponse.Setkind(AIndex : Integer; const AValue : String);
  2861. begin
  2862. If (Fkind=AValue) then exit;
  2863. Fkind:=AValue;
  2864. MarkPropertyChanged(AIndex);
  2865. end;
  2866. Procedure TTracksListResponse.Settracks(AIndex : Integer; const AValue : TTracksListResponseTypetracksArray);
  2867. begin
  2868. If (Ftracks=AValue) then exit;
  2869. Ftracks:=AValue;
  2870. MarkPropertyChanged(AIndex);
  2871. end;
  2872. //2.6.4. bug workaround
  2873. {$IFDEF VER2_6}
  2874. Procedure TTracksListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2875. begin
  2876. Case AName of
  2877. 'tracks' : SetLength(Ftracks,ALength);
  2878. else
  2879. Inherited SetArrayLength(AName,ALength);
  2880. end;
  2881. end;
  2882. {$ENDIF VER2_6}
  2883. { --------------------------------------------------------------------
  2884. TUserComment
  2885. --------------------------------------------------------------------}
  2886. Procedure TUserComment.SetandroidOsVersion(AIndex : Integer; const AValue : integer);
  2887. begin
  2888. If (FandroidOsVersion=AValue) then exit;
  2889. FandroidOsVersion:=AValue;
  2890. MarkPropertyChanged(AIndex);
  2891. end;
  2892. Procedure TUserComment.SetappVersionCode(AIndex : Integer; const AValue : integer);
  2893. begin
  2894. If (FappVersionCode=AValue) then exit;
  2895. FappVersionCode:=AValue;
  2896. MarkPropertyChanged(AIndex);
  2897. end;
  2898. Procedure TUserComment.SetappVersionName(AIndex : Integer; const AValue : String);
  2899. begin
  2900. If (FappVersionName=AValue) then exit;
  2901. FappVersionName:=AValue;
  2902. MarkPropertyChanged(AIndex);
  2903. end;
  2904. Procedure TUserComment.Setdevice(AIndex : Integer; const AValue : String);
  2905. begin
  2906. If (Fdevice=AValue) then exit;
  2907. Fdevice:=AValue;
  2908. MarkPropertyChanged(AIndex);
  2909. end;
  2910. Procedure TUserComment.SetlastModified(AIndex : Integer; const AValue : TTimestamp);
  2911. begin
  2912. If (FlastModified=AValue) then exit;
  2913. FlastModified:=AValue;
  2914. MarkPropertyChanged(AIndex);
  2915. end;
  2916. Procedure TUserComment.SetreviewerLanguage(AIndex : Integer; const AValue : String);
  2917. begin
  2918. If (FreviewerLanguage=AValue) then exit;
  2919. FreviewerLanguage:=AValue;
  2920. MarkPropertyChanged(AIndex);
  2921. end;
  2922. Procedure TUserComment.SetstarRating(AIndex : Integer; const AValue : integer);
  2923. begin
  2924. If (FstarRating=AValue) then exit;
  2925. FstarRating:=AValue;
  2926. MarkPropertyChanged(AIndex);
  2927. end;
  2928. Procedure TUserComment.Settext(AIndex : Integer; const AValue : String);
  2929. begin
  2930. If (Ftext=AValue) then exit;
  2931. Ftext:=AValue;
  2932. MarkPropertyChanged(AIndex);
  2933. end;
  2934. { --------------------------------------------------------------------
  2935. TEditsApklistingsResource
  2936. --------------------------------------------------------------------}
  2937. Class Function TEditsApklistingsResource.ResourceName : String;
  2938. begin
  2939. Result:='apklistings';
  2940. end;
  2941. Class Function TEditsApklistingsResource.DefaultAPI : TGoogleAPIClass;
  2942. begin
  2943. Result:=TandroidpublisherAPI;
  2944. end;
  2945. Procedure TEditsApklistingsResource.Delete(apkVersionCode: integer; editId: string; language: string; packageName: string);
  2946. Const
  2947. _HTTPMethod = 'DELETE';
  2948. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}';
  2949. _Methodid = 'androidpublisher.edits.apklistings.delete';
  2950. Var
  2951. _P : String;
  2952. begin
  2953. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'language',language,'packageName',packageName]);
  2954. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  2955. end;
  2956. Procedure TEditsApklistingsResource.Deleteall(apkVersionCode: integer; editId: string; packageName: string);
  2957. Const
  2958. _HTTPMethod = 'DELETE';
  2959. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings';
  2960. _Methodid = 'androidpublisher.edits.apklistings.deleteall';
  2961. Var
  2962. _P : String;
  2963. begin
  2964. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'packageName',packageName]);
  2965. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  2966. end;
  2967. Function TEditsApklistingsResource.Get(apkVersionCode: integer; editId: string; language: string; packageName: string) : TApkListing;
  2968. Const
  2969. _HTTPMethod = 'GET';
  2970. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}';
  2971. _Methodid = 'androidpublisher.edits.apklistings.get';
  2972. Var
  2973. _P : String;
  2974. begin
  2975. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'language',language,'packageName',packageName]);
  2976. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TApkListing) as TApkListing;
  2977. end;
  2978. Function TEditsApklistingsResource.List(apkVersionCode: integer; editId: string; packageName: string) : TApkListingsListResponse;
  2979. Const
  2980. _HTTPMethod = 'GET';
  2981. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings';
  2982. _Methodid = 'androidpublisher.edits.apklistings.list';
  2983. Var
  2984. _P : String;
  2985. begin
  2986. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'packageName',packageName]);
  2987. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TApkListingsListResponse) as TApkListingsListResponse;
  2988. end;
  2989. Function TEditsApklistingsResource.Patch(apkVersionCode: integer; editId: string; language: string; packageName: string; aApkListing : TApkListing) : TApkListing;
  2990. Const
  2991. _HTTPMethod = 'PATCH';
  2992. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}';
  2993. _Methodid = 'androidpublisher.edits.apklistings.patch';
  2994. Var
  2995. _P : String;
  2996. begin
  2997. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'language',language,'packageName',packageName]);
  2998. Result:=ServiceCall(_HTTPMethod,_P,'',aApkListing,TApkListing) as TApkListing;
  2999. end;
  3000. Function TEditsApklistingsResource.Update(apkVersionCode: integer; editId: string; language: string; packageName: string; aApkListing : TApkListing) : TApkListing;
  3001. Const
  3002. _HTTPMethod = 'PUT';
  3003. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}';
  3004. _Methodid = 'androidpublisher.edits.apklistings.update';
  3005. Var
  3006. _P : String;
  3007. begin
  3008. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'language',language,'packageName',packageName]);
  3009. Result:=ServiceCall(_HTTPMethod,_P,'',aApkListing,TApkListing) as TApkListing;
  3010. end;
  3011. { --------------------------------------------------------------------
  3012. TEditsApksResource
  3013. --------------------------------------------------------------------}
  3014. Class Function TEditsApksResource.ResourceName : String;
  3015. begin
  3016. Result:='apks';
  3017. end;
  3018. Class Function TEditsApksResource.DefaultAPI : TGoogleAPIClass;
  3019. begin
  3020. Result:=TandroidpublisherAPI;
  3021. end;
  3022. Function TEditsApksResource.Addexternallyhosted(editId: string; packageName: string; aApksAddExternallyHostedRequest : TApksAddExternallyHostedRequest) : TApksAddExternallyHostedResponse;
  3023. Const
  3024. _HTTPMethod = 'POST';
  3025. _Path = '{packageName}/edits/{editId}/apks/externallyHosted';
  3026. _Methodid = 'androidpublisher.edits.apks.addexternallyhosted';
  3027. Var
  3028. _P : String;
  3029. begin
  3030. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3031. Result:=ServiceCall(_HTTPMethod,_P,'',aApksAddExternallyHostedRequest,TApksAddExternallyHostedResponse) as TApksAddExternallyHostedResponse;
  3032. end;
  3033. Function TEditsApksResource.List(editId: string; packageName: string) : TApksListResponse;
  3034. Const
  3035. _HTTPMethod = 'GET';
  3036. _Path = '{packageName}/edits/{editId}/apks';
  3037. _Methodid = 'androidpublisher.edits.apks.list';
  3038. Var
  3039. _P : String;
  3040. begin
  3041. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3042. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TApksListResponse) as TApksListResponse;
  3043. end;
  3044. Function TEditsApksResource.Upload(editId: string; packageName: string) : TApk;
  3045. Const
  3046. _HTTPMethod = 'POST';
  3047. _Path = '{packageName}/edits/{editId}/apks';
  3048. _Methodid = 'androidpublisher.edits.apks.upload';
  3049. Var
  3050. _P : String;
  3051. begin
  3052. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3053. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TApk) as TApk;
  3054. end;
  3055. { --------------------------------------------------------------------
  3056. TEditsDetailsResource
  3057. --------------------------------------------------------------------}
  3058. Class Function TEditsDetailsResource.ResourceName : String;
  3059. begin
  3060. Result:='details';
  3061. end;
  3062. Class Function TEditsDetailsResource.DefaultAPI : TGoogleAPIClass;
  3063. begin
  3064. Result:=TandroidpublisherAPI;
  3065. end;
  3066. Function TEditsDetailsResource.Get(editId: string; packageName: string) : TAppDetails;
  3067. Const
  3068. _HTTPMethod = 'GET';
  3069. _Path = '{packageName}/edits/{editId}/details';
  3070. _Methodid = 'androidpublisher.edits.details.get';
  3071. Var
  3072. _P : String;
  3073. begin
  3074. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3075. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAppDetails) as TAppDetails;
  3076. end;
  3077. Function TEditsDetailsResource.Patch(editId: string; packageName: string; aAppDetails : TAppDetails) : TAppDetails;
  3078. Const
  3079. _HTTPMethod = 'PATCH';
  3080. _Path = '{packageName}/edits/{editId}/details';
  3081. _Methodid = 'androidpublisher.edits.details.patch';
  3082. Var
  3083. _P : String;
  3084. begin
  3085. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3086. Result:=ServiceCall(_HTTPMethod,_P,'',aAppDetails,TAppDetails) as TAppDetails;
  3087. end;
  3088. Function TEditsDetailsResource.Update(editId: string; packageName: string; aAppDetails : TAppDetails) : TAppDetails;
  3089. Const
  3090. _HTTPMethod = 'PUT';
  3091. _Path = '{packageName}/edits/{editId}/details';
  3092. _Methodid = 'androidpublisher.edits.details.update';
  3093. Var
  3094. _P : String;
  3095. begin
  3096. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3097. Result:=ServiceCall(_HTTPMethod,_P,'',aAppDetails,TAppDetails) as TAppDetails;
  3098. end;
  3099. { --------------------------------------------------------------------
  3100. TEditsExpansionfilesResource
  3101. --------------------------------------------------------------------}
  3102. Class Function TEditsExpansionfilesResource.ResourceName : String;
  3103. begin
  3104. Result:='expansionfiles';
  3105. end;
  3106. Class Function TEditsExpansionfilesResource.DefaultAPI : TGoogleAPIClass;
  3107. begin
  3108. Result:=TandroidpublisherAPI;
  3109. end;
  3110. Function TEditsExpansionfilesResource.Get(apkVersionCode: integer; editId: string; expansionFileType: string; packageName: string) : TExpansionFile;
  3111. Const
  3112. _HTTPMethod = 'GET';
  3113. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}';
  3114. _Methodid = 'androidpublisher.edits.expansionfiles.get';
  3115. Var
  3116. _P : String;
  3117. begin
  3118. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'expansionFileType',expansionFileType,'packageName',packageName]);
  3119. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TExpansionFile) as TExpansionFile;
  3120. end;
  3121. Function TEditsExpansionfilesResource.Patch(apkVersionCode: integer; editId: string; expansionFileType: string; packageName: string; aExpansionFile : TExpansionFile) : TExpansionFile;
  3122. Const
  3123. _HTTPMethod = 'PATCH';
  3124. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}';
  3125. _Methodid = 'androidpublisher.edits.expansionfiles.patch';
  3126. Var
  3127. _P : String;
  3128. begin
  3129. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'expansionFileType',expansionFileType,'packageName',packageName]);
  3130. Result:=ServiceCall(_HTTPMethod,_P,'',aExpansionFile,TExpansionFile) as TExpansionFile;
  3131. end;
  3132. Function TEditsExpansionfilesResource.Update(apkVersionCode: integer; editId: string; expansionFileType: string; packageName: string; aExpansionFile : TExpansionFile) : TExpansionFile;
  3133. Const
  3134. _HTTPMethod = 'PUT';
  3135. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}';
  3136. _Methodid = 'androidpublisher.edits.expansionfiles.update';
  3137. Var
  3138. _P : String;
  3139. begin
  3140. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'expansionFileType',expansionFileType,'packageName',packageName]);
  3141. Result:=ServiceCall(_HTTPMethod,_P,'',aExpansionFile,TExpansionFile) as TExpansionFile;
  3142. end;
  3143. Function TEditsExpansionfilesResource.Upload(apkVersionCode: integer; editId: string; expansionFileType: string; packageName: string) : TExpansionFilesUploadResponse;
  3144. Const
  3145. _HTTPMethod = 'POST';
  3146. _Path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}';
  3147. _Methodid = 'androidpublisher.edits.expansionfiles.upload';
  3148. Var
  3149. _P : String;
  3150. begin
  3151. _P:=SubstitutePath(_Path,['apkVersionCode',apkVersionCode,'editId',editId,'expansionFileType',expansionFileType,'packageName',packageName]);
  3152. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TExpansionFilesUploadResponse) as TExpansionFilesUploadResponse;
  3153. end;
  3154. { --------------------------------------------------------------------
  3155. TEditsImagesResource
  3156. --------------------------------------------------------------------}
  3157. Class Function TEditsImagesResource.ResourceName : String;
  3158. begin
  3159. Result:='images';
  3160. end;
  3161. Class Function TEditsImagesResource.DefaultAPI : TGoogleAPIClass;
  3162. begin
  3163. Result:=TandroidpublisherAPI;
  3164. end;
  3165. Procedure TEditsImagesResource.Delete(editId: string; imageId: string; imageType: string; language: string; packageName: string);
  3166. Const
  3167. _HTTPMethod = 'DELETE';
  3168. _Path = '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}';
  3169. _Methodid = 'androidpublisher.edits.images.delete';
  3170. Var
  3171. _P : String;
  3172. begin
  3173. _P:=SubstitutePath(_Path,['editId',editId,'imageId',imageId,'imageType',imageType,'language',language,'packageName',packageName]);
  3174. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3175. end;
  3176. Function TEditsImagesResource.Deleteall(editId: string; imageType: string; language: string; packageName: string) : TImagesDeleteAllResponse;
  3177. Const
  3178. _HTTPMethod = 'DELETE';
  3179. _Path = '{packageName}/edits/{editId}/listings/{language}/{imageType}';
  3180. _Methodid = 'androidpublisher.edits.images.deleteall';
  3181. Var
  3182. _P : String;
  3183. begin
  3184. _P:=SubstitutePath(_Path,['editId',editId,'imageType',imageType,'language',language,'packageName',packageName]);
  3185. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TImagesDeleteAllResponse) as TImagesDeleteAllResponse;
  3186. end;
  3187. Function TEditsImagesResource.List(editId: string; imageType: string; language: string; packageName: string) : TImagesListResponse;
  3188. Const
  3189. _HTTPMethod = 'GET';
  3190. _Path = '{packageName}/edits/{editId}/listings/{language}/{imageType}';
  3191. _Methodid = 'androidpublisher.edits.images.list';
  3192. Var
  3193. _P : String;
  3194. begin
  3195. _P:=SubstitutePath(_Path,['editId',editId,'imageType',imageType,'language',language,'packageName',packageName]);
  3196. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TImagesListResponse) as TImagesListResponse;
  3197. end;
  3198. Function TEditsImagesResource.Upload(editId: string; imageType: string; language: string; packageName: string) : TImagesUploadResponse;
  3199. Const
  3200. _HTTPMethod = 'POST';
  3201. _Path = '{packageName}/edits/{editId}/listings/{language}/{imageType}';
  3202. _Methodid = 'androidpublisher.edits.images.upload';
  3203. Var
  3204. _P : String;
  3205. begin
  3206. _P:=SubstitutePath(_Path,['editId',editId,'imageType',imageType,'language',language,'packageName',packageName]);
  3207. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TImagesUploadResponse) as TImagesUploadResponse;
  3208. end;
  3209. { --------------------------------------------------------------------
  3210. TEditsListingsResource
  3211. --------------------------------------------------------------------}
  3212. Class Function TEditsListingsResource.ResourceName : String;
  3213. begin
  3214. Result:='listings';
  3215. end;
  3216. Class Function TEditsListingsResource.DefaultAPI : TGoogleAPIClass;
  3217. begin
  3218. Result:=TandroidpublisherAPI;
  3219. end;
  3220. Procedure TEditsListingsResource.Delete(editId: string; language: string; packageName: string);
  3221. Const
  3222. _HTTPMethod = 'DELETE';
  3223. _Path = '{packageName}/edits/{editId}/listings/{language}';
  3224. _Methodid = 'androidpublisher.edits.listings.delete';
  3225. Var
  3226. _P : String;
  3227. begin
  3228. _P:=SubstitutePath(_Path,['editId',editId,'language',language,'packageName',packageName]);
  3229. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3230. end;
  3231. Procedure TEditsListingsResource.Deleteall(editId: string; packageName: string);
  3232. Const
  3233. _HTTPMethod = 'DELETE';
  3234. _Path = '{packageName}/edits/{editId}/listings';
  3235. _Methodid = 'androidpublisher.edits.listings.deleteall';
  3236. Var
  3237. _P : String;
  3238. begin
  3239. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3240. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3241. end;
  3242. Function TEditsListingsResource.Get(editId: string; language: string; packageName: string) : TListing;
  3243. Const
  3244. _HTTPMethod = 'GET';
  3245. _Path = '{packageName}/edits/{editId}/listings/{language}';
  3246. _Methodid = 'androidpublisher.edits.listings.get';
  3247. Var
  3248. _P : String;
  3249. begin
  3250. _P:=SubstitutePath(_Path,['editId',editId,'language',language,'packageName',packageName]);
  3251. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListing) as TListing;
  3252. end;
  3253. Function TEditsListingsResource.List(editId: string; packageName: string) : TListingsListResponse;
  3254. Const
  3255. _HTTPMethod = 'GET';
  3256. _Path = '{packageName}/edits/{editId}/listings';
  3257. _Methodid = 'androidpublisher.edits.listings.list';
  3258. Var
  3259. _P : String;
  3260. begin
  3261. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3262. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListingsListResponse) as TListingsListResponse;
  3263. end;
  3264. Function TEditsListingsResource.Patch(editId: string; language: string; packageName: string; aListing : TListing) : TListing;
  3265. Const
  3266. _HTTPMethod = 'PATCH';
  3267. _Path = '{packageName}/edits/{editId}/listings/{language}';
  3268. _Methodid = 'androidpublisher.edits.listings.patch';
  3269. Var
  3270. _P : String;
  3271. begin
  3272. _P:=SubstitutePath(_Path,['editId',editId,'language',language,'packageName',packageName]);
  3273. Result:=ServiceCall(_HTTPMethod,_P,'',aListing,TListing) as TListing;
  3274. end;
  3275. Function TEditsListingsResource.Update(editId: string; language: string; packageName: string; aListing : TListing) : TListing;
  3276. Const
  3277. _HTTPMethod = 'PUT';
  3278. _Path = '{packageName}/edits/{editId}/listings/{language}';
  3279. _Methodid = 'androidpublisher.edits.listings.update';
  3280. Var
  3281. _P : String;
  3282. begin
  3283. _P:=SubstitutePath(_Path,['editId',editId,'language',language,'packageName',packageName]);
  3284. Result:=ServiceCall(_HTTPMethod,_P,'',aListing,TListing) as TListing;
  3285. end;
  3286. { --------------------------------------------------------------------
  3287. TEditsTestersResource
  3288. --------------------------------------------------------------------}
  3289. Class Function TEditsTestersResource.ResourceName : String;
  3290. begin
  3291. Result:='testers';
  3292. end;
  3293. Class Function TEditsTestersResource.DefaultAPI : TGoogleAPIClass;
  3294. begin
  3295. Result:=TandroidpublisherAPI;
  3296. end;
  3297. Function TEditsTestersResource.Get(editId: string; packageName: string; track: string) : TTesters;
  3298. Const
  3299. _HTTPMethod = 'GET';
  3300. _Path = '{packageName}/edits/{editId}/testers/{track}';
  3301. _Methodid = 'androidpublisher.edits.testers.get';
  3302. Var
  3303. _P : String;
  3304. begin
  3305. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName,'track',track]);
  3306. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TTesters) as TTesters;
  3307. end;
  3308. Function TEditsTestersResource.Patch(editId: string; packageName: string; track: string; aTesters : TTesters) : TTesters;
  3309. Const
  3310. _HTTPMethod = 'PATCH';
  3311. _Path = '{packageName}/edits/{editId}/testers/{track}';
  3312. _Methodid = 'androidpublisher.edits.testers.patch';
  3313. Var
  3314. _P : String;
  3315. begin
  3316. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName,'track',track]);
  3317. Result:=ServiceCall(_HTTPMethod,_P,'',aTesters,TTesters) as TTesters;
  3318. end;
  3319. Function TEditsTestersResource.Update(editId: string; packageName: string; track: string; aTesters : TTesters) : TTesters;
  3320. Const
  3321. _HTTPMethod = 'PUT';
  3322. _Path = '{packageName}/edits/{editId}/testers/{track}';
  3323. _Methodid = 'androidpublisher.edits.testers.update';
  3324. Var
  3325. _P : String;
  3326. begin
  3327. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName,'track',track]);
  3328. Result:=ServiceCall(_HTTPMethod,_P,'',aTesters,TTesters) as TTesters;
  3329. end;
  3330. { --------------------------------------------------------------------
  3331. TEditsTracksResource
  3332. --------------------------------------------------------------------}
  3333. Class Function TEditsTracksResource.ResourceName : String;
  3334. begin
  3335. Result:='tracks';
  3336. end;
  3337. Class Function TEditsTracksResource.DefaultAPI : TGoogleAPIClass;
  3338. begin
  3339. Result:=TandroidpublisherAPI;
  3340. end;
  3341. Function TEditsTracksResource.Get(editId: string; packageName: string; track: string) : TTrack;
  3342. Const
  3343. _HTTPMethod = 'GET';
  3344. _Path = '{packageName}/edits/{editId}/tracks/{track}';
  3345. _Methodid = 'androidpublisher.edits.tracks.get';
  3346. Var
  3347. _P : String;
  3348. begin
  3349. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName,'track',track]);
  3350. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TTrack) as TTrack;
  3351. end;
  3352. Function TEditsTracksResource.List(editId: string; packageName: string) : TTracksListResponse;
  3353. Const
  3354. _HTTPMethod = 'GET';
  3355. _Path = '{packageName}/edits/{editId}/tracks';
  3356. _Methodid = 'androidpublisher.edits.tracks.list';
  3357. Var
  3358. _P : String;
  3359. begin
  3360. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3361. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TTracksListResponse) as TTracksListResponse;
  3362. end;
  3363. Function TEditsTracksResource.Patch(editId: string; packageName: string; track: string; aTrack : TTrack) : TTrack;
  3364. Const
  3365. _HTTPMethod = 'PATCH';
  3366. _Path = '{packageName}/edits/{editId}/tracks/{track}';
  3367. _Methodid = 'androidpublisher.edits.tracks.patch';
  3368. Var
  3369. _P : String;
  3370. begin
  3371. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName,'track',track]);
  3372. Result:=ServiceCall(_HTTPMethod,_P,'',aTrack,TTrack) as TTrack;
  3373. end;
  3374. Function TEditsTracksResource.Update(editId: string; packageName: string; track: string; aTrack : TTrack) : TTrack;
  3375. Const
  3376. _HTTPMethod = 'PUT';
  3377. _Path = '{packageName}/edits/{editId}/tracks/{track}';
  3378. _Methodid = 'androidpublisher.edits.tracks.update';
  3379. Var
  3380. _P : String;
  3381. begin
  3382. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName,'track',track]);
  3383. Result:=ServiceCall(_HTTPMethod,_P,'',aTrack,TTrack) as TTrack;
  3384. end;
  3385. { --------------------------------------------------------------------
  3386. TEditsResource
  3387. --------------------------------------------------------------------}
  3388. Class Function TEditsResource.ResourceName : String;
  3389. begin
  3390. Result:='edits';
  3391. end;
  3392. Class Function TEditsResource.DefaultAPI : TGoogleAPIClass;
  3393. begin
  3394. Result:=TandroidpublisherAPI;
  3395. end;
  3396. Function TEditsResource.Commit(editId: string; packageName: string) : TAppEdit;
  3397. Const
  3398. _HTTPMethod = 'POST';
  3399. _Path = '{packageName}/edits/{editId}:commit';
  3400. _Methodid = 'androidpublisher.edits.commit';
  3401. Var
  3402. _P : String;
  3403. begin
  3404. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3405. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAppEdit) as TAppEdit;
  3406. end;
  3407. Procedure TEditsResource.Delete(editId: string; packageName: string);
  3408. Const
  3409. _HTTPMethod = 'DELETE';
  3410. _Path = '{packageName}/edits/{editId}';
  3411. _Methodid = 'androidpublisher.edits.delete';
  3412. Var
  3413. _P : String;
  3414. begin
  3415. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3416. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3417. end;
  3418. Function TEditsResource.Get(editId: string; packageName: string) : TAppEdit;
  3419. Const
  3420. _HTTPMethod = 'GET';
  3421. _Path = '{packageName}/edits/{editId}';
  3422. _Methodid = 'androidpublisher.edits.get';
  3423. Var
  3424. _P : String;
  3425. begin
  3426. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3427. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAppEdit) as TAppEdit;
  3428. end;
  3429. Function TEditsResource.Insert(packageName: string; aAppEdit : TAppEdit) : TAppEdit;
  3430. Const
  3431. _HTTPMethod = 'POST';
  3432. _Path = '{packageName}/edits';
  3433. _Methodid = 'androidpublisher.edits.insert';
  3434. Var
  3435. _P : String;
  3436. begin
  3437. _P:=SubstitutePath(_Path,['packageName',packageName]);
  3438. Result:=ServiceCall(_HTTPMethod,_P,'',aAppEdit,TAppEdit) as TAppEdit;
  3439. end;
  3440. Function TEditsResource.Validate(editId: string; packageName: string) : TAppEdit;
  3441. Const
  3442. _HTTPMethod = 'POST';
  3443. _Path = '{packageName}/edits/{editId}:validate';
  3444. _Methodid = 'androidpublisher.edits.validate';
  3445. Var
  3446. _P : String;
  3447. begin
  3448. _P:=SubstitutePath(_Path,['editId',editId,'packageName',packageName]);
  3449. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TAppEdit) as TAppEdit;
  3450. end;
  3451. Function TEditsResource.GetApklistingsInstance : TEditsApklistingsResource;
  3452. begin
  3453. if (FApklistingsInstance=Nil) then
  3454. FApklistingsInstance:=CreateApklistingsResource;
  3455. Result:=FApklistingsInstance;
  3456. end;
  3457. Function TEditsResource.CreateApklistingsResource : TEditsApklistingsResource;
  3458. begin
  3459. Result:=CreateApklistingsResource(Self);
  3460. end;
  3461. Function TEditsResource.CreateApklistingsResource(AOwner : TComponent) : TEditsApklistingsResource;
  3462. begin
  3463. Result:=TEditsApklistingsResource.Create(AOwner);
  3464. Result.API:=Self.API;
  3465. end;
  3466. Function TEditsResource.GetApksInstance : TEditsApksResource;
  3467. begin
  3468. if (FApksInstance=Nil) then
  3469. FApksInstance:=CreateApksResource;
  3470. Result:=FApksInstance;
  3471. end;
  3472. Function TEditsResource.CreateApksResource : TEditsApksResource;
  3473. begin
  3474. Result:=CreateApksResource(Self);
  3475. end;
  3476. Function TEditsResource.CreateApksResource(AOwner : TComponent) : TEditsApksResource;
  3477. begin
  3478. Result:=TEditsApksResource.Create(AOwner);
  3479. Result.API:=Self.API;
  3480. end;
  3481. Function TEditsResource.GetDetailsInstance : TEditsDetailsResource;
  3482. begin
  3483. if (FDetailsInstance=Nil) then
  3484. FDetailsInstance:=CreateDetailsResource;
  3485. Result:=FDetailsInstance;
  3486. end;
  3487. Function TEditsResource.CreateDetailsResource : TEditsDetailsResource;
  3488. begin
  3489. Result:=CreateDetailsResource(Self);
  3490. end;
  3491. Function TEditsResource.CreateDetailsResource(AOwner : TComponent) : TEditsDetailsResource;
  3492. begin
  3493. Result:=TEditsDetailsResource.Create(AOwner);
  3494. Result.API:=Self.API;
  3495. end;
  3496. Function TEditsResource.GetExpansionfilesInstance : TEditsExpansionfilesResource;
  3497. begin
  3498. if (FExpansionfilesInstance=Nil) then
  3499. FExpansionfilesInstance:=CreateExpansionfilesResource;
  3500. Result:=FExpansionfilesInstance;
  3501. end;
  3502. Function TEditsResource.CreateExpansionfilesResource : TEditsExpansionfilesResource;
  3503. begin
  3504. Result:=CreateExpansionfilesResource(Self);
  3505. end;
  3506. Function TEditsResource.CreateExpansionfilesResource(AOwner : TComponent) : TEditsExpansionfilesResource;
  3507. begin
  3508. Result:=TEditsExpansionfilesResource.Create(AOwner);
  3509. Result.API:=Self.API;
  3510. end;
  3511. Function TEditsResource.GetImagesInstance : TEditsImagesResource;
  3512. begin
  3513. if (FImagesInstance=Nil) then
  3514. FImagesInstance:=CreateImagesResource;
  3515. Result:=FImagesInstance;
  3516. end;
  3517. Function TEditsResource.CreateImagesResource : TEditsImagesResource;
  3518. begin
  3519. Result:=CreateImagesResource(Self);
  3520. end;
  3521. Function TEditsResource.CreateImagesResource(AOwner : TComponent) : TEditsImagesResource;
  3522. begin
  3523. Result:=TEditsImagesResource.Create(AOwner);
  3524. Result.API:=Self.API;
  3525. end;
  3526. Function TEditsResource.GetListingsInstance : TEditsListingsResource;
  3527. begin
  3528. if (FListingsInstance=Nil) then
  3529. FListingsInstance:=CreateListingsResource;
  3530. Result:=FListingsInstance;
  3531. end;
  3532. Function TEditsResource.CreateListingsResource : TEditsListingsResource;
  3533. begin
  3534. Result:=CreateListingsResource(Self);
  3535. end;
  3536. Function TEditsResource.CreateListingsResource(AOwner : TComponent) : TEditsListingsResource;
  3537. begin
  3538. Result:=TEditsListingsResource.Create(AOwner);
  3539. Result.API:=Self.API;
  3540. end;
  3541. Function TEditsResource.GetTestersInstance : TEditsTestersResource;
  3542. begin
  3543. if (FTestersInstance=Nil) then
  3544. FTestersInstance:=CreateTestersResource;
  3545. Result:=FTestersInstance;
  3546. end;
  3547. Function TEditsResource.CreateTestersResource : TEditsTestersResource;
  3548. begin
  3549. Result:=CreateTestersResource(Self);
  3550. end;
  3551. Function TEditsResource.CreateTestersResource(AOwner : TComponent) : TEditsTestersResource;
  3552. begin
  3553. Result:=TEditsTestersResource.Create(AOwner);
  3554. Result.API:=Self.API;
  3555. end;
  3556. Function TEditsResource.GetTracksInstance : TEditsTracksResource;
  3557. begin
  3558. if (FTracksInstance=Nil) then
  3559. FTracksInstance:=CreateTracksResource;
  3560. Result:=FTracksInstance;
  3561. end;
  3562. Function TEditsResource.CreateTracksResource : TEditsTracksResource;
  3563. begin
  3564. Result:=CreateTracksResource(Self);
  3565. end;
  3566. Function TEditsResource.CreateTracksResource(AOwner : TComponent) : TEditsTracksResource;
  3567. begin
  3568. Result:=TEditsTracksResource.Create(AOwner);
  3569. Result.API:=Self.API;
  3570. end;
  3571. { --------------------------------------------------------------------
  3572. TEntitlementsResource
  3573. --------------------------------------------------------------------}
  3574. Class Function TEntitlementsResource.ResourceName : String;
  3575. begin
  3576. Result:='entitlements';
  3577. end;
  3578. Class Function TEntitlementsResource.DefaultAPI : TGoogleAPIClass;
  3579. begin
  3580. Result:=TandroidpublisherAPI;
  3581. end;
  3582. Function TEntitlementsResource.List(packageName: string; AQuery : string = '') : TEntitlementsListResponse;
  3583. Const
  3584. _HTTPMethod = 'GET';
  3585. _Path = '{packageName}/entitlements';
  3586. _Methodid = 'androidpublisher.entitlements.list';
  3587. Var
  3588. _P : String;
  3589. begin
  3590. _P:=SubstitutePath(_Path,['packageName',packageName]);
  3591. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEntitlementsListResponse) as TEntitlementsListResponse;
  3592. end;
  3593. Function TEntitlementsResource.List(packageName: string; AQuery : TEntitlementslistOptions) : TEntitlementsListResponse;
  3594. Var
  3595. _Q : String;
  3596. begin
  3597. _Q:='';
  3598. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3599. AddToQuery(_Q,'productId',AQuery.productId);
  3600. AddToQuery(_Q,'startIndex',AQuery.startIndex);
  3601. AddToQuery(_Q,'token',AQuery.token);
  3602. Result:=List(packageName,_Q);
  3603. end;
  3604. { --------------------------------------------------------------------
  3605. TInappproductsResource
  3606. --------------------------------------------------------------------}
  3607. Class Function TInappproductsResource.ResourceName : String;
  3608. begin
  3609. Result:='inappproducts';
  3610. end;
  3611. Class Function TInappproductsResource.DefaultAPI : TGoogleAPIClass;
  3612. begin
  3613. Result:=TandroidpublisherAPI;
  3614. end;
  3615. Function TInappproductsResource.Batch(aInappproductsBatchRequest : TInappproductsBatchRequest) : TInappproductsBatchResponse;
  3616. Const
  3617. _HTTPMethod = 'POST';
  3618. _Path = 'inappproducts/batch';
  3619. _Methodid = 'androidpublisher.inappproducts.batch';
  3620. begin
  3621. Result:=ServiceCall(_HTTPMethod,_Path,'',aInappproductsBatchRequest,TInappproductsBatchResponse) as TInappproductsBatchResponse;
  3622. end;
  3623. Procedure TInappproductsResource.Delete(packageName: string; sku: string);
  3624. Const
  3625. _HTTPMethod = 'DELETE';
  3626. _Path = '{packageName}/inappproducts/{sku}';
  3627. _Methodid = 'androidpublisher.inappproducts.delete';
  3628. Var
  3629. _P : String;
  3630. begin
  3631. _P:=SubstitutePath(_Path,['packageName',packageName,'sku',sku]);
  3632. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3633. end;
  3634. Function TInappproductsResource.Get(packageName: string; sku: string) : TInAppProduct;
  3635. Const
  3636. _HTTPMethod = 'GET';
  3637. _Path = '{packageName}/inappproducts/{sku}';
  3638. _Methodid = 'androidpublisher.inappproducts.get';
  3639. Var
  3640. _P : String;
  3641. begin
  3642. _P:=SubstitutePath(_Path,['packageName',packageName,'sku',sku]);
  3643. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TInAppProduct) as TInAppProduct;
  3644. end;
  3645. Function TInappproductsResource.Insert(packageName: string; aInAppProduct : TInAppProduct; AQuery : string = '') : TInAppProduct;
  3646. Const
  3647. _HTTPMethod = 'POST';
  3648. _Path = '{packageName}/inappproducts';
  3649. _Methodid = 'androidpublisher.inappproducts.insert';
  3650. Var
  3651. _P : String;
  3652. begin
  3653. _P:=SubstitutePath(_Path,['packageName',packageName]);
  3654. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aInAppProduct,TInAppProduct) as TInAppProduct;
  3655. end;
  3656. Function TInappproductsResource.Insert(packageName: string; aInAppProduct : TInAppProduct; AQuery : TInappproductsinsertOptions) : TInAppProduct;
  3657. Var
  3658. _Q : String;
  3659. begin
  3660. _Q:='';
  3661. AddToQuery(_Q,'autoConvertMissingPrices',AQuery.autoConvertMissingPrices);
  3662. Result:=Insert(packageName,aInAppProduct,_Q);
  3663. end;
  3664. Function TInappproductsResource.List(packageName: string; AQuery : string = '') : TInappproductsListResponse;
  3665. Const
  3666. _HTTPMethod = 'GET';
  3667. _Path = '{packageName}/inappproducts';
  3668. _Methodid = 'androidpublisher.inappproducts.list';
  3669. Var
  3670. _P : String;
  3671. begin
  3672. _P:=SubstitutePath(_Path,['packageName',packageName]);
  3673. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TInappproductsListResponse) as TInappproductsListResponse;
  3674. end;
  3675. Function TInappproductsResource.List(packageName: string; AQuery : TInappproductslistOptions) : TInappproductsListResponse;
  3676. Var
  3677. _Q : String;
  3678. begin
  3679. _Q:='';
  3680. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3681. AddToQuery(_Q,'startIndex',AQuery.startIndex);
  3682. AddToQuery(_Q,'token',AQuery.token);
  3683. Result:=List(packageName,_Q);
  3684. end;
  3685. Function TInappproductsResource.Patch(packageName: string; sku: string; aInAppProduct : TInAppProduct; AQuery : string = '') : TInAppProduct;
  3686. Const
  3687. _HTTPMethod = 'PATCH';
  3688. _Path = '{packageName}/inappproducts/{sku}';
  3689. _Methodid = 'androidpublisher.inappproducts.patch';
  3690. Var
  3691. _P : String;
  3692. begin
  3693. _P:=SubstitutePath(_Path,['packageName',packageName,'sku',sku]);
  3694. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aInAppProduct,TInAppProduct) as TInAppProduct;
  3695. end;
  3696. Function TInappproductsResource.Patch(packageName: string; sku: string; aInAppProduct : TInAppProduct; AQuery : TInappproductspatchOptions) : TInAppProduct;
  3697. Var
  3698. _Q : String;
  3699. begin
  3700. _Q:='';
  3701. AddToQuery(_Q,'autoConvertMissingPrices',AQuery.autoConvertMissingPrices);
  3702. Result:=Patch(packageName,sku,aInAppProduct,_Q);
  3703. end;
  3704. Function TInappproductsResource.Update(packageName: string; sku: string; aInAppProduct : TInAppProduct; AQuery : string = '') : TInAppProduct;
  3705. Const
  3706. _HTTPMethod = 'PUT';
  3707. _Path = '{packageName}/inappproducts/{sku}';
  3708. _Methodid = 'androidpublisher.inappproducts.update';
  3709. Var
  3710. _P : String;
  3711. begin
  3712. _P:=SubstitutePath(_Path,['packageName',packageName,'sku',sku]);
  3713. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aInAppProduct,TInAppProduct) as TInAppProduct;
  3714. end;
  3715. Function TInappproductsResource.Update(packageName: string; sku: string; aInAppProduct : TInAppProduct; AQuery : TInappproductsupdateOptions) : TInAppProduct;
  3716. Var
  3717. _Q : String;
  3718. begin
  3719. _Q:='';
  3720. AddToQuery(_Q,'autoConvertMissingPrices',AQuery.autoConvertMissingPrices);
  3721. Result:=Update(packageName,sku,aInAppProduct,_Q);
  3722. end;
  3723. { --------------------------------------------------------------------
  3724. TPurchasesProductsResource
  3725. --------------------------------------------------------------------}
  3726. Class Function TPurchasesProductsResource.ResourceName : String;
  3727. begin
  3728. Result:='products';
  3729. end;
  3730. Class Function TPurchasesProductsResource.DefaultAPI : TGoogleAPIClass;
  3731. begin
  3732. Result:=TandroidpublisherAPI;
  3733. end;
  3734. Function TPurchasesProductsResource.Get(packageName: string; productId: string; token: string) : TProductPurchase;
  3735. Const
  3736. _HTTPMethod = 'GET';
  3737. _Path = '{packageName}/purchases/products/{productId}/tokens/{token}';
  3738. _Methodid = 'androidpublisher.purchases.products.get';
  3739. Var
  3740. _P : String;
  3741. begin
  3742. _P:=SubstitutePath(_Path,['packageName',packageName,'productId',productId,'token',token]);
  3743. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProductPurchase) as TProductPurchase;
  3744. end;
  3745. { --------------------------------------------------------------------
  3746. TPurchasesSubscriptionsResource
  3747. --------------------------------------------------------------------}
  3748. Class Function TPurchasesSubscriptionsResource.ResourceName : String;
  3749. begin
  3750. Result:='subscriptions';
  3751. end;
  3752. Class Function TPurchasesSubscriptionsResource.DefaultAPI : TGoogleAPIClass;
  3753. begin
  3754. Result:=TandroidpublisherAPI;
  3755. end;
  3756. Procedure TPurchasesSubscriptionsResource.Cancel(packageName: string; subscriptionId: string; token: string);
  3757. Const
  3758. _HTTPMethod = 'POST';
  3759. _Path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel';
  3760. _Methodid = 'androidpublisher.purchases.subscriptions.cancel';
  3761. Var
  3762. _P : String;
  3763. begin
  3764. _P:=SubstitutePath(_Path,['packageName',packageName,'subscriptionId',subscriptionId,'token',token]);
  3765. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3766. end;
  3767. Function TPurchasesSubscriptionsResource.Defer(packageName: string; subscriptionId: string; token: string; aSubscriptionPurchasesDeferRequest : TSubscriptionPurchasesDeferRequest) : TSubscriptionPurchasesDeferResponse;
  3768. Const
  3769. _HTTPMethod = 'POST';
  3770. _Path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer';
  3771. _Methodid = 'androidpublisher.purchases.subscriptions.defer';
  3772. Var
  3773. _P : String;
  3774. begin
  3775. _P:=SubstitutePath(_Path,['packageName',packageName,'subscriptionId',subscriptionId,'token',token]);
  3776. Result:=ServiceCall(_HTTPMethod,_P,'',aSubscriptionPurchasesDeferRequest,TSubscriptionPurchasesDeferResponse) as TSubscriptionPurchasesDeferResponse;
  3777. end;
  3778. Function TPurchasesSubscriptionsResource.Get(packageName: string; subscriptionId: string; token: string) : TSubscriptionPurchase;
  3779. Const
  3780. _HTTPMethod = 'GET';
  3781. _Path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}';
  3782. _Methodid = 'androidpublisher.purchases.subscriptions.get';
  3783. Var
  3784. _P : String;
  3785. begin
  3786. _P:=SubstitutePath(_Path,['packageName',packageName,'subscriptionId',subscriptionId,'token',token]);
  3787. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TSubscriptionPurchase) as TSubscriptionPurchase;
  3788. end;
  3789. Procedure TPurchasesSubscriptionsResource.Refund(packageName: string; subscriptionId: string; token: string);
  3790. Const
  3791. _HTTPMethod = 'POST';
  3792. _Path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund';
  3793. _Methodid = 'androidpublisher.purchases.subscriptions.refund';
  3794. Var
  3795. _P : String;
  3796. begin
  3797. _P:=SubstitutePath(_Path,['packageName',packageName,'subscriptionId',subscriptionId,'token',token]);
  3798. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3799. end;
  3800. Procedure TPurchasesSubscriptionsResource.Revoke(packageName: string; subscriptionId: string; token: string);
  3801. Const
  3802. _HTTPMethod = 'POST';
  3803. _Path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke';
  3804. _Methodid = 'androidpublisher.purchases.subscriptions.revoke';
  3805. Var
  3806. _P : String;
  3807. begin
  3808. _P:=SubstitutePath(_Path,['packageName',packageName,'subscriptionId',subscriptionId,'token',token]);
  3809. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3810. end;
  3811. { --------------------------------------------------------------------
  3812. TPurchasesResource
  3813. --------------------------------------------------------------------}
  3814. Class Function TPurchasesResource.ResourceName : String;
  3815. begin
  3816. Result:='purchases';
  3817. end;
  3818. Class Function TPurchasesResource.DefaultAPI : TGoogleAPIClass;
  3819. begin
  3820. Result:=TandroidpublisherAPI;
  3821. end;
  3822. Function TPurchasesResource.GetProductsInstance : TPurchasesProductsResource;
  3823. begin
  3824. if (FProductsInstance=Nil) then
  3825. FProductsInstance:=CreateProductsResource;
  3826. Result:=FProductsInstance;
  3827. end;
  3828. Function TPurchasesResource.CreateProductsResource : TPurchasesProductsResource;
  3829. begin
  3830. Result:=CreateProductsResource(Self);
  3831. end;
  3832. Function TPurchasesResource.CreateProductsResource(AOwner : TComponent) : TPurchasesProductsResource;
  3833. begin
  3834. Result:=TPurchasesProductsResource.Create(AOwner);
  3835. Result.API:=Self.API;
  3836. end;
  3837. Function TPurchasesResource.GetSubscriptionsInstance : TPurchasesSubscriptionsResource;
  3838. begin
  3839. if (FSubscriptionsInstance=Nil) then
  3840. FSubscriptionsInstance:=CreateSubscriptionsResource;
  3841. Result:=FSubscriptionsInstance;
  3842. end;
  3843. Function TPurchasesResource.CreateSubscriptionsResource : TPurchasesSubscriptionsResource;
  3844. begin
  3845. Result:=CreateSubscriptionsResource(Self);
  3846. end;
  3847. Function TPurchasesResource.CreateSubscriptionsResource(AOwner : TComponent) : TPurchasesSubscriptionsResource;
  3848. begin
  3849. Result:=TPurchasesSubscriptionsResource.Create(AOwner);
  3850. Result.API:=Self.API;
  3851. end;
  3852. { --------------------------------------------------------------------
  3853. TReviewsResource
  3854. --------------------------------------------------------------------}
  3855. Class Function TReviewsResource.ResourceName : String;
  3856. begin
  3857. Result:='reviews';
  3858. end;
  3859. Class Function TReviewsResource.DefaultAPI : TGoogleAPIClass;
  3860. begin
  3861. Result:=TandroidpublisherAPI;
  3862. end;
  3863. Function TReviewsResource.Get(packageName: string; reviewId: string) : TReview;
  3864. Const
  3865. _HTTPMethod = 'GET';
  3866. _Path = '{packageName}/reviews/{reviewId}';
  3867. _Methodid = 'androidpublisher.reviews.get';
  3868. Var
  3869. _P : String;
  3870. begin
  3871. _P:=SubstitutePath(_Path,['packageName',packageName,'reviewId',reviewId]);
  3872. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TReview) as TReview;
  3873. end;
  3874. Function TReviewsResource.List(packageName: string; AQuery : string = '') : TReviewsListResponse;
  3875. Const
  3876. _HTTPMethod = 'GET';
  3877. _Path = '{packageName}/reviews';
  3878. _Methodid = 'androidpublisher.reviews.list';
  3879. Var
  3880. _P : String;
  3881. begin
  3882. _P:=SubstitutePath(_Path,['packageName',packageName]);
  3883. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TReviewsListResponse) as TReviewsListResponse;
  3884. end;
  3885. Function TReviewsResource.List(packageName: string; AQuery : TReviewslistOptions) : TReviewsListResponse;
  3886. Var
  3887. _Q : String;
  3888. begin
  3889. _Q:='';
  3890. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3891. AddToQuery(_Q,'startIndex',AQuery.startIndex);
  3892. AddToQuery(_Q,'token',AQuery.token);
  3893. Result:=List(packageName,_Q);
  3894. end;
  3895. Function TReviewsResource.Reply(packageName: string; reviewId: string; aReviewsReplyRequest : TReviewsReplyRequest) : TReviewsReplyResponse;
  3896. Const
  3897. _HTTPMethod = 'POST';
  3898. _Path = '{packageName}/reviews/{reviewId}:reply';
  3899. _Methodid = 'androidpublisher.reviews.reply';
  3900. Var
  3901. _P : String;
  3902. begin
  3903. _P:=SubstitutePath(_Path,['packageName',packageName,'reviewId',reviewId]);
  3904. Result:=ServiceCall(_HTTPMethod,_P,'',aReviewsReplyRequest,TReviewsReplyResponse) as TReviewsReplyResponse;
  3905. end;
  3906. { --------------------------------------------------------------------
  3907. TAndroidpublisherAPI
  3908. --------------------------------------------------------------------}
  3909. Class Function TAndroidpublisherAPI.APIName : String;
  3910. begin
  3911. Result:='androidpublisher';
  3912. end;
  3913. Class Function TAndroidpublisherAPI.APIVersion : String;
  3914. begin
  3915. Result:='v2';
  3916. end;
  3917. Class Function TAndroidpublisherAPI.APIRevision : String;
  3918. begin
  3919. Result:='20160516';
  3920. end;
  3921. Class Function TAndroidpublisherAPI.APIID : String;
  3922. begin
  3923. Result:='androidpublisher:v2';
  3924. end;
  3925. Class Function TAndroidpublisherAPI.APITitle : String;
  3926. begin
  3927. Result:='Google Play Developer API';
  3928. end;
  3929. Class Function TAndroidpublisherAPI.APIDescription : String;
  3930. begin
  3931. Result:='Lets Android application developers access their Google Play accounts.';
  3932. end;
  3933. Class Function TAndroidpublisherAPI.APIOwnerDomain : String;
  3934. begin
  3935. Result:='google.com';
  3936. end;
  3937. Class Function TAndroidpublisherAPI.APIOwnerName : String;
  3938. begin
  3939. Result:='Google';
  3940. end;
  3941. Class Function TAndroidpublisherAPI.APIIcon16 : String;
  3942. begin
  3943. Result:='https://www.google.com/images/icons/product/android-16.png';
  3944. end;
  3945. Class Function TAndroidpublisherAPI.APIIcon32 : String;
  3946. begin
  3947. Result:='https://www.google.com/images/icons/product/android-32.png';
  3948. end;
  3949. Class Function TAndroidpublisherAPI.APIdocumentationLink : String;
  3950. begin
  3951. Result:='https://developers.google.com/android-publisher';
  3952. end;
  3953. Class Function TAndroidpublisherAPI.APIrootUrl : string;
  3954. begin
  3955. Result:='https://www.googleapis.com/';
  3956. end;
  3957. Class Function TAndroidpublisherAPI.APIbasePath : string;
  3958. begin
  3959. Result:='/androidpublisher/v2/applications/';
  3960. end;
  3961. Class Function TAndroidpublisherAPI.APIbaseURL : String;
  3962. begin
  3963. Result:='https://www.googleapis.com/androidpublisher/v2/applications/';
  3964. end;
  3965. Class Function TAndroidpublisherAPI.APIProtocol : string;
  3966. begin
  3967. Result:='rest';
  3968. end;
  3969. Class Function TAndroidpublisherAPI.APIservicePath : string;
  3970. begin
  3971. Result:='androidpublisher/v2/applications/';
  3972. end;
  3973. Class Function TAndroidpublisherAPI.APIbatchPath : String;
  3974. begin
  3975. Result:='batch';
  3976. end;
  3977. Class Function TAndroidpublisherAPI.APIAuthScopes : TScopeInfoArray;
  3978. begin
  3979. SetLength(Result,1);
  3980. Result[0].Name:='https://www.googleapis.com/auth/androidpublisher';
  3981. Result[0].Description:='View and manage your Google Play Developer account';
  3982. end;
  3983. Class Function TAndroidpublisherAPI.APINeedsAuth : Boolean;
  3984. begin
  3985. Result:=True;
  3986. end;
  3987. Class Procedure TAndroidpublisherAPI.RegisterAPIResources;
  3988. begin
  3989. TApk.RegisterObject;
  3990. TApkBinary.RegisterObject;
  3991. TApkListing.RegisterObject;
  3992. TApkListingsListResponse.RegisterObject;
  3993. TApksAddExternallyHostedRequest.RegisterObject;
  3994. TApksAddExternallyHostedResponse.RegisterObject;
  3995. TApksListResponse.RegisterObject;
  3996. TAppDetails.RegisterObject;
  3997. TAppEdit.RegisterObject;
  3998. TComment.RegisterObject;
  3999. TDeveloperComment.RegisterObject;
  4000. TEntitlement.RegisterObject;
  4001. TEntitlementsListResponse.RegisterObject;
  4002. TExpansionFile.RegisterObject;
  4003. TExpansionFilesUploadResponse.RegisterObject;
  4004. TExternallyHostedApk.RegisterObject;
  4005. TExternallyHostedApkUsesPermission.RegisterObject;
  4006. TImage.RegisterObject;
  4007. TImagesDeleteAllResponse.RegisterObject;
  4008. TImagesListResponse.RegisterObject;
  4009. TImagesUploadResponse.RegisterObject;
  4010. TInAppProductTypelistings.RegisterObject;
  4011. TInAppProductTypeprices.RegisterObject;
  4012. TInAppProduct.RegisterObject;
  4013. TInAppProductListing.RegisterObject;
  4014. TInappproductsBatchRequest.RegisterObject;
  4015. TInappproductsBatchRequestEntry.RegisterObject;
  4016. TInappproductsBatchResponse.RegisterObject;
  4017. TInappproductsBatchResponseEntry.RegisterObject;
  4018. TInappproductsInsertRequest.RegisterObject;
  4019. TInappproductsInsertResponse.RegisterObject;
  4020. TInappproductsListResponse.RegisterObject;
  4021. TInappproductsUpdateRequest.RegisterObject;
  4022. TInappproductsUpdateResponse.RegisterObject;
  4023. TListing.RegisterObject;
  4024. TListingsListResponse.RegisterObject;
  4025. TMonthDay.RegisterObject;
  4026. TPageInfo.RegisterObject;
  4027. TPrice.RegisterObject;
  4028. TProductPurchase.RegisterObject;
  4029. TProrate.RegisterObject;
  4030. TReview.RegisterObject;
  4031. TReviewReplyResult.RegisterObject;
  4032. TReviewsListResponse.RegisterObject;
  4033. TReviewsReplyRequest.RegisterObject;
  4034. TReviewsReplyResponse.RegisterObject;
  4035. TSeason.RegisterObject;
  4036. TSubscriptionDeferralInfo.RegisterObject;
  4037. TSubscriptionPurchase.RegisterObject;
  4038. TSubscriptionPurchasesDeferRequest.RegisterObject;
  4039. TSubscriptionPurchasesDeferResponse.RegisterObject;
  4040. TTesters.RegisterObject;
  4041. TTimestamp.RegisterObject;
  4042. TTokenPagination.RegisterObject;
  4043. TTrack.RegisterObject;
  4044. TTracksListResponse.RegisterObject;
  4045. TUserComment.RegisterObject;
  4046. end;
  4047. Function TAndroidpublisherAPI.GetEditsApklistingsInstance : TEditsApklistingsResource;
  4048. begin
  4049. if (FEditsApklistingsInstance=Nil) then
  4050. FEditsApklistingsInstance:=CreateEditsApklistingsResource;
  4051. Result:=FEditsApklistingsInstance;
  4052. end;
  4053. Function TAndroidpublisherAPI.CreateEditsApklistingsResource : TEditsApklistingsResource;
  4054. begin
  4055. Result:=CreateEditsApklistingsResource(Self);
  4056. end;
  4057. Function TAndroidpublisherAPI.CreateEditsApklistingsResource(AOwner : TComponent) : TEditsApklistingsResource;
  4058. begin
  4059. Result:=TEditsApklistingsResource.Create(AOwner);
  4060. Result.API:=Self.API;
  4061. end;
  4062. Function TAndroidpublisherAPI.GetEditsApksInstance : TEditsApksResource;
  4063. begin
  4064. if (FEditsApksInstance=Nil) then
  4065. FEditsApksInstance:=CreateEditsApksResource;
  4066. Result:=FEditsApksInstance;
  4067. end;
  4068. Function TAndroidpublisherAPI.CreateEditsApksResource : TEditsApksResource;
  4069. begin
  4070. Result:=CreateEditsApksResource(Self);
  4071. end;
  4072. Function TAndroidpublisherAPI.CreateEditsApksResource(AOwner : TComponent) : TEditsApksResource;
  4073. begin
  4074. Result:=TEditsApksResource.Create(AOwner);
  4075. Result.API:=Self.API;
  4076. end;
  4077. Function TAndroidpublisherAPI.GetEditsDetailsInstance : TEditsDetailsResource;
  4078. begin
  4079. if (FEditsDetailsInstance=Nil) then
  4080. FEditsDetailsInstance:=CreateEditsDetailsResource;
  4081. Result:=FEditsDetailsInstance;
  4082. end;
  4083. Function TAndroidpublisherAPI.CreateEditsDetailsResource : TEditsDetailsResource;
  4084. begin
  4085. Result:=CreateEditsDetailsResource(Self);
  4086. end;
  4087. Function TAndroidpublisherAPI.CreateEditsDetailsResource(AOwner : TComponent) : TEditsDetailsResource;
  4088. begin
  4089. Result:=TEditsDetailsResource.Create(AOwner);
  4090. Result.API:=Self.API;
  4091. end;
  4092. Function TAndroidpublisherAPI.GetEditsExpansionfilesInstance : TEditsExpansionfilesResource;
  4093. begin
  4094. if (FEditsExpansionfilesInstance=Nil) then
  4095. FEditsExpansionfilesInstance:=CreateEditsExpansionfilesResource;
  4096. Result:=FEditsExpansionfilesInstance;
  4097. end;
  4098. Function TAndroidpublisherAPI.CreateEditsExpansionfilesResource : TEditsExpansionfilesResource;
  4099. begin
  4100. Result:=CreateEditsExpansionfilesResource(Self);
  4101. end;
  4102. Function TAndroidpublisherAPI.CreateEditsExpansionfilesResource(AOwner : TComponent) : TEditsExpansionfilesResource;
  4103. begin
  4104. Result:=TEditsExpansionfilesResource.Create(AOwner);
  4105. Result.API:=Self.API;
  4106. end;
  4107. Function TAndroidpublisherAPI.GetEditsImagesInstance : TEditsImagesResource;
  4108. begin
  4109. if (FEditsImagesInstance=Nil) then
  4110. FEditsImagesInstance:=CreateEditsImagesResource;
  4111. Result:=FEditsImagesInstance;
  4112. end;
  4113. Function TAndroidpublisherAPI.CreateEditsImagesResource : TEditsImagesResource;
  4114. begin
  4115. Result:=CreateEditsImagesResource(Self);
  4116. end;
  4117. Function TAndroidpublisherAPI.CreateEditsImagesResource(AOwner : TComponent) : TEditsImagesResource;
  4118. begin
  4119. Result:=TEditsImagesResource.Create(AOwner);
  4120. Result.API:=Self.API;
  4121. end;
  4122. Function TAndroidpublisherAPI.GetEditsListingsInstance : TEditsListingsResource;
  4123. begin
  4124. if (FEditsListingsInstance=Nil) then
  4125. FEditsListingsInstance:=CreateEditsListingsResource;
  4126. Result:=FEditsListingsInstance;
  4127. end;
  4128. Function TAndroidpublisherAPI.CreateEditsListingsResource : TEditsListingsResource;
  4129. begin
  4130. Result:=CreateEditsListingsResource(Self);
  4131. end;
  4132. Function TAndroidpublisherAPI.CreateEditsListingsResource(AOwner : TComponent) : TEditsListingsResource;
  4133. begin
  4134. Result:=TEditsListingsResource.Create(AOwner);
  4135. Result.API:=Self.API;
  4136. end;
  4137. Function TAndroidpublisherAPI.GetEditsTestersInstance : TEditsTestersResource;
  4138. begin
  4139. if (FEditsTestersInstance=Nil) then
  4140. FEditsTestersInstance:=CreateEditsTestersResource;
  4141. Result:=FEditsTestersInstance;
  4142. end;
  4143. Function TAndroidpublisherAPI.CreateEditsTestersResource : TEditsTestersResource;
  4144. begin
  4145. Result:=CreateEditsTestersResource(Self);
  4146. end;
  4147. Function TAndroidpublisherAPI.CreateEditsTestersResource(AOwner : TComponent) : TEditsTestersResource;
  4148. begin
  4149. Result:=TEditsTestersResource.Create(AOwner);
  4150. Result.API:=Self.API;
  4151. end;
  4152. Function TAndroidpublisherAPI.GetEditsTracksInstance : TEditsTracksResource;
  4153. begin
  4154. if (FEditsTracksInstance=Nil) then
  4155. FEditsTracksInstance:=CreateEditsTracksResource;
  4156. Result:=FEditsTracksInstance;
  4157. end;
  4158. Function TAndroidpublisherAPI.CreateEditsTracksResource : TEditsTracksResource;
  4159. begin
  4160. Result:=CreateEditsTracksResource(Self);
  4161. end;
  4162. Function TAndroidpublisherAPI.CreateEditsTracksResource(AOwner : TComponent) : TEditsTracksResource;
  4163. begin
  4164. Result:=TEditsTracksResource.Create(AOwner);
  4165. Result.API:=Self.API;
  4166. end;
  4167. Function TAndroidpublisherAPI.GetEditsInstance : TEditsResource;
  4168. begin
  4169. if (FEditsInstance=Nil) then
  4170. FEditsInstance:=CreateEditsResource;
  4171. Result:=FEditsInstance;
  4172. end;
  4173. Function TAndroidpublisherAPI.CreateEditsResource : TEditsResource;
  4174. begin
  4175. Result:=CreateEditsResource(Self);
  4176. end;
  4177. Function TAndroidpublisherAPI.CreateEditsResource(AOwner : TComponent) : TEditsResource;
  4178. begin
  4179. Result:=TEditsResource.Create(AOwner);
  4180. Result.API:=Self.API;
  4181. end;
  4182. Function TAndroidpublisherAPI.GetEntitlementsInstance : TEntitlementsResource;
  4183. begin
  4184. if (FEntitlementsInstance=Nil) then
  4185. FEntitlementsInstance:=CreateEntitlementsResource;
  4186. Result:=FEntitlementsInstance;
  4187. end;
  4188. Function TAndroidpublisherAPI.CreateEntitlementsResource : TEntitlementsResource;
  4189. begin
  4190. Result:=CreateEntitlementsResource(Self);
  4191. end;
  4192. Function TAndroidpublisherAPI.CreateEntitlementsResource(AOwner : TComponent) : TEntitlementsResource;
  4193. begin
  4194. Result:=TEntitlementsResource.Create(AOwner);
  4195. Result.API:=Self.API;
  4196. end;
  4197. Function TAndroidpublisherAPI.GetInappproductsInstance : TInappproductsResource;
  4198. begin
  4199. if (FInappproductsInstance=Nil) then
  4200. FInappproductsInstance:=CreateInappproductsResource;
  4201. Result:=FInappproductsInstance;
  4202. end;
  4203. Function TAndroidpublisherAPI.CreateInappproductsResource : TInappproductsResource;
  4204. begin
  4205. Result:=CreateInappproductsResource(Self);
  4206. end;
  4207. Function TAndroidpublisherAPI.CreateInappproductsResource(AOwner : TComponent) : TInappproductsResource;
  4208. begin
  4209. Result:=TInappproductsResource.Create(AOwner);
  4210. Result.API:=Self.API;
  4211. end;
  4212. Function TAndroidpublisherAPI.GetPurchasesProductsInstance : TPurchasesProductsResource;
  4213. begin
  4214. if (FPurchasesProductsInstance=Nil) then
  4215. FPurchasesProductsInstance:=CreatePurchasesProductsResource;
  4216. Result:=FPurchasesProductsInstance;
  4217. end;
  4218. Function TAndroidpublisherAPI.CreatePurchasesProductsResource : TPurchasesProductsResource;
  4219. begin
  4220. Result:=CreatePurchasesProductsResource(Self);
  4221. end;
  4222. Function TAndroidpublisherAPI.CreatePurchasesProductsResource(AOwner : TComponent) : TPurchasesProductsResource;
  4223. begin
  4224. Result:=TPurchasesProductsResource.Create(AOwner);
  4225. Result.API:=Self.API;
  4226. end;
  4227. Function TAndroidpublisherAPI.GetPurchasesSubscriptionsInstance : TPurchasesSubscriptionsResource;
  4228. begin
  4229. if (FPurchasesSubscriptionsInstance=Nil) then
  4230. FPurchasesSubscriptionsInstance:=CreatePurchasesSubscriptionsResource;
  4231. Result:=FPurchasesSubscriptionsInstance;
  4232. end;
  4233. Function TAndroidpublisherAPI.CreatePurchasesSubscriptionsResource : TPurchasesSubscriptionsResource;
  4234. begin
  4235. Result:=CreatePurchasesSubscriptionsResource(Self);
  4236. end;
  4237. Function TAndroidpublisherAPI.CreatePurchasesSubscriptionsResource(AOwner : TComponent) : TPurchasesSubscriptionsResource;
  4238. begin
  4239. Result:=TPurchasesSubscriptionsResource.Create(AOwner);
  4240. Result.API:=Self.API;
  4241. end;
  4242. Function TAndroidpublisherAPI.GetPurchasesInstance : TPurchasesResource;
  4243. begin
  4244. if (FPurchasesInstance=Nil) then
  4245. FPurchasesInstance:=CreatePurchasesResource;
  4246. Result:=FPurchasesInstance;
  4247. end;
  4248. Function TAndroidpublisherAPI.CreatePurchasesResource : TPurchasesResource;
  4249. begin
  4250. Result:=CreatePurchasesResource(Self);
  4251. end;
  4252. Function TAndroidpublisherAPI.CreatePurchasesResource(AOwner : TComponent) : TPurchasesResource;
  4253. begin
  4254. Result:=TPurchasesResource.Create(AOwner);
  4255. Result.API:=Self.API;
  4256. end;
  4257. Function TAndroidpublisherAPI.GetReviewsInstance : TReviewsResource;
  4258. begin
  4259. if (FReviewsInstance=Nil) then
  4260. FReviewsInstance:=CreateReviewsResource;
  4261. Result:=FReviewsInstance;
  4262. end;
  4263. Function TAndroidpublisherAPI.CreateReviewsResource : TReviewsResource;
  4264. begin
  4265. Result:=CreateReviewsResource(Self);
  4266. end;
  4267. Function TAndroidpublisherAPI.CreateReviewsResource(AOwner : TComponent) : TReviewsResource;
  4268. begin
  4269. Result:=TReviewsResource.Create(AOwner);
  4270. Result.API:=Self.API;
  4271. end;
  4272. initialization
  4273. TAndroidpublisherAPI.RegisterAPI;
  4274. end.