package Ġorg . fo ss as ia . open event . general . order Ċ Ċ import Ġio . reactivex . Single Ċ import Ġorg . fo ss as ia . open event . general . at tendees . At tendee Ċ import Ġretrofit 2 . http . Body Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . PATCH Ċ import Ġretrofit 2 . http . POST Ċ import Ġretrofit 2 . http . Path Ċ import Ġretrofit 2 . http . Query Ċ Ċ interface ĠOrder Api Ġ{ ĊĊĠĠĠ Ġ@ POST (" orders ? include = event , at tendees & fields [ event ]= id & fields [ at tendees ]= id ") ĊĠĠĠ Ġfun Ġplace Order (@ Body Ġorder : ĠOrder ): ĠSingle < Order > ĊĊĠĠĠ Ġ@ PATCH (" orders /{ order Identifier }") ĊĠĠĠ Ġfun Ġconfirm Order (@ Path (" order Identifier ") Ġorder Identifier : ĠString , Ġ@ Body Ġorder : ĠConfirm Order ): ĠSingle < Order > ĊĊĠĠĠ Ġ@ POST (" orders /{ order Identifier }/ charge ") ĊĠĠĠ Ġfun Ġcharge Order (@ Path (" order Identifier ") Ġorder Identifier : ĠString , Ġ@ Body Ġcharge : ĠCharge ): ĠSingle < Charge > ĊĊĠĠĠ Ġ@ GET ("/ v 1 / users /{ userId }/ orders ? filter =[ {\" name \":\" status \",\" op \":\" in \",\" val \":[\" completed \ "," Ġ+ ĊĠĠĠĠĠĠĠ Ġ"\" placed \",\" pending \"] }] & include = event , at tendees & fields [ at tendees ]= id ") ĊĠĠĠĠĠĠĠ Ġfun Ġorders Under User (@ Path (" userId ") ĠuserId : ĠLong ): ĠSingle < List < Order >> ĊĊĠĠĠ Ġ@ GET ("/ v 1 / users /{ userId }/ orders ? include = event , at tendees & fields [ at tendees ]= id ") ĊĠĠĠ Ġfun Ġorders Under User Paged ( ĊĠĠĠĠĠĠĠ Ġ@ Path (" userId ") ĠuserId : ĠLong , ĊĠĠĠĠĠĠĠ Ġ@ Query (" filter ") Ġfilter : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" page [ number ]") Ġpage : ĠInt , ĊĠĠĠĠĠĠĠ Ġ@ Query (" page [ size ]") ĠpageSize : ĠInt Ġ= Ġ 5 ĊĠĠĠ Ġ): ĠSingle < List < Order >> ĊĊĠĠĠ Ġ@ GET ("/ v 1 / orders /{ order Identifier }/ at tendees ") ĊĠĠĠ Ġfun Ġat tendees Under Order (@ Path (" order Identifier ") Ġorder Identifier : ĠString ): ĠSingle < List < At tendee >> Ċ } Ċ