// Ġ<<< ĠAUTO GENERATED ĠBY ĠY AN DEX . SCRIPT ĠFROM Ġnetwork / yandex - pay - backend / is - ready - to - pay - request . ts Ġ>>> Ċ Ċ package Ġcom . yandex . x plat . yandex . pay Ċ Ċ import Ġcom . yandex . x plat . common .* Ċ import Ġcom . yandex . x plat . event us . common .* Ċ Ċ public Ġopen Ġclass ĠIs Ready To Pay Request ( val Ġmerchant Origin : ĠString , Ġval Ġmerchant Id : ĠString , Ġval Ġexisting PaymentMethod Required : ĠBoolean , Ġval Ġpayment Methods : ĠY S Array < PaymentMethod >): ĠBase Network Request () Ġ{ ĊĠĠĠ Ġopen Ġoverride Ġfun Ġmethod (): ĠNetwork Method Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠNetwork Method . post ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġopen Ġoverride Ġfun Ġtarget Path (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ" api / mobile / v 1 / is _ ready _ to _ pay " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġopen Ġoverride Ġfun Ġparams (): ĠNetwork Params Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠMap JSON Item (). putString (" merchant _ origin ", Ġthis . merchant Origin ). putString (" merchant _ id ", Ġthis . merchant Id ). put Boolean (" existing _ payment _ method _ required ", Ġthis . existing PaymentMethod Required ). put (" payment _ methods ", ĠArray JSON Item ( this . payment Methods . map ( Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġitem Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġitem . toMap JSON Item () ĊĠĠĠĠĠĠĠ Ġ} ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġopen Ġoverride Ġfun Ġencoding (): ĠRequest Encoding Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠJson Request Encoding () ĊĠĠĠ Ġ} Ċ Ċ } ĊĊ