package Ġde . paul we ber . sp ender ino . model . repositories . don ation Ċ Ċ import Ġorg . k oin . core . component . K oin Component Ċ import Ġorg . k oin . core . component . inject Ċ Ċ interface ĠDon ation Repository Ġ{ ĊĠĠĠ Ġsuspend Ġfun Ġget Payment Intent Client Secret ( receiver Id : ĠString ): ĠResult < Don ation Information > ĊĠĠĠ Ġsuspend Ġfun Ġupdate Don ation Sum ( payment Intent Id : ĠString , ĠnewValue : ĠLong , Ġnew Without Fees : ĠLong ): ĠResult < Unit > Ċ } Ċ Ċ class ĠDon ation Repository Impl Ġ: ĠDon ation Repository , ĠK oin Component Ġ{ ĊĠĠĠ Ġprivate Ġval Ġremote Source : ĠDon ation Remote Source Ġby Ġinject () ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġget Payment Intent Client Secret ( receiver Id : ĠString ): ĠResult < Don ation Information > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġremote Source . get Payment Intent Client Secret ( receiver Id ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġupdate Don ation Sum ( payment Intent Id : ĠString , ĠnewValue : ĠLong , Ġnew Without Fees : ĠLong ): ĠResult < Unit > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġremote Source . update Don ation Sum ( payment Intent Id , ĠnewValue , Ġnew Without Fees ) ĊĠĠĠ Ġ} Ċ } Ċ