/* Ċ Ġ* ĠProperty Ġof ĠAk ur ate co Ġ( https :// ak ur ate co . com ). Ċ Ġ*/ Ċ Ċ package Ġcom . ak ur ate co . sdk . feature . service Ċ Ċ import Ġandroidx . annotation . NonNull Ċ import Ġandroidx . annotation . Nullable Ċ import Ġandroidx . annotation . Size Ċ import Ġcom . ak ur ate co . sdk . toolbox . Ak ur ate co Validation Ċ import Ġcom . ak ur ate co . sdk . model . response . credit void . Ak ur ate co Credit void Response Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . http . Field Ċ import Ġretrofit 2 . http . Form Url Encoded Ċ import Ġretrofit 2 . http . POST Ċ import Ġretrofit 2 . http . Url Ċ Ċ /** Ċ Ġ* ĠC RED IT VOID ĠService Ġfor Ġthe Ġ[ com . ak ur ate co . sdk . feature . adapter . Ak ur ate co Credit void Adapter ]. Ċ Ġ* Ġ@ see ĠAk ur ate co Credit void Response Ċ Ġ* Ċ Ġ* ĠC RED IT VOID Ġrequest Ġis Ġused Ġto Ġcomplete Ġboth ĠREF UND Ġand ĠRE VERSAL Ġtransactions . Ċ Ġ* ĠRE VERSAL Ġtransaction Ġis Ġused Ġto Ġcancel Ġhold Ġfrom Ġfunds Ġon Ġcard Ġaccount , Ġpreviously Ġauthorized Ġby ĠAUTH Ġtransaction . Ċ Ġ* ĠREF UND Ġtransaction Ġis Ġused Ġto Ġreturn Ġfunds Ġto Ġcard Ġaccount , Ġpreviously Ġsubmitted Ġby ĠS ALE Ġor ĠCAP TURE Ġtransactions . Ċ Ġ*/ Ċ interface ĠAk ur ate co Credit void Service Ġ{ ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠPerform ĠC RED IT VOID Ġrequest . ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ param Ġurl Ġthe Ġ[ com . ak ur ate co . sdk . core . Ak ur ate co Credential . PAYMENT _ URL ]. ĊĠĠĠĠ Ġ* Ġ@ param Ġaction Ġthe Ġ[ com . ak ur ate co . sdk . model . api . Ak ur ate co Action . CRED IT VOID ]. ĊĠĠĠĠ Ġ* Ġ@ param Ġclient Key Ġunique Ġkey Ġ[ com . ak ur ate co . sdk . core . Ak ur ate co Credential . CLIENT _ KEY ]. ĠUUID Ġformat Ġvalue . ĊĠĠĠĠ Ġ* Ġ@ param Ġtransaction Id Ġtransaction ĠID Ġin Ġthe ĠPayment ĠPlatform . ĠUUID Ġformat Ġvalue . ĊĠĠĠĠ Ġ* Ġ@ param Ġamount Ġthe Ġamount Ġfor Ġcapture . ĠOnly Ġone Ġpartial Ġcapture Ġis Ġallowed . ĊĠĠĠĠ Ġ* ĠNumbers Ġin Ġthe Ġform ĠXXX X . XX Ġ( without Ġleading Ġzeros ). ĊĠĠĠĠ Ġ* Ġ@ param Ġhash Ġspecial Ġsignature Ġto Ġvalidate Ġyour Ġrequest Ġto ĠPayment ĠPlatform . ĊĠĠĠĠ Ġ* Ġ@ see Ġcom . ak ur ate co . sdk . toolbox . Ak ur ate co Hash Util ĊĠĠĠĠ Ġ* Ġ@ return Ġthe Ġ[ Call ] Ġby Ġ[ Ak ur ate co Credit void Response ]. ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ Form Url Encoded ĊĠĠĠ Ġ@ POST ĊĠĠĠ Ġfun Ġcredit void ( ĊĠĠĠĠĠĠĠ Ġ@ NonNull ĊĠĠĠĠĠĠĠ Ġ@ Url ĊĠĠĠĠĠĠĠ Ġurl : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ NonNull ĊĠĠĠĠĠĠĠ Ġ@ Field (" action ") ĊĠĠĠĠĠĠĠ Ġaction : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ NonNull ĊĠĠĠĠĠĠĠ Ġ@ Size ( Ak ur ate co Validation . Text . UUID ) ĊĠĠĠĠĠĠĠ Ġ@ Field (" client _ key ") ĊĠĠĠĠĠĠĠ Ġclient Key : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ NonNull ĊĠĠĠĠĠĠĠ Ġ@ Size ( Ak ur ate co Validation . Text . UUID ) ĊĠĠĠĠĠĠĠ Ġ@ Field (" trans _ id ") ĊĠĠĠĠĠĠĠ Ġtransaction Id : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Nullable ĊĠĠĠĠĠĠĠ Ġ@ Field (" amount ") ĊĠĠĠĠĠĠĠ Ġamount : ĠString ?, ĊĠĠĠĠĠĠĠ Ġ@ NonNull ĊĠĠĠĠĠĠĠ Ġ@ Field (" hash ") ĊĠĠĠĠĠĠĠ Ġhash : ĠString , ĊĠĠĠ Ġ): ĠCall < Ak ur ate co Credit void Response > Ċ } Ċ