package Ġbr . com . z up academy . mate us . endpoint . regist ra Ċ Ċ import Ġbr . com . z up academy . mate us . Key manager Regist ra Grpc Service Grpc Ċ import Ġbr . com . z up academy . mate us . Regist ra Ch ave Pix Request Ċ import Ġbr . com . z up academy . mate us . Regist ra Ch ave Pix Response Ċ import Ġbr . com . z up academy . mate us . handler . ErrorHandler Ċ import Ġio . grpc . stub . Stream Observer Ċ import Ġjavax . inject . Inject Ċ import Ġjavax . inject . Singleton Ċ Ċ @ ErrorHandler Ċ @ Singleton Ċ class ĠRegist ra Ch ave Endpoint (@ Inject Ġprivate Ġval Ġservice : ĠN ova Ch ave Pix Service ,) ĊĠĠĠ Ġ: ĠKey manager Regist ra Grpc Service Grpc . Key manager Regist ra Grpc ServiceImpl Base () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġregist ra ( ĊĠĠĠĠĠĠĠ Ġrequest : ĠRegist ra Ch ave Pix Request , ĊĠĠĠĠĠĠĠ Ġresponse Observer : ĠStream Observer < Regist ra Ch ave Pix Response > ĊĠĠĠ Ġ) Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġnova Ch ave Ġ= Ġrequest . to Model () ĊĠĠĠĠĠĠĠ Ġval Ġch ave Cri ada Ġ= Ġservice . regist ra ( nova Ch ave ) ĊĊĠĠĠĠĠĠĠ Ġresponse Observer . onNext ( Regist ra Ch ave Pix Response . newBuilder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Cliente Id ( ch ave Cri ada . cliente Id . toString ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Pix Id ( ch ave Cri ada . id . toString ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build ()) ĊĠĠĠĠĠĠĠ Ġresponse Observer . on Completed () ĊĠĠĠ Ġ} Ċ Ċ }