@stashfin/grpc 1.2.777 → 1.2.779

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/package.json +1 -1
  2. package/ts/banking/aa/getaasupport.js +2 -2
  3. package/ts/banking/aa/getbanklist.js +2 -2
  4. package/ts/banking/aa/getcustomerbank.js +2 -2
  5. package/ts/banking/aa/getrpdlink.js +2 -2
  6. package/ts/banking/aa/initiate.js +2 -2
  7. package/ts/banking/aa/initiatepennydrop.js +2 -2
  8. package/ts/banking/aa/netbankinginitiate.js +2 -2
  9. package/ts/banking/aa/pollingrpd.js +2 -2
  10. package/ts/banking.js +2 -2
  11. package/ts/bbps/getbills.js +2 -2
  12. package/ts/bbps/processwebhook.d.ts +83 -0
  13. package/ts/bbps/processwebhook.js +468 -0
  14. package/ts/bbps.d.ts +14 -0
  15. package/ts/bbps.js +12 -2
  16. package/ts/bureau/getbasicdetails.js +2 -2
  17. package/ts/bureau/getbureauscore.js +2 -2
  18. package/ts/bureau/getcibilwebtoken.js +2 -2
  19. package/ts/bureau/getdbrcolending.js +2 -2
  20. package/ts/bureau/getdemogs.js +2 -2
  21. package/ts/bureau/getobligation.js +2 -2
  22. package/ts/bureau/getreport.js +2 -2
  23. package/ts/bureau/ischrenabled.js +2 -2
  24. package/ts/bureau.js +2 -2
  25. package/ts/ckyc/ckycdownload.js +2 -2
  26. package/ts/ckyc/ckycsearch.js +2 -2
  27. package/ts/ckyc.js +2 -2
  28. package/ts/colender/disburseLoan.js +2 -2
  29. package/ts/colender/forecloseLoan.js +2 -2
  30. package/ts/colender/repayLoan.js +2 -2
  31. package/ts/colender.js +2 -2
  32. package/ts/communications/bureauidwhatsapp.js +2 -2
  33. package/ts/communications.js +2 -2
  34. package/ts/customers/aa/getaatxnstatus.js +2 -2
  35. package/ts/customers/aa/getbanklist.js +2 -2
  36. package/ts/customers/aa/initiate.js +2 -2
  37. package/ts/customers/accidentprotectionplan.js +2 -2
  38. package/ts/customers/addaddress.js +2 -2
  39. package/ts/customers/addbankaccountdetails.js +2 -2
  40. package/ts/customers/addfathersname.js +2 -2
  41. package/ts/customers/addgstnumber.js +2 -2
  42. package/ts/customers/addmoredetails.js +2 -2
  43. package/ts/customers/addsuspendedcustomer.js +2 -2
  44. package/ts/customers/adduserapps.js +2 -2
  45. package/ts/customers/applyclijourney.js +2 -2
  46. package/ts/customers/bulksms.js +2 -2
  47. package/ts/customers/cb/cbapplicationrejecteddata.js +2 -2
  48. package/ts/customers/cb/cbpaynow.js +2 -2
  49. package/ts/customers/cb/cbsignup.js +2 -2
  50. package/ts/customers/cb/getcbtxnstatus.js +2 -2
  51. package/ts/customers/cb/getcreditbuilder.js +2 -2
  52. package/ts/customers/cb/getpaymentsummary.js +2 -2
  53. package/ts/customers/cb/insurancedetails.js +2 -2
  54. package/ts/customers/cb/lesscsimprove.js +2 -2
  55. package/ts/customers/cb/morecsimprove.js +2 -2
  56. package/ts/customers/cb/paynow.js +2 -2
  57. package/ts/customers/cb/savecreditbuilder.js +2 -2
  58. package/ts/customers/cb/updatecbstandalonecancellation.js +2 -2
  59. package/ts/customers/cb/updatecbstandaloneconfirmation.js +2 -2
  60. package/ts/customers/cb/updatecbstandalonejourney.js +2 -2
  61. package/ts/customers/cb/updatecbtxnstatus.js +2 -2
  62. package/ts/customers/changempin.js +2 -2
  63. package/ts/customers/createcustomerreference.js +2 -2
  64. package/ts/customers/createvanumber.js +2 -2
  65. package/ts/customers/customerinfo.js +2 -2
  66. package/ts/customers/deletedocument.js +2 -2
  67. package/ts/customers/deleteprofile.js +2 -2
  68. package/ts/customers/disablempin.js +2 -2
  69. package/ts/customers/enach/gettxnstatus.js +2 -2
  70. package/ts/customers/enach/getweburl.js +2 -2
  71. package/ts/customers/enach/updateenachtxnstatus.js +2 -2
  72. package/ts/customers/enach/updatetxnstatus.js +2 -2
  73. package/ts/customers/fetchrcprofile.js +2 -2
  74. package/ts/customers/floatingvideos.js +2 -2
  75. package/ts/customers/forceupdate.js +2 -2
  76. package/ts/customers/forgotmpin.js +2 -2
  77. package/ts/customers/forgotmpinverify.js +2 -2
  78. package/ts/customers/freedom/addressconfirmation.js +2 -2
  79. package/ts/customers/freedom/freedompaynow.js +2 -2
  80. package/ts/customers/freedom/getfreedomtxnstatus.js +2 -2
  81. package/ts/customers/freedom/updateadditionalverification.js +2 -2
  82. package/ts/customers/freedom/updatefreedomtxnstatus.js +2 -2
  83. package/ts/customers/getaddresslist.js +2 -2
  84. package/ts/customers/getappsubmittedscreen.js +2 -2
  85. package/ts/customers/getbankaccountdetails.js +2 -2
  86. package/ts/customers/getbasicinfo.js +2 -2
  87. package/ts/customers/getcities.js +2 -2
  88. package/ts/customers/getclistatus.js +2 -2
  89. package/ts/customers/getcompanyaccdetails.js +2 -2
  90. package/ts/customers/getcustomerbyid.js +2 -2
  91. package/ts/customers/getcustomerdetailsbymobile.js +2 -2
  92. package/ts/customers/getdashboard.js +2 -2
  93. package/ts/customers/getdashboardmaincard.js +2 -2
  94. package/ts/customers/getdocuments.js +2 -2
  95. package/ts/customers/getglobalpopups.js +2 -2
  96. package/ts/customers/getlimit.js +2 -2
  97. package/ts/customers/getloclimit.js +2 -2
  98. package/ts/customers/getmessengermode.js +2 -2
  99. package/ts/customers/getoccupationlist.js +2 -2
  100. package/ts/customers/getpaymentoptions.js +2 -2
  101. package/ts/customers/getprofessionalinfo.js +2 -2
  102. package/ts/customers/getprofile.js +2 -2
  103. package/ts/customers/getselfieetxnid.js +2 -2
  104. package/ts/customers/getstates.js +2 -2
  105. package/ts/customers/getstep.js +2 -2
  106. package/ts/customers/getsyncstatus.js +2 -2
  107. package/ts/customers/getvanumber.js +2 -2
  108. package/ts/customers/lamf/applylamf.js +2 -2
  109. package/ts/customers/lamf/sendlamfotp.js +2 -2
  110. package/ts/customers/lamf/sendlamfpledgeotp.js +2 -2
  111. package/ts/customers/lamf/updatelamfjourney.js +2 -2
  112. package/ts/customers/lamf/verifylamfotp.js +2 -2
  113. package/ts/customers/lamf/verifylamfpledgeotp.js +2 -2
  114. package/ts/customers/logout.js +2 -2
  115. package/ts/customers/pd/getbanklist.js +2 -2
  116. package/ts/customers/pd/validatebankaccount.js +2 -2
  117. package/ts/customers/profilebasic.js +2 -2
  118. package/ts/customers/profileupdatetnc.js +2 -2
  119. package/ts/customers/resetbanner.js +2 -2
  120. package/ts/customers/restoreaccount.js +2 -2
  121. package/ts/customers/rpd/getrpdlink.js +2 -2
  122. package/ts/customers/rpd/getrpdtransactionstatus.js +2 -2
  123. package/ts/customers/rpd/mockpayment.js +2 -2
  124. package/ts/customers/saveappslist.js +2 -2
  125. package/ts/customers/savebasicdetails.js +2 -2
  126. package/ts/customers/savelimit.js +2 -2
  127. package/ts/customers/saveunlocklimit.js +2 -2
  128. package/ts/customers/sendotp.js +2 -2
  129. package/ts/customers/sendotptoemail.js +2 -2
  130. package/ts/customers/setmpin.js +2 -2
  131. package/ts/customers/skipscreen.js +2 -2
  132. package/ts/customers/submituploadeddocuments.js +2 -2
  133. package/ts/customers/syncdecisionengine.js +2 -2
  134. package/ts/customers/updatecategory.js +2 -2
  135. package/ts/customers/updatecongratulationstep.js +2 -2
  136. package/ts/customers/updatecustomerbyid.js +2 -2
  137. package/ts/customers/updatedlnumber.js +2 -2
  138. package/ts/customers/updatedob.js +2 -2
  139. package/ts/customers/updatelocstatus.js +2 -2
  140. package/ts/customers/updatemobilesendotp.js +2 -2
  141. package/ts/customers/updatemobileverifyotp.js +2 -2
  142. package/ts/customers/updateokyctxn.js +2 -2
  143. package/ts/customers/updatesanctionamount.js +2 -2
  144. package/ts/customers/updateselfieetxn.js +2 -2
  145. package/ts/customers/updatesyncstatus.js +2 -2
  146. package/ts/customers/updatevehiclenumber.js +2 -2
  147. package/ts/customers/uploaddocuments.js +2 -2
  148. package/ts/customers/validatepan.js +2 -2
  149. package/ts/customers/verifympin.js +2 -2
  150. package/ts/customers/verifyotp.js +2 -2
  151. package/ts/customers/verifyotptoemail.js +2 -2
  152. package/ts/customers.js +2 -2
  153. package/ts/decisionengine/decisionengine.js +2 -2
  154. package/ts/decisionengine/decisionenginetrigger.js +2 -2
  155. package/ts/decisionengine/locdisbursalapproval.js +2 -2
  156. package/ts/decisionengine/saveconsent.js +2 -2
  157. package/ts/decisionengine.js +2 -2
  158. package/ts/deveqxcustomers.js +2 -2
  159. package/ts/devupi.js +2 -2
  160. package/ts/documents/getagreement.js +2 -2
  161. package/ts/documents/getfinancialdoc.js +2 -2
  162. package/ts/documents.js +2 -2
  163. package/ts/eqxcustomer.js +2 -2
  164. package/ts/eqxcustomers/authenticateuser.js +2 -2
  165. package/ts/eqxcustomers/creditguidance.js +2 -2
  166. package/ts/eqxcustomers/getbankaccount.js +2 -2
  167. package/ts/eqxcustomers/getcustomerbyid.js +2 -2
  168. package/ts/eqxcustomers/getcustomerbymobile.js +2 -2
  169. package/ts/eqxcustomers/getdashboard.js +2 -2
  170. package/ts/eqxcustomers/getdashboardmaincard.js +2 -2
  171. package/ts/eqxcustomers/getlandinghomepage.js +2 -2
  172. package/ts/eqxcustomers/getloanplans.js +2 -2
  173. package/ts/eqxcustomers/getnotifications.js +2 -2
  174. package/ts/eqxcustomers/getstashscorecustomerprofile.js +2 -2
  175. package/ts/eqxcustomers/gettnc.js +2 -2
  176. package/ts/eqxcustomers/gettokens.js +2 -2
  177. package/ts/eqxcustomers/iscustomerregistered.js +2 -2
  178. package/ts/eqxcustomers/sendotp.js +2 -2
  179. package/ts/eqxcustomers/truecallerlogin.js +2 -2
  180. package/ts/eqxcustomers/updatecustomer.js +2 -2
  181. package/ts/eqxcustomers/updatenotification.js +2 -2
  182. package/ts/eqxcustomers/updatepushid.js +2 -2
  183. package/ts/eqxcustomers/updatesubscriptionstatus.js +2 -2
  184. package/ts/eqxcustomers/verifyotp.js +2 -2
  185. package/ts/eqxcustomers/verifytoken.js +2 -2
  186. package/ts/eqxpayments/checkpaymentstatus.js +2 -2
  187. package/ts/eqxpayments/fundtransfer.js +2 -2
  188. package/ts/eqxpayments/getpaymentoptions.js +2 -2
  189. package/ts/eqxpayments/initiatepayment.js +2 -2
  190. package/ts/eqxpayments/nachpresentation.js +2 -2
  191. package/ts/eqxpayments/nachregistration.js +2 -2
  192. package/ts/eqxpayments.js +2 -2
  193. package/ts/example.js +2 -2
  194. package/ts/feepayments/getbanklist.js +2 -2
  195. package/ts/feepayments.js +2 -2
  196. package/ts/growth/checkplanstatus.js +2 -2
  197. package/ts/growth/getattachplandetails.js +2 -2
  198. package/ts/growth/getchrpaymentstatus.js +2 -2
  199. package/ts/growth/getchrpdfurl.js +2 -2
  200. package/ts/growth/getchrplans.js +2 -2
  201. package/ts/growth/getchrreport.d.ts +0 -42
  202. package/ts/growth/getchrreport.js +4 -300
  203. package/ts/growth/getchrreportdata.js +2 -2
  204. package/ts/growth/getchrsubscriptionplan.js +2 -2
  205. package/ts/growth/getchrvideourl.js +2 -2
  206. package/ts/growth/getcredithealthreport.js +2 -2
  207. package/ts/growth/initiatepayment.js +2 -2
  208. package/ts/growth/notifychrpayment.js +2 -2
  209. package/ts/growth/processchrpayment.js +2 -2
  210. package/ts/growth.js +2 -2
  211. package/ts/kyc/amldetails.js +2 -2
  212. package/ts/kyc/authbridgepancomprehend.js +2 -2
  213. package/ts/kyc/bureauidwhatsapp.js +2 -2
  214. package/ts/kyc/ckycsearchv1.d.ts +40 -0
  215. package/ts/{upi/addupinumber.js → kyc/ckycsearchv1.js} +77 -63
  216. package/ts/kyc/facematch.js +2 -2
  217. package/ts/kyc/fetchaadhaarbypan.js +2 -2
  218. package/ts/kyc/fetchemploymenthistory.js +2 -2
  219. package/ts/kyc/fetchuanlist.js +2 -2
  220. package/ts/kyc/getselfietxnid.js +2 -2
  221. package/ts/kyc/getselfieurl.js +2 -2
  222. package/ts/kyc/nsdlpanvalidate.js +2 -2
  223. package/ts/kyc/okyclinkhyperverge.js +2 -2
  224. package/ts/kyc.d.ts +14 -0
  225. package/ts/kyc.js +12 -2
  226. package/ts/lamf/getloandetails.js +2 -2
  227. package/ts/lamf/submitotp.js +2 -2
  228. package/ts/lamf/validateuser.js +2 -2
  229. package/ts/lamf.js +2 -2
  230. package/ts/loans/addreference.js +2 -2
  231. package/ts/loans/amortization.js +2 -2
  232. package/ts/loans/approveloan.js +2 -2
  233. package/ts/loans/banklist.js +2 -2
  234. package/ts/loans/calculateemi.js +2 -2
  235. package/ts/loans/cbloan.js +2 -2
  236. package/ts/loans/createlamfloan.js +2 -2
  237. package/ts/loans/createpenalty.js +2 -2
  238. package/ts/loans/creditlimit.js +2 -2
  239. package/ts/loans/emimoredetails.js +2 -2
  240. package/ts/loans/fcppayment.js +2 -2
  241. package/ts/loans/forecloseamount.js +2 -2
  242. package/ts/loans/foreclosepayment.js +2 -2
  243. package/ts/loans/futurepaymentmoredetails.js +2 -2
  244. package/ts/loans/getaddonslist.js +2 -2
  245. package/ts/loans/getbankdetails.js +2 -2
  246. package/ts/loans/getbilldetails.js +2 -2
  247. package/ts/loans/getcbloandetails.js +2 -2
  248. package/ts/loans/getchrdetails.js +2 -2
  249. package/ts/loans/getcustomerloanstatus.js +2 -2
  250. package/ts/loans/getforecloseamount.js +2 -2
  251. package/ts/loans/getloanbyid.js +2 -2
  252. package/ts/loans/getlocconfirms.js +2 -2
  253. package/ts/loans/getlocdetails.js +2 -2
  254. package/ts/loans/getlocdisburse.js +2 -2
  255. package/ts/loans/getloctenure.js +2 -2
  256. package/ts/loans/getlocwithdraw.js +2 -2
  257. package/ts/loans/getlocwithdrawform.js +2 -2
  258. package/ts/loans/getnextdueamount.js +2 -2
  259. package/ts/loans/getpaymentoptions.js +2 -2
  260. package/ts/loans/getpendingemiamount.js +2 -2
  261. package/ts/loans/getsetubilldetails.js +2 -2
  262. package/ts/loans/getsummarystaticfields.js +2 -2
  263. package/ts/loans/gettransactionstatus.js +2 -2
  264. package/ts/loans/getusedlimit.js +2 -2
  265. package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
  266. package/ts/{customers/verifyemail.js → loans/getvirtualaccountnumber.js} +32 -32
  267. package/ts/loans/getvirtualbankinfo.js +2 -2
  268. package/ts/loans/loansummary.js +2 -2
  269. package/ts/loans/locrequested.js +2 -2
  270. package/ts/loans/manualpaymentallocation.js +2 -2
  271. package/ts/loans/paymentallocation.js +2 -2
  272. package/ts/loans/paymenthistory.js +2 -2
  273. package/ts/loans/paynow.js +2 -2
  274. package/ts/loans/refund.js +2 -2
  275. package/ts/loans/restructureloan.js +2 -2
  276. package/ts/loans/rollback.js +2 -2
  277. package/ts/loans/rollbackextrapayment.js +2 -2
  278. package/ts/loans/sendemail.js +2 -2
  279. package/ts/loans/sendnocemail.js +2 -2
  280. package/ts/loans/transactionlist.js +2 -2
  281. package/ts/loans/updatecollectionview.js +2 -2
  282. package/ts/loans/updateinstallments.js +2 -2
  283. package/ts/loans/updateloan.js +2 -2
  284. package/ts/loans/updatetransactionstatus.js +2 -2
  285. package/ts/loans.js +2 -2
  286. package/ts/payments/checkpaymentstatus.js +2 -2
  287. package/ts/payments/fundtransfer.js +2 -2
  288. package/ts/payments/getpaymentoptions.js +2 -2
  289. package/ts/payments/initiatepayment.js +2 -2
  290. package/ts/payments/nachpresentation.js +2 -2
  291. package/ts/payments/nachregistration.js +2 -2
  292. package/ts/payments.js +2 -2
  293. package/ts/paymentsnode.js +2 -2
  294. package/ts/rewards/getoffers.js +2 -2
  295. package/ts/rewards/redeemoffer.js +2 -2
  296. package/ts/rewards.js +2 -2
  297. package/ts/stashcash/creditsc.js +2 -2
  298. package/ts/stashcash/debitsc.js +2 -2
  299. package/ts/stashcash/getearnings.js +2 -2
  300. package/ts/stashcash/getscbalance.js +2 -2
  301. package/ts/stashcash/getschistory.js +2 -2
  302. package/ts/stashcash/reversesc.js +2 -2
  303. package/ts/stashcash.js +2 -2
  304. package/ts/upi/addaccount.js +2 -2
  305. package/ts/upi/blockvpa.js +2 -2
  306. package/ts/upi/checkderegisterpermission.js +2 -2
  307. package/ts/upi/checktransactionstatus.js +2 -2
  308. package/ts/upi/declinemandate.js +2 -2
  309. package/ts/upi/deregisterprofile.js +2 -2
  310. package/ts/upi/getaccountsbyprovider.js +2 -2
  311. package/ts/upi/getallmandates.js +2 -2
  312. package/ts/upi/getavailablevpa.js +2 -2
  313. package/ts/upi/getlistedaccountproviders.js +2 -2
  314. package/ts/upi/getmandatedetails.js +2 -2
  315. package/ts/upi/getmandatehistory.js +2 -2
  316. package/ts/upi/getpendingcollectrequest.js +2 -2
  317. package/ts/upi/getprofile.js +2 -2
  318. package/ts/upi/getrecentcontacts.js +2 -2
  319. package/ts/upi/gettransactions.js +2 -2
  320. package/ts/upi/getupinumbers.js +2 -2
  321. package/ts/upi/initiatemandateaction.js +2 -2
  322. package/ts/upi/initiatetransaction.js +2 -2
  323. package/ts/upi/listblockedvpa.js +2 -2
  324. package/ts/upi/unblockvpa.js +2 -2
  325. package/ts/upi/updatedevicebinding.js +2 -2
  326. package/ts/upi/updatedevicelinking.js +2 -2
  327. package/ts/upi/upinumberoperations.js +2 -2
  328. package/ts/upi/validateifsc.js +2 -2
  329. package/ts/upi/validatevpa.js +2 -2
  330. package/ts/upi.js +2 -2
  331. package/ts/customers/getcustomer.d.ts +0 -57
  332. package/ts/customers/getcustomer.js +0 -351
  333. package/ts/customers/getrecommendedtag.d.ts +0 -35
  334. package/ts/customers/getrecommendedtag.js +0 -134
  335. package/ts/customers/getrpdlink.d.ts +0 -40
  336. package/ts/customers/getrpdlink.js +0 -190
  337. package/ts/customers/kyc/epfo.d.ts +0 -38
  338. package/ts/customers/kyc/epfo.js +0 -149
  339. package/ts/customers/sendemailtoken.d.ts +0 -35
  340. package/ts/customers/sendemailtoken.js +0 -117
  341. package/ts/customers/skipdlrcscreen.d.ts +0 -35
  342. package/ts/customers/skipdlrcscreen.js +0 -117
  343. package/ts/customers/step1.d.ts +0 -69
  344. package/ts/customers/step1.js +0 -395
  345. package/ts/customers/step10.d.ts +0 -73
  346. package/ts/customers/step10.js +0 -459
  347. package/ts/customers/step2.d.ts +0 -68
  348. package/ts/customers/step2.js +0 -381
  349. package/ts/customers/step7.d.ts +0 -68
  350. package/ts/customers/step7.js +0 -381
  351. package/ts/customers/step8.d.ts +0 -69
  352. package/ts/customers/step8.js +0 -395
  353. package/ts/customers/step9.d.ts +0 -75
  354. package/ts/customers/step9.js +0 -489
  355. package/ts/customers/stepstatic.d.ts +0 -66
  356. package/ts/customers/stepstatic.js +0 -354
  357. package/ts/customers/verifyemail.d.ts +0 -35
  358. package/ts/google/protobuf/struct.d.ts +0 -121
  359. package/ts/google/protobuf/struct.js +0 -449
  360. package/ts/google/protobuf/timestamp.d.ts +0 -127
  361. package/ts/google/protobuf/timestamp.js +0 -97
  362. package/ts/kyc/epfo/fetchUANList.d.ts +0 -35
  363. package/ts/kyc/epfo/fetchUANList.js +0 -119
  364. package/ts/kyc/getselfietxn.d.ts +0 -37
  365. package/ts/kyc/getselfietxn.js +0 -161
  366. package/ts/loans/addrefrences.d.ts +0 -49
  367. package/ts/loans/addrefrences.js +0 -229
  368. package/ts/loans/getlocpartnerconfirm.d.ts +0 -46
  369. package/ts/loans/getlocpartnerconfirm.js +0 -287
  370. package/ts/loans/getlocpartnertenure.d.ts +0 -57
  371. package/ts/loans/getlocpartnertenure.js +0 -339
  372. package/ts/loans/getpartnerlocwithdraw.d.ts +0 -111
  373. package/ts/loans/getpartnerlocwithdraw.js +0 -1289
  374. package/ts/upi/addupinumber.d.ts +0 -39
  375. package/ts/upi/addvpa.d.ts +0 -36
  376. package/ts/upi/addvpa.js +0 -133
  377. package/ts/upi/suggestvpa.d.ts +0 -35
  378. package/ts/upi/suggestvpa.js +0 -122
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.777",
3
+ "version": "1.2.779",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: banking/aa/getaasupport.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: banking/aa/getbanklist.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: banking/aa/getcustomerbank.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: banking/aa/getrpdlink.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: banking/aa/initiate.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: banking/aa/initiatepennydrop.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: banking/aa/netbankinginitiate.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: banking/aa/pollingrpd.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
package/ts/banking.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: banking.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.bankingClient = exports.bankingService = exports.protobufPackage = void 0;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v6.30.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: bbps/getbills.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -0,0 +1,83 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "bbps.processwebhook";
3
+ /** Request message */
4
+ export interface BDTransactionRequest {
5
+ metadata: string;
6
+ }
7
+ /** Transaction response message */
8
+ export interface TxnResponse {
9
+ id: number;
10
+ customer_id: number;
11
+ utility_name: string;
12
+ provider_name: string;
13
+ /** optional / nullable */
14
+ provider_logo?: string | undefined;
15
+ /** nullable */
16
+ account_no?: string | undefined;
17
+ final_amount: number;
18
+ status: string;
19
+ txn_id: string;
20
+ order_id: string;
21
+ /** optional / nullable */
22
+ bbps_ref_no?: string | undefined;
23
+ /** optional */
24
+ source_ref_no?: string | undefined;
25
+ /** use ISO 8601 string or Timestamp */
26
+ paid_at: string;
27
+ /** optional / nullable */
28
+ biller_status?: string | undefined;
29
+ }
30
+ /** Auth session response message */
31
+ export interface AuthSessionResponse {
32
+ customer_id: number;
33
+ auth_token?: string | undefined;
34
+ device_id?: string | undefined;
35
+ }
36
+ /** Combined response */
37
+ export interface BDTransactionResponse {
38
+ txnResponse: TxnResponse | undefined;
39
+ authSessionResponse: AuthSessionResponse | undefined;
40
+ }
41
+ export declare const BDTransactionRequest: {
42
+ encode(message: BDTransactionRequest, writer?: _m0.Writer): _m0.Writer;
43
+ decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest;
44
+ fromJSON(object: any): BDTransactionRequest;
45
+ toJSON(message: BDTransactionRequest): unknown;
46
+ create<I extends Exact<DeepPartial<BDTransactionRequest>, I>>(base?: I): BDTransactionRequest;
47
+ fromPartial<I extends Exact<DeepPartial<BDTransactionRequest>, I>>(object: I): BDTransactionRequest;
48
+ };
49
+ export declare const TxnResponse: {
50
+ encode(message: TxnResponse, writer?: _m0.Writer): _m0.Writer;
51
+ decode(input: _m0.Reader | Uint8Array, length?: number): TxnResponse;
52
+ fromJSON(object: any): TxnResponse;
53
+ toJSON(message: TxnResponse): unknown;
54
+ create<I extends Exact<DeepPartial<TxnResponse>, I>>(base?: I): TxnResponse;
55
+ fromPartial<I extends Exact<DeepPartial<TxnResponse>, I>>(object: I): TxnResponse;
56
+ };
57
+ export declare const AuthSessionResponse: {
58
+ encode(message: AuthSessionResponse, writer?: _m0.Writer): _m0.Writer;
59
+ decode(input: _m0.Reader | Uint8Array, length?: number): AuthSessionResponse;
60
+ fromJSON(object: any): AuthSessionResponse;
61
+ toJSON(message: AuthSessionResponse): unknown;
62
+ create<I extends Exact<DeepPartial<AuthSessionResponse>, I>>(base?: I): AuthSessionResponse;
63
+ fromPartial<I extends Exact<DeepPartial<AuthSessionResponse>, I>>(object: I): AuthSessionResponse;
64
+ };
65
+ export declare const BDTransactionResponse: {
66
+ encode(message: BDTransactionResponse, writer?: _m0.Writer): _m0.Writer;
67
+ decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionResponse;
68
+ fromJSON(object: any): BDTransactionResponse;
69
+ toJSON(message: BDTransactionResponse): unknown;
70
+ create<I extends Exact<DeepPartial<BDTransactionResponse>, I>>(base?: I): BDTransactionResponse;
71
+ fromPartial<I extends Exact<DeepPartial<BDTransactionResponse>, I>>(object: I): BDTransactionResponse;
72
+ };
73
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
74
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
75
+ [K in keyof T]?: DeepPartial<T[K]>;
76
+ } : Partial<T>;
77
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
78
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
79
+ [K in keyof P]: Exact<P[K], I[K]>;
80
+ } & {
81
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
82
+ };
83
+ export {};
@@ -0,0 +1,468 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
+ // source: bbps/processwebhook.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.BDTransactionResponse = exports.AuthSessionResponse = exports.TxnResponse = exports.BDTransactionRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "bbps.processwebhook";
15
+ function createBaseBDTransactionRequest() {
16
+ return { metadata: "" };
17
+ }
18
+ exports.BDTransactionRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.metadata !== "") {
21
+ writer.uint32(10).string(message.metadata);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBaseBDTransactionRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.metadata = reader.string();
37
+ continue;
38
+ }
39
+ if ((tag & 7) === 4 || tag === 0) {
40
+ break;
41
+ }
42
+ reader.skipType(tag & 7);
43
+ }
44
+ return message;
45
+ },
46
+ fromJSON(object) {
47
+ return { metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "" };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.metadata !== "") {
52
+ obj.metadata = message.metadata;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.BDTransactionRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaseBDTransactionRequest();
61
+ message.metadata = object.metadata ?? "";
62
+ return message;
63
+ },
64
+ };
65
+ function createBaseTxnResponse() {
66
+ return {
67
+ id: 0,
68
+ customer_id: 0,
69
+ utility_name: "",
70
+ provider_name: "",
71
+ provider_logo: undefined,
72
+ account_no: undefined,
73
+ final_amount: 0,
74
+ status: "",
75
+ txn_id: "",
76
+ order_id: "",
77
+ bbps_ref_no: undefined,
78
+ source_ref_no: undefined,
79
+ paid_at: "",
80
+ biller_status: undefined,
81
+ };
82
+ }
83
+ exports.TxnResponse = {
84
+ encode(message, writer = minimal_1.default.Writer.create()) {
85
+ if (message.id !== 0) {
86
+ writer.uint32(8).int32(message.id);
87
+ }
88
+ if (message.customer_id !== 0) {
89
+ writer.uint32(16).int32(message.customer_id);
90
+ }
91
+ if (message.utility_name !== "") {
92
+ writer.uint32(26).string(message.utility_name);
93
+ }
94
+ if (message.provider_name !== "") {
95
+ writer.uint32(34).string(message.provider_name);
96
+ }
97
+ if (message.provider_logo !== undefined) {
98
+ writer.uint32(42).string(message.provider_logo);
99
+ }
100
+ if (message.account_no !== undefined) {
101
+ writer.uint32(50).string(message.account_no);
102
+ }
103
+ if (message.final_amount !== 0) {
104
+ writer.uint32(57).double(message.final_amount);
105
+ }
106
+ if (message.status !== "") {
107
+ writer.uint32(66).string(message.status);
108
+ }
109
+ if (message.txn_id !== "") {
110
+ writer.uint32(74).string(message.txn_id);
111
+ }
112
+ if (message.order_id !== "") {
113
+ writer.uint32(82).string(message.order_id);
114
+ }
115
+ if (message.bbps_ref_no !== undefined) {
116
+ writer.uint32(90).string(message.bbps_ref_no);
117
+ }
118
+ if (message.source_ref_no !== undefined) {
119
+ writer.uint32(98).string(message.source_ref_no);
120
+ }
121
+ if (message.paid_at !== "") {
122
+ writer.uint32(106).string(message.paid_at);
123
+ }
124
+ if (message.biller_status !== undefined) {
125
+ writer.uint32(114).string(message.biller_status);
126
+ }
127
+ return writer;
128
+ },
129
+ decode(input, length) {
130
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
131
+ let end = length === undefined ? reader.len : reader.pos + length;
132
+ const message = createBaseTxnResponse();
133
+ while (reader.pos < end) {
134
+ const tag = reader.uint32();
135
+ switch (tag >>> 3) {
136
+ case 1:
137
+ if (tag !== 8) {
138
+ break;
139
+ }
140
+ message.id = reader.int32();
141
+ continue;
142
+ case 2:
143
+ if (tag !== 16) {
144
+ break;
145
+ }
146
+ message.customer_id = reader.int32();
147
+ continue;
148
+ case 3:
149
+ if (tag !== 26) {
150
+ break;
151
+ }
152
+ message.utility_name = reader.string();
153
+ continue;
154
+ case 4:
155
+ if (tag !== 34) {
156
+ break;
157
+ }
158
+ message.provider_name = reader.string();
159
+ continue;
160
+ case 5:
161
+ if (tag !== 42) {
162
+ break;
163
+ }
164
+ message.provider_logo = reader.string();
165
+ continue;
166
+ case 6:
167
+ if (tag !== 50) {
168
+ break;
169
+ }
170
+ message.account_no = reader.string();
171
+ continue;
172
+ case 7:
173
+ if (tag !== 57) {
174
+ break;
175
+ }
176
+ message.final_amount = reader.double();
177
+ continue;
178
+ case 8:
179
+ if (tag !== 66) {
180
+ break;
181
+ }
182
+ message.status = reader.string();
183
+ continue;
184
+ case 9:
185
+ if (tag !== 74) {
186
+ break;
187
+ }
188
+ message.txn_id = reader.string();
189
+ continue;
190
+ case 10:
191
+ if (tag !== 82) {
192
+ break;
193
+ }
194
+ message.order_id = reader.string();
195
+ continue;
196
+ case 11:
197
+ if (tag !== 90) {
198
+ break;
199
+ }
200
+ message.bbps_ref_no = reader.string();
201
+ continue;
202
+ case 12:
203
+ if (tag !== 98) {
204
+ break;
205
+ }
206
+ message.source_ref_no = reader.string();
207
+ continue;
208
+ case 13:
209
+ if (tag !== 106) {
210
+ break;
211
+ }
212
+ message.paid_at = reader.string();
213
+ continue;
214
+ case 14:
215
+ if (tag !== 114) {
216
+ break;
217
+ }
218
+ message.biller_status = reader.string();
219
+ continue;
220
+ }
221
+ if ((tag & 7) === 4 || tag === 0) {
222
+ break;
223
+ }
224
+ reader.skipType(tag & 7);
225
+ }
226
+ return message;
227
+ },
228
+ fromJSON(object) {
229
+ return {
230
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
231
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
232
+ utility_name: isSet(object.utility_name) ? globalThis.String(object.utility_name) : "",
233
+ provider_name: isSet(object.provider_name) ? globalThis.String(object.provider_name) : "",
234
+ provider_logo: isSet(object.provider_logo) ? globalThis.String(object.provider_logo) : undefined,
235
+ account_no: isSet(object.account_no) ? globalThis.String(object.account_no) : undefined,
236
+ final_amount: isSet(object.final_amount) ? globalThis.Number(object.final_amount) : 0,
237
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
238
+ txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
239
+ order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
240
+ bbps_ref_no: isSet(object.bbps_ref_no) ? globalThis.String(object.bbps_ref_no) : undefined,
241
+ source_ref_no: isSet(object.source_ref_no) ? globalThis.String(object.source_ref_no) : undefined,
242
+ paid_at: isSet(object.paid_at) ? globalThis.String(object.paid_at) : "",
243
+ biller_status: isSet(object.biller_status) ? globalThis.String(object.biller_status) : undefined,
244
+ };
245
+ },
246
+ toJSON(message) {
247
+ const obj = {};
248
+ if (message.id !== 0) {
249
+ obj.id = Math.round(message.id);
250
+ }
251
+ if (message.customer_id !== 0) {
252
+ obj.customer_id = Math.round(message.customer_id);
253
+ }
254
+ if (message.utility_name !== "") {
255
+ obj.utility_name = message.utility_name;
256
+ }
257
+ if (message.provider_name !== "") {
258
+ obj.provider_name = message.provider_name;
259
+ }
260
+ if (message.provider_logo !== undefined) {
261
+ obj.provider_logo = message.provider_logo;
262
+ }
263
+ if (message.account_no !== undefined) {
264
+ obj.account_no = message.account_no;
265
+ }
266
+ if (message.final_amount !== 0) {
267
+ obj.final_amount = message.final_amount;
268
+ }
269
+ if (message.status !== "") {
270
+ obj.status = message.status;
271
+ }
272
+ if (message.txn_id !== "") {
273
+ obj.txn_id = message.txn_id;
274
+ }
275
+ if (message.order_id !== "") {
276
+ obj.order_id = message.order_id;
277
+ }
278
+ if (message.bbps_ref_no !== undefined) {
279
+ obj.bbps_ref_no = message.bbps_ref_no;
280
+ }
281
+ if (message.source_ref_no !== undefined) {
282
+ obj.source_ref_no = message.source_ref_no;
283
+ }
284
+ if (message.paid_at !== "") {
285
+ obj.paid_at = message.paid_at;
286
+ }
287
+ if (message.biller_status !== undefined) {
288
+ obj.biller_status = message.biller_status;
289
+ }
290
+ return obj;
291
+ },
292
+ create(base) {
293
+ return exports.TxnResponse.fromPartial(base ?? {});
294
+ },
295
+ fromPartial(object) {
296
+ const message = createBaseTxnResponse();
297
+ message.id = object.id ?? 0;
298
+ message.customer_id = object.customer_id ?? 0;
299
+ message.utility_name = object.utility_name ?? "";
300
+ message.provider_name = object.provider_name ?? "";
301
+ message.provider_logo = object.provider_logo ?? undefined;
302
+ message.account_no = object.account_no ?? undefined;
303
+ message.final_amount = object.final_amount ?? 0;
304
+ message.status = object.status ?? "";
305
+ message.txn_id = object.txn_id ?? "";
306
+ message.order_id = object.order_id ?? "";
307
+ message.bbps_ref_no = object.bbps_ref_no ?? undefined;
308
+ message.source_ref_no = object.source_ref_no ?? undefined;
309
+ message.paid_at = object.paid_at ?? "";
310
+ message.biller_status = object.biller_status ?? undefined;
311
+ return message;
312
+ },
313
+ };
314
+ function createBaseAuthSessionResponse() {
315
+ return { customer_id: 0, auth_token: undefined, device_id: undefined };
316
+ }
317
+ exports.AuthSessionResponse = {
318
+ encode(message, writer = minimal_1.default.Writer.create()) {
319
+ if (message.customer_id !== 0) {
320
+ writer.uint32(8).int32(message.customer_id);
321
+ }
322
+ if (message.auth_token !== undefined) {
323
+ writer.uint32(18).string(message.auth_token);
324
+ }
325
+ if (message.device_id !== undefined) {
326
+ writer.uint32(26).string(message.device_id);
327
+ }
328
+ return writer;
329
+ },
330
+ decode(input, length) {
331
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
332
+ let end = length === undefined ? reader.len : reader.pos + length;
333
+ const message = createBaseAuthSessionResponse();
334
+ while (reader.pos < end) {
335
+ const tag = reader.uint32();
336
+ switch (tag >>> 3) {
337
+ case 1:
338
+ if (tag !== 8) {
339
+ break;
340
+ }
341
+ message.customer_id = reader.int32();
342
+ continue;
343
+ case 2:
344
+ if (tag !== 18) {
345
+ break;
346
+ }
347
+ message.auth_token = reader.string();
348
+ continue;
349
+ case 3:
350
+ if (tag !== 26) {
351
+ break;
352
+ }
353
+ message.device_id = reader.string();
354
+ continue;
355
+ }
356
+ if ((tag & 7) === 4 || tag === 0) {
357
+ break;
358
+ }
359
+ reader.skipType(tag & 7);
360
+ }
361
+ return message;
362
+ },
363
+ fromJSON(object) {
364
+ return {
365
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
366
+ auth_token: isSet(object.auth_token) ? globalThis.String(object.auth_token) : undefined,
367
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : undefined,
368
+ };
369
+ },
370
+ toJSON(message) {
371
+ const obj = {};
372
+ if (message.customer_id !== 0) {
373
+ obj.customer_id = Math.round(message.customer_id);
374
+ }
375
+ if (message.auth_token !== undefined) {
376
+ obj.auth_token = message.auth_token;
377
+ }
378
+ if (message.device_id !== undefined) {
379
+ obj.device_id = message.device_id;
380
+ }
381
+ return obj;
382
+ },
383
+ create(base) {
384
+ return exports.AuthSessionResponse.fromPartial(base ?? {});
385
+ },
386
+ fromPartial(object) {
387
+ const message = createBaseAuthSessionResponse();
388
+ message.customer_id = object.customer_id ?? 0;
389
+ message.auth_token = object.auth_token ?? undefined;
390
+ message.device_id = object.device_id ?? undefined;
391
+ return message;
392
+ },
393
+ };
394
+ function createBaseBDTransactionResponse() {
395
+ return { txnResponse: undefined, authSessionResponse: undefined };
396
+ }
397
+ exports.BDTransactionResponse = {
398
+ encode(message, writer = minimal_1.default.Writer.create()) {
399
+ if (message.txnResponse !== undefined) {
400
+ exports.TxnResponse.encode(message.txnResponse, writer.uint32(10).fork()).ldelim();
401
+ }
402
+ if (message.authSessionResponse !== undefined) {
403
+ exports.AuthSessionResponse.encode(message.authSessionResponse, writer.uint32(18).fork()).ldelim();
404
+ }
405
+ return writer;
406
+ },
407
+ decode(input, length) {
408
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
409
+ let end = length === undefined ? reader.len : reader.pos + length;
410
+ const message = createBaseBDTransactionResponse();
411
+ while (reader.pos < end) {
412
+ const tag = reader.uint32();
413
+ switch (tag >>> 3) {
414
+ case 1:
415
+ if (tag !== 10) {
416
+ break;
417
+ }
418
+ message.txnResponse = exports.TxnResponse.decode(reader, reader.uint32());
419
+ continue;
420
+ case 2:
421
+ if (tag !== 18) {
422
+ break;
423
+ }
424
+ message.authSessionResponse = exports.AuthSessionResponse.decode(reader, reader.uint32());
425
+ continue;
426
+ }
427
+ if ((tag & 7) === 4 || tag === 0) {
428
+ break;
429
+ }
430
+ reader.skipType(tag & 7);
431
+ }
432
+ return message;
433
+ },
434
+ fromJSON(object) {
435
+ return {
436
+ txnResponse: isSet(object.txnResponse) ? exports.TxnResponse.fromJSON(object.txnResponse) : undefined,
437
+ authSessionResponse: isSet(object.authSessionResponse)
438
+ ? exports.AuthSessionResponse.fromJSON(object.authSessionResponse)
439
+ : undefined,
440
+ };
441
+ },
442
+ toJSON(message) {
443
+ const obj = {};
444
+ if (message.txnResponse !== undefined) {
445
+ obj.txnResponse = exports.TxnResponse.toJSON(message.txnResponse);
446
+ }
447
+ if (message.authSessionResponse !== undefined) {
448
+ obj.authSessionResponse = exports.AuthSessionResponse.toJSON(message.authSessionResponse);
449
+ }
450
+ return obj;
451
+ },
452
+ create(base) {
453
+ return exports.BDTransactionResponse.fromPartial(base ?? {});
454
+ },
455
+ fromPartial(object) {
456
+ const message = createBaseBDTransactionResponse();
457
+ message.txnResponse = (object.txnResponse !== undefined && object.txnResponse !== null)
458
+ ? exports.TxnResponse.fromPartial(object.txnResponse)
459
+ : undefined;
460
+ message.authSessionResponse = (object.authSessionResponse !== undefined && object.authSessionResponse !== null)
461
+ ? exports.AuthSessionResponse.fromPartial(object.authSessionResponse)
462
+ : undefined;
463
+ return message;
464
+ },
465
+ };
466
+ function isSet(value) {
467
+ return value !== null && value !== undefined;
468
+ }