package Ġcom . rb k money . claim management api . converter . party . contract Ċ Ċ import Ġcom . rb k money . claim management api . converter . Dark Api Converter Ċ import Ġcom . rb k money . dam sel . domain . Contract Template Ref Ċ import Ġcom . rb k money . dam sel . domain . Payment Inst itution Ref Ċ import Ġcom . rb k money . sw ag . claim _ management . model . Contract Modification . Contract Modification TypeEnum Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġcom . rb k money . dam sel . claim _ management . Contract Params Ġas ĠThrift Contract Params Ċ import Ġcom . rb k money . sw ag . claim _ management . model . Contract Creation Modification Ġas ĠSw ag Contract Creation Modification Ċ import Ġcom . rb k money . sw ag . claim _ management . model . Contract Template Ref Ġas ĠSw ag Contract Template Ref Ċ import Ġcom . rb k money . sw ag . claim _ management . model . Payment Inst itution Ref Ġas ĠSw ag Payment Inst itution Ref Ċ Ċ @ Component Ċ class ĠContract Modification Creation Converter Ġ: ĠDark Api Converter < Thrift Contract Params , ĠSw ag Contract Creation Modification > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠconvertTo Thrift ( value : ĠSw ag Contract Creation Modification ): ĠThrift Contract Params Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġparams Ġ= ĠThrift Contract Params (). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontract or Id Ġ= Ġvalue . contract or ID ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġvalue . template ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġcontract Template Ref Ġ= ĠContract Template Ref (). setId ( value . template . id ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparams . set Template ( contract Template Ref ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġvalue . payment Inst itution ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġpayment Inst itution Ġ= ĠPayment Inst itution Ref (). setId ( value . payment Inst itution . id ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparams . payment Inst itution Ġ= Ġpayment Inst itution ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġparams ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠconvertTo Sw ag ( value : ĠThrift Contract Params ): ĠSw ag Contract Creation Modification Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsw ag Contract Creation Modification Ġ= ĠSw ag Contract Creation Modification (). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontract Modification Type Ġ= ĠContract Modification TypeEnum . CONTRACT CRE ATION MO DIF ICATION ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontract or ID Ġ= Ġvalue . contract or Id ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġvalue . payment Inst itution ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġpayment Inst itution Ref Ġ= ĠSw ag Payment Inst itution Ref (). apply Ġ{ Ġid Ġ= Ġit . id Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsw ag Contract Creation Modification . payment Inst itution Ġ= Ġpayment Inst itution Ref ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġvalue . template ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġcontract Template Ref Ġ= ĠSw ag Contract Template Ref (). apply Ġ{ Ġid Ġ= Ġit . id Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsw ag Contract Creation Modification . template Ġ= Ġcontract Template Ref ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġsw ag Contract Creation Modification ĊĠĠĠ Ġ} Ċ } Ċ