moov_ruby 25.1.11 → 25.4.0

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 (570) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/metadata_fields.rb +22 -85
  3. data/lib/crystalline/module.rb +13 -99
  4. data/lib/crystalline/types.rb +3 -90
  5. data/lib/moov/account_terminal_applications.rb +14 -28
  6. data/lib/moov/accounts.rb +45 -80
  7. data/lib/moov/adjustments.rb +7 -15
  8. data/lib/moov/apple_pay.rb +25 -42
  9. data/lib/moov/authentication.rb +8 -16
  10. data/lib/moov/avatars.rb +5 -10
  11. data/lib/moov/bank_accounts.rb +45 -74
  12. data/lib/moov/branding.rb +12 -23
  13. data/lib/moov/capabilities.rb +15 -29
  14. data/lib/moov/card_issuing.rb +19 -36
  15. data/lib/moov/cards.rb +28 -60
  16. data/lib/moov/client.rb +1 -2
  17. data/lib/moov/disputes.rb +53 -88
  18. data/lib/moov/end_to_end_encryption.rb +7 -15
  19. data/lib/moov/enriched_address.rb +3 -8
  20. data/lib/moov/enriched_profile.rb +4 -9
  21. data/lib/moov/fee_plans.rb +33 -65
  22. data/lib/moov/files.rb +12 -23
  23. data/lib/moov/images.rb +27 -47
  24. data/lib/moov/industries.rb +4 -9
  25. data/lib/moov/institutions.rb +12 -20
  26. data/lib/moov/issuing_transactions.rb +16 -33
  27. data/lib/moov/models/components/account.rb +5 -5
  28. data/lib/moov/models/components/accountfees.rb +2 -6
  29. data/lib/moov/models/components/accountfees.rbi +0 -2
  30. data/lib/moov/models/components/accountnameverification.rb +4 -4
  31. data/lib/moov/models/components/accounttype.rb +2 -0
  32. data/lib/moov/models/components/accountverificationstatus.rb +4 -2
  33. data/lib/moov/models/components/achcreditsamedaypaymentmethod.rb +1 -1
  34. data/lib/moov/models/components/achcreditsamedaypaymentmethod_paymentmethodtype.rb +2 -0
  35. data/lib/moov/models/components/achcreditstandardpaymentmethod.rb +1 -1
  36. data/lib/moov/models/components/achcreditstandardpaymentmethod_paymentmethodtype.rb +2 -0
  37. data/lib/moov/models/components/achdebitcollectpaymentmethod.rb +1 -1
  38. data/lib/moov/models/components/achdebitcollectpaymentmethod_paymentmethodtype.rb +2 -0
  39. data/lib/moov/models/components/achdebitfundpaymentmethod.rb +1 -1
  40. data/lib/moov/models/components/achdebitfundpaymentmethod_paymentmethodtype.rb +2 -0
  41. data/lib/moov/models/components/achreturncode.rb +3 -1
  42. data/lib/moov/models/components/achtransactiondetails.rb +10 -10
  43. data/lib/moov/models/components/achtransactionstatus.rb +2 -0
  44. data/lib/moov/models/components/adjustment.rb +1 -1
  45. data/lib/moov/models/components/adjustmentfees.rb +3 -3
  46. data/lib/moov/models/components/amount.rb +1 -1
  47. data/lib/moov/models/components/amountdecimal.rb +1 -1
  48. data/lib/moov/models/components/amountupdate.rb +1 -1
  49. data/lib/moov/models/components/applepayheader.rb +1 -1
  50. data/lib/moov/models/components/applepaymerchantdomains.rb +2 -2
  51. data/lib/moov/models/components/applepaypaymentmethod.rb +1 -1
  52. data/lib/moov/models/components/applepaypaymentmethod_paymentmethodtype.rb +2 -0
  53. data/lib/moov/models/components/applepayresponse.rb +2 -2
  54. data/lib/moov/models/components/applicationscope.rb +2 -0
  55. data/lib/moov/models/components/asynccreatedrefund.rb +1 -1
  56. data/lib/moov/models/components/asynctransfer.rb +1 -1
  57. data/lib/moov/models/components/authtoken.rb +1 -1
  58. data/lib/moov/models/components/authtokenrequest.rb +2 -2
  59. data/lib/moov/models/components/bankaccount.rb +7 -7
  60. data/lib/moov/models/components/bankaccountexception.rb +5 -5
  61. data/lib/moov/models/components/bankaccountholdertype.rb +2 -0
  62. data/lib/moov/models/components/bankaccountintegration.rb +2 -2
  63. data/lib/moov/models/components/bankaccountstatus.rb +2 -0
  64. data/lib/moov/models/components/bankaccountstatusreason.rb +2 -0
  65. data/lib/moov/models/components/bankaccounttype.rb +2 -0
  66. data/lib/moov/models/components/bankaccountverification.rb +2 -2
  67. data/lib/moov/models/components/bankaccountverificationcreated.rb +2 -2
  68. data/lib/moov/models/components/bankaccountverificationmethod.rb +2 -0
  69. data/lib/moov/models/components/bankaccountverificationstatus.rb +2 -0
  70. data/lib/moov/models/components/bankaccountwaitfor.rb +2 -0
  71. data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
  72. data/lib/moov/models/components/billablefee.rb +3 -3
  73. data/lib/moov/models/components/billingsummary.rb +6 -6
  74. data/lib/moov/models/components/billingsummary_platformfees.rb +3 -3
  75. data/lib/moov/models/components/billingsummary_volumeamount.rb +3 -3
  76. data/lib/moov/models/components/billingsummarydetails.rb +4 -4
  77. data/lib/moov/models/components/billingsummarydetails_volumeamount.rb +3 -3
  78. data/lib/moov/models/components/businessprofile.rb +2 -2
  79. data/lib/moov/models/components/businesstype.rb +2 -0
  80. data/lib/moov/models/components/calltoaction.rb +3 -1
  81. data/lib/moov/models/components/cancellation.rb +2 -2
  82. data/lib/moov/models/components/cancellationstatus.rb +2 -0
  83. data/lib/moov/models/components/capability.rb +6 -6
  84. data/lib/moov/models/components/capabilityid.rb +3 -1
  85. data/lib/moov/models/components/capabilitystatus.rb +2 -0
  86. data/lib/moov/models/components/card.rb +5 -5
  87. data/lib/moov/models/components/cardaccountupdater.rb +2 -2
  88. data/lib/moov/models/components/cardacquiring.rb +4 -4
  89. data/lib/moov/models/components/cardacquiringdispute.rb +1 -1
  90. data/lib/moov/models/components/cardacquiringmodel.rb +2 -0
  91. data/lib/moov/models/components/cardacquiringrefund.rb +3 -3
  92. data/lib/moov/models/components/cardbrand.rb +2 -0
  93. data/lib/moov/models/components/cardissuingnetwork.rb +2 -0
  94. data/lib/moov/models/components/cardpaymentpaymentmethod.rb +1 -1
  95. data/lib/moov/models/components/cardpaymentpaymentmethod_paymentmethodtype.rb +2 -0
  96. data/lib/moov/models/components/{moovwallettransferpaymentmethod.rb → cardpresentpaymentpaymentmethod.rb} +9 -9
  97. data/lib/moov/models/components/{applepaytransferpaymentmethod.rbi → cardpresentpaymentpaymentmethod.rbi} +4 -4
  98. data/lib/moov/models/components/{moovwallettransferpaymentmethod_paymentmethodtype.rb → cardpresentpaymentpaymentmethod_paymentmethodtype.rb} +4 -2
  99. data/lib/moov/models/components/{pushtocardtransferpaymentmethod_paymentmethodtype.rbi → cardpresentpaymentpaymentmethod_paymentmethodtype.rbi} +2 -2
  100. data/lib/moov/models/components/cardtransactiondetails.rb +12 -12
  101. data/lib/moov/models/components/cardtransactionfailurecode.rb +2 -0
  102. data/lib/moov/models/components/cardtransactionstatus.rb +2 -0
  103. data/lib/moov/models/components/cardtype.rb +2 -0
  104. data/lib/moov/models/components/cardupdatereason.rb +2 -0
  105. data/lib/moov/models/components/cardverification.rb +3 -3
  106. data/lib/moov/models/components/cardverificationresult.rb +2 -0
  107. data/lib/moov/models/components/collectionpaymentmethodtype.rb +2 -0
  108. data/lib/moov/models/components/completedmicrodeposits.rb +1 -1
  109. data/lib/moov/models/components/createaccount.rb +2 -2
  110. data/lib/moov/models/components/createbusinessprofile.rb +2 -2
  111. data/lib/moov/models/components/createdtransfer.rb +4 -4
  112. data/lib/moov/models/components/createevidencefilemultipart.rb +1 -1
  113. data/lib/moov/models/components/createevidencetext.rb +1 -1
  114. data/lib/moov/models/components/createfeeplanagreement.rb +1 -1
  115. data/lib/moov/models/components/createpaymentlink.rb +4 -4
  116. data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -7
  117. data/lib/moov/models/components/createpaymentlinklineitemoption.rb +1 -4
  118. data/lib/moov/models/components/createproductoption.rb +1 -1
  119. data/lib/moov/models/components/createproductoptiongroup.rb +2 -2
  120. data/lib/moov/models/components/createrefund.rb +1 -1
  121. data/lib/moov/models/components/createscheduledtransferlineitem.rb +2 -6
  122. data/lib/moov/models/components/createscheduledtransferlineitemoption.rb +1 -4
  123. data/lib/moov/models/components/createsweepconfig.rb +1 -1
  124. data/lib/moov/models/components/createterminalapplication.rb +1 -1
  125. data/lib/moov/models/components/createtransferlineitem.rb +2 -6
  126. data/lib/moov/models/components/createtransferlineitemoption.rb +1 -4
  127. data/lib/moov/models/components/createtransfersourceach.rb +2 -2
  128. data/lib/moov/models/components/createtransfersourcecard.rb +2 -2
  129. data/lib/moov/models/components/createwebhook.rb +1 -1
  130. data/lib/moov/models/components/debitholdperiod.rb +2 -0
  131. data/lib/moov/models/components/disbursementpaymentmethodtype.rb +2 -0
  132. data/lib/moov/models/components/dispute.rb +7 -7
  133. data/lib/moov/models/components/disputeevidenceresponse.rb +4 -4
  134. data/lib/moov/models/components/disputephase.rb +2 -0
  135. data/lib/moov/models/components/disputestatus.rb +3 -1
  136. data/lib/moov/models/components/document.rb +2 -2
  137. data/lib/moov/models/components/documenttype.rb +2 -0
  138. data/lib/moov/models/components/domesticpullfromcard.rb +2 -0
  139. data/lib/moov/models/components/domesticpushtocard.rb +2 -0
  140. data/lib/moov/models/components/{achcreditstandardtransferpaymentmethod_paymentmethodtype.rb → entrymode.rb} +4 -2
  141. data/lib/moov/models/components/entrymode.rbi +11 -0
  142. data/lib/moov/models/components/evidencetextresponse.rb +2 -2
  143. data/lib/moov/models/components/evidencetype.rb +2 -0
  144. data/lib/moov/models/components/evidenceuploadresponse.rb +2 -2
  145. data/lib/moov/models/components/facilitatorfee.rb +1 -1
  146. data/lib/moov/models/components/feecategory.rb +2 -0
  147. data/lib/moov/models/components/feemodel.rb +2 -0
  148. data/lib/moov/models/components/feeplan.rb +3 -3
  149. data/lib/moov/models/components/feeplanagreement.rb +6 -6
  150. data/lib/moov/models/components/feeplanagreementstatus.rb +2 -0
  151. data/lib/moov/models/components/feeproperties.rb +1 -1
  152. data/lib/moov/models/components/filedetails.rb +4 -4
  153. data/lib/moov/models/components/filepurpose.rb +2 -0
  154. data/lib/moov/models/components/filestatus.rb +2 -0
  155. data/lib/moov/models/components/fileuploadrequestmultipart.rb +1 -1
  156. data/lib/moov/models/components/fulfillmentdetails.rb +1 -1
  157. data/lib/moov/models/components/fullissuedcard.rb +5 -5
  158. data/lib/moov/models/components/generatedby.rb +7 -11
  159. data/lib/moov/models/components/generatedby.rbi +0 -2
  160. data/lib/moov/models/components/granttype.rb +3 -1
  161. data/lib/moov/models/components/imagemetadata.rb +4 -4
  162. data/lib/moov/models/components/incurredfee.rb +2 -2
  163. data/lib/moov/models/components/invoicestatus.rb +2 -0
  164. data/lib/moov/models/components/issuedcard.rb +5 -5
  165. data/lib/moov/models/components/issuedcardauthorization.rb +3 -3
  166. data/lib/moov/models/components/issuedcardauthorizationevent.rb +3 -3
  167. data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +2 -0
  168. data/lib/moov/models/components/issuedcardeventtype.rb +2 -0
  169. data/lib/moov/models/components/issuedcardformfactor.rb +2 -0
  170. data/lib/moov/models/components/issuedcardstate.rb +3 -1
  171. data/lib/moov/models/components/issuedcardtransaction.rb +2 -2
  172. data/lib/moov/models/components/issuingauthorizationstatus.rb +2 -0
  173. data/lib/moov/models/components/issuingintervallimit.rb +2 -0
  174. data/lib/moov/models/components/issuingvelocitylimit.rb +1 -1
  175. data/lib/moov/models/components/jsonwebkey.rb +6 -6
  176. data/lib/moov/models/components/kind.rb +2 -0
  177. data/lib/moov/models/components/linkapplepay.rb +2 -2
  178. data/lib/moov/models/components/linkapplepaymentdata.rb +2 -2
  179. data/lib/moov/models/components/linkapplepaymentmethod.rb +1 -1
  180. data/lib/moov/models/components/linkapplepaytoken.rb +3 -3
  181. data/lib/moov/models/components/linkcardwaitfor.rb +2 -0
  182. data/lib/moov/models/components/linkedapplepaypaymentmethod.rb +1 -1
  183. data/lib/moov/models/components/manualtermsofservice.rb +1 -1
  184. data/lib/moov/models/components/manualtermsofserviceupdate.rb +1 -1
  185. data/lib/moov/models/components/microdepositstatus.rb +2 -0
  186. data/lib/moov/models/components/minimumcommitment.rb +1 -1
  187. data/lib/moov/models/components/mode.rb +2 -0
  188. data/lib/moov/models/components/monthlyplatformfee.rb +1 -1
  189. data/lib/moov/models/components/moovfee.rb +1 -1
  190. data/lib/moov/models/components/moovwalletpaymentmethod.rb +1 -1
  191. data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +2 -0
  192. data/lib/moov/models/components/mxauthorizationcode.rb +1 -1
  193. data/lib/moov/models/components/mxpayload.rb +3 -3
  194. data/lib/moov/models/components/occurrence.rb +1 -1
  195. data/lib/moov/models/components/occurrencesresponse.rb +5 -5
  196. data/lib/moov/models/components/occurrencestatus.rb +2 -0
  197. data/lib/moov/models/components/onboardinginvite.rb +3 -3
  198. data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
  199. data/lib/moov/models/components/otherfees.rb +3 -3
  200. data/lib/moov/models/components/partnerpricingagreement.rb +6 -6
  201. data/lib/moov/models/components/patchbusiness.rb +2 -2
  202. data/lib/moov/models/components/patchsweepconfig.rb +1 -1
  203. data/lib/moov/models/components/patchwallet.rb +1 -1
  204. data/lib/moov/models/components/paymentlink.rb +9 -9
  205. data/lib/moov/models/components/paymentlinkdisplayoptions.rb +2 -2
  206. data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +2 -2
  207. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +1 -1
  208. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +1 -1
  209. data/lib/moov/models/components/paymentlinkstatus.rb +2 -0
  210. data/lib/moov/models/components/paymentlinktype.rb +2 -1
  211. data/lib/moov/models/components/paymentmethodsbankaccount.rb +5 -5
  212. data/lib/moov/models/components/paymentmethodscard.rb +4 -4
  213. data/lib/moov/models/components/paymentmethodswallet.rb +1 -1
  214. data/lib/moov/models/components/paymentmethodtype.rb +3 -0
  215. data/lib/moov/models/components/payoutrecipient.rb +1 -1
  216. data/lib/moov/models/components/plaidintegration.rb +2 -2
  217. data/lib/moov/models/components/plaidlinkintegration.rb +2 -2
  218. data/lib/moov/models/components/plaidlinkpayload.rb +3 -3
  219. data/lib/moov/models/components/plaidpayload.rb +2 -2
  220. data/lib/moov/models/components/platformfees.rb +2 -2
  221. data/lib/moov/models/components/primaryregulator.rb +2 -0
  222. data/lib/moov/models/components/product.rb +4 -4
  223. data/lib/moov/models/components/productoption.rb +1 -1
  224. data/lib/moov/models/components/productoptiongroup.rb +2 -2
  225. data/lib/moov/models/components/productrequest.rb +1 -1
  226. data/lib/moov/models/components/pullfromcardpaymentmethod.rb +1 -1
  227. data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +2 -0
  228. data/lib/moov/models/components/pushtocardpaymentmethod.rb +1 -1
  229. data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +2 -0
  230. data/lib/moov/models/components/receiptkind.rb +2 -0
  231. data/lib/moov/models/components/receiptrequest.rb +1 -1
  232. data/lib/moov/models/components/receiptresponse.rb +2 -2
  233. data/lib/moov/models/components/recur.rb +1 -1
  234. data/lib/moov/models/components/recurresponse.rb +1 -1
  235. data/lib/moov/models/components/refundcarddetails.rb +7 -7
  236. data/lib/moov/models/components/refundcardstatus.rb +2 -0
  237. data/lib/moov/models/components/refundstatus.rb +2 -0
  238. data/lib/moov/models/components/representative.rb +3 -3
  239. data/lib/moov/models/components/requestcard.rb +1 -1
  240. data/lib/moov/models/components/requirementerror.rb +2 -2
  241. data/lib/moov/models/components/requirementerrorcode.rb +2 -0
  242. data/lib/moov/models/components/requirementid.rb +2 -0
  243. data/lib/moov/models/components/residual.rb +4 -4
  244. data/lib/moov/models/components/returnpolicytype.rb +2 -0
  245. data/lib/moov/models/components/revoketokenrequest.rb +1 -1
  246. data/lib/moov/models/components/rtpcreditpaymentmethod.rb +1 -1
  247. data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +2 -0
  248. data/lib/moov/models/components/rtpfailurecode.rb +2 -0
  249. data/lib/moov/models/components/rtprejectioncode.rb +3 -1
  250. data/lib/moov/models/components/{rtpdetails.rb → rtptransactiondetails.rb} +8 -10
  251. data/lib/moov/models/components/{rtpdetails.rbi → rtptransactiondetails.rbi} +2 -2
  252. data/lib/moov/models/components/rtptransactionstatus.rb +2 -0
  253. data/lib/moov/models/components/schedulelistresponse.rb +4 -4
  254. data/lib/moov/models/components/scheduleresponse.rb +4 -4
  255. data/lib/moov/models/components/seccode.rb +2 -0
  256. data/lib/moov/models/components/sentreceipt.rb +1 -1
  257. data/lib/moov/models/components/statement.rb +6 -6
  258. data/lib/moov/models/components/status.rb +2 -0
  259. data/lib/moov/models/components/sweep.rb +3 -3
  260. data/lib/moov/models/components/sweepconfig.rb +3 -3
  261. data/lib/moov/models/components/sweepconfigpaymentmethod.rb +1 -1
  262. data/lib/moov/models/components/sweepconfigstatus.rb +2 -0
  263. data/lib/moov/models/components/sweepstatus.rb +2 -0
  264. data/lib/moov/models/components/sweepsubtotal.rb +1 -1
  265. data/lib/moov/models/components/terminalapplication.rb +2 -2
  266. data/lib/moov/models/components/terminalapplicationplatform.rb +2 -0
  267. data/lib/moov/models/components/terminalapplicationstatus.rb +2 -0
  268. data/lib/moov/models/components/terminalcard.rb +78 -0
  269. data/lib/moov/models/components/terminalcard.rbi +35 -0
  270. data/lib/moov/models/components/termsofservice.rb +1 -1
  271. data/lib/moov/models/components/ticketstatus.rb +2 -0
  272. data/lib/moov/models/components/token_type_hint.rb +2 -0
  273. data/lib/moov/models/components/tokentype.rb +2 -0
  274. data/lib/moov/models/components/transactionsource.rb +3 -1
  275. data/lib/moov/models/components/transfer.rb +4 -4
  276. data/lib/moov/models/components/transferdestination.rb +7 -7
  277. data/lib/moov/models/components/transferfailurereason.rb +2 -0
  278. data/lib/moov/models/components/transferoptions.rb +3 -3
  279. data/lib/moov/models/components/transferparty.rb +2 -0
  280. data/lib/moov/models/components/transfersource.rb +11 -7
  281. data/lib/moov/models/components/transfersource.rbi +2 -0
  282. data/lib/moov/models/components/transferstatus.rb +2 -0
  283. data/lib/moov/models/components/transferwaitfor.rb +2 -0
  284. data/lib/moov/models/components/underwriting.rb +2 -2
  285. data/lib/moov/models/components/underwritingstatus.rb +4 -2
  286. data/lib/moov/models/components/updateevidence.rb +1 -1
  287. data/lib/moov/models/components/updateissuedcard.rb +1 -1
  288. data/lib/moov/models/components/updateissuedcardstate.rb +2 -0
  289. data/lib/moov/models/components/updatepaymentlink.rb +1 -1
  290. data/lib/moov/models/components/updatewebhook.rb +1 -1
  291. data/lib/moov/models/components/use.rb +2 -0
  292. data/lib/moov/models/components/verification.rb +9 -9
  293. data/lib/moov/models/components/verificationstatus.rb +4 -2
  294. data/lib/moov/models/components/verificationstatusdetail.rb +4 -2
  295. data/lib/moov/models/components/wallet.rb +4 -4
  296. data/lib/moov/models/components/walletavailablebalance.rb +1 -1
  297. data/lib/moov/models/components/walletstatus.rb +2 -0
  298. data/lib/moov/models/components/wallettransaction.rb +5 -5
  299. data/lib/moov/models/components/wallettransactionsourcetype.rb +2 -0
  300. data/lib/moov/models/components/wallettransactionstatus.rb +2 -0
  301. data/lib/moov/models/components/wallettransactiontype.rb +2 -0
  302. data/lib/moov/models/components/wallettype.rb +2 -0
  303. data/lib/moov/models/components/webhook.rb +4 -4
  304. data/lib/moov/models/components/webhookdatabankaccountupdated.rb +2 -2
  305. data/lib/moov/models/components/webhookdatacancellationcreated.rb +1 -1
  306. data/lib/moov/models/components/webhookdatacancellationupdated.rb +1 -1
  307. data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -2
  308. data/lib/moov/models/components/webhookdatacapabilityupdated.rb +3 -3
  309. data/lib/moov/models/components/webhookdatacardautoupdated.rb +1 -1
  310. data/lib/moov/models/components/webhookdatadisputecreated.rb +3 -3
  311. data/lib/moov/models/components/webhookdatadisputeupdated.rb +3 -3
  312. data/lib/moov/models/components/webhookdatainvoiceupdated.rb +1 -1
  313. data/lib/moov/models/components/webhookdatanetworkidupdated.rb +1 -1
  314. data/lib/moov/models/components/webhookdatarefundupdated.rb +1 -1
  315. data/lib/moov/models/components/webhookdatasweepupdated.rb +1 -1
  316. data/lib/moov/models/components/webhookdataterminalapplicationcreated.rb +1 -1
  317. data/lib/moov/models/components/webhookdataterminalapplicationupdated.rb +1 -1
  318. data/lib/moov/models/components/webhookdataticketupdated.rb +1 -1
  319. data/lib/moov/models/components/webhookdatatransfercreated.rb +1 -1
  320. data/lib/moov/models/components/webhookdatatransferstatus.rb +2 -0
  321. data/lib/moov/models/components/webhookdatatransferupdated.rb +1 -1
  322. data/lib/moov/models/components/webhookdatawallettransactionupdated.rb +1 -1
  323. data/lib/moov/models/components/webhookdatawalletupdated.rb +1 -1
  324. data/lib/moov/models/components/webhookevent.rb +2 -2
  325. data/lib/moov/models/components/webhookeventtype.rb +2 -0
  326. data/lib/moov/models/components/webhookstatus.rb +2 -0
  327. data/lib/moov/models/components.rb +5 -26
  328. data/lib/moov/models/errors/cardacquiringrefund_error.rb +3 -3
  329. data/lib/moov/models/errors/feeplanagreementerror.rb +1 -1
  330. data/lib/moov/models/errors/transfer_error.rb +4 -4
  331. data/lib/moov/models/errors.rb +0 -1
  332. data/lib/moov/models/operations/acceptdispute_request.rb +3 -3
  333. data/lib/moov/models/operations/assignaccountcountries_request.rb +3 -3
  334. data/lib/moov/models/operations/cancelschedule_request.rb +3 -3
  335. data/lib/moov/models/operations/completebankaccountverification_request.rb +3 -3
  336. data/lib/moov/models/operations/completemicrodeposits_request.rb +3 -3
  337. data/lib/moov/models/operations/connectaccount_request.rb +3 -3
  338. data/lib/moov/models/operations/createaccesstoken_request.rb +3 -3
  339. data/lib/moov/models/operations/createaccount_request.rb +3 -3
  340. data/lib/moov/models/operations/createapplepaysession_request.rb +3 -3
  341. data/lib/moov/models/operations/createbrand_request.rb +3 -3
  342. data/lib/moov/models/operations/createcancellation_request.rb +3 -3
  343. data/lib/moov/models/operations/createfeeplanagreements_request.rb +3 -3
  344. data/lib/moov/models/operations/createonboardinginvite_request.rb +3 -3
  345. data/lib/moov/models/operations/createpaymentlink_request.rb +3 -3
  346. data/lib/moov/models/operations/createproduct_request.rb +3 -3
  347. data/lib/moov/models/operations/createreceipts_request.rb +3 -3
  348. data/lib/moov/models/operations/createrepresentative_request.rb +3 -3
  349. data/lib/moov/models/operations/createreversal_request.rb +3 -3
  350. data/lib/moov/models/operations/createschedule_request.rb +3 -3
  351. data/lib/moov/models/operations/createsweepconfig_request.rb +3 -3
  352. data/lib/moov/models/operations/createterminalapplication_request.rb +3 -3
  353. data/lib/moov/models/operations/createterminalapplicationversion_request.rb +3 -3
  354. data/lib/moov/models/operations/createtransfer_request.rb +5 -5
  355. data/lib/moov/models/operations/createtransferoptions_request.rb +3 -3
  356. data/lib/moov/models/operations/createwallet_request.rb +3 -3
  357. data/lib/moov/models/operations/createwebhook_request.rb +3 -3
  358. data/lib/moov/models/operations/deletedisputeevidencefile_request.rb +3 -3
  359. data/lib/moov/models/operations/deleteimage_request.rb +3 -3
  360. data/lib/moov/models/operations/deleterepresentative_request.rb +3 -3
  361. data/lib/moov/models/operations/deleteterminalapplication_request.rb +3 -3
  362. data/lib/moov/models/operations/disablebankaccount_request.rb +3 -3
  363. data/lib/moov/models/operations/disablecapability_request.rb +4 -4
  364. data/lib/moov/models/operations/disablecard_request.rb +3 -3
  365. data/lib/moov/models/operations/disablepaymentlink_request.rb +3 -3
  366. data/lib/moov/models/operations/disableproduct_request.rb +3 -3
  367. data/lib/moov/models/operations/disablewebhook_request.rb +3 -3
  368. data/lib/moov/models/operations/disconnectaccount_request.rb +3 -3
  369. data/lib/moov/models/operations/generateendtoendkey_request.rb +3 -3
  370. data/lib/moov/models/operations/getaccount_request.rb +3 -3
  371. data/lib/moov/models/operations/getaccountcountries_request.rb +3 -3
  372. data/lib/moov/models/operations/getaccountterminalapplication_request.rb +3 -3
  373. data/lib/moov/models/operations/getadjustment_request.rb +3 -3
  374. data/lib/moov/models/operations/getapplepaymerchantdomains_request.rb +3 -3
  375. data/lib/moov/models/operations/getavatar_request.rb +3 -3
  376. data/lib/moov/models/operations/getbankaccount_request.rb +3 -3
  377. data/lib/moov/models/operations/getbankaccountverification_request.rb +3 -3
  378. data/lib/moov/models/operations/getbrand_request.rb +3 -3
  379. data/lib/moov/models/operations/getcancellation_request.rb +3 -3
  380. data/lib/moov/models/operations/getcapability_request.rb +4 -4
  381. data/lib/moov/models/operations/getcard_request.rb +3 -3
  382. data/lib/moov/models/operations/getdispute_request.rb +3 -3
  383. data/lib/moov/models/operations/getdisputeevidence_request.rb +3 -3
  384. data/lib/moov/models/operations/getdisputeevidencedata_request.rb +3 -3
  385. data/lib/moov/models/operations/getenrichmentaddress_request.rb +3 -3
  386. data/lib/moov/models/operations/getenrichmentprofile_request.rb +3 -3
  387. data/lib/moov/models/operations/getfiledetails_request.rb +3 -3
  388. data/lib/moov/models/operations/getfullissuedcard_request.rb +3 -3
  389. data/lib/moov/models/operations/getimagemetadata_request.rb +3 -3
  390. data/lib/moov/models/operations/getissuedcard_request.rb +3 -3
  391. data/lib/moov/models/operations/getissuedcardauthorization_request.rb +3 -3
  392. data/lib/moov/models/operations/getissuedcardtransaction_request.rb +3 -3
  393. data/lib/moov/models/operations/getmerchantprocessingagreement_request.rb +3 -3
  394. data/lib/moov/models/operations/getonboardinginvite_request.rb +3 -3
  395. data/lib/moov/models/operations/getpaymentlink_request.rb +3 -3
  396. data/lib/moov/models/operations/getpaymentlinkqrcode_request.rb +3 -3
  397. data/lib/moov/models/operations/getpaymentmethod_request.rb +3 -3
  398. data/lib/moov/models/operations/getpaymentmethod_response.rb +2 -2
  399. data/lib/moov/models/operations/getproduct_request.rb +3 -3
  400. data/lib/moov/models/operations/getpublicimage_request.rb +1 -1
  401. data/lib/moov/models/operations/getrefund_request.rb +3 -3
  402. data/lib/moov/models/operations/getrepresentative_request.rb +3 -3
  403. data/lib/moov/models/operations/getresidual_request.rb +3 -3
  404. data/lib/moov/models/operations/getscheduledoccurrence_request.rb +8 -8
  405. data/lib/moov/models/operations/getschedules_request.rb +3 -3
  406. data/lib/moov/models/operations/getstatement_request.rb +3 -3
  407. data/lib/moov/models/operations/getsweep_request.rb +3 -3
  408. data/lib/moov/models/operations/getsweepconfig_request.rb +3 -3
  409. data/lib/moov/models/operations/getterminalapplication_request.rb +3 -3
  410. data/lib/moov/models/operations/getterminalconfiguration_request.rb +3 -3
  411. data/lib/moov/models/operations/gettermsofservicetoken_request.rb +3 -3
  412. data/lib/moov/models/operations/gettransfer_request.rb +3 -3
  413. data/lib/moov/models/operations/getunderwriting_request.rb +3 -3
  414. data/lib/moov/models/operations/getwallet_request.rb +3 -3
  415. data/lib/moov/models/operations/getwallettransaction_request.rb +3 -3
  416. data/lib/moov/models/operations/getwebhook_request.rb +3 -3
  417. data/lib/moov/models/operations/getwebhooksecret_request.rb +3 -3
  418. data/lib/moov/models/operations/hydrate.rb +2 -0
  419. data/lib/moov/models/operations/initiatebankaccountverification_request.rb +4 -4
  420. data/lib/moov/models/operations/initiatemicrodeposits_request.rb +3 -3
  421. data/lib/moov/models/operations/initiaterefund_request.rb +3 -3
  422. data/lib/moov/models/operations/linkaccountterminalapplication_request.rb +3 -3
  423. data/lib/moov/models/operations/linkapplepaytoken_request.rb +3 -3
  424. data/lib/moov/models/operations/linkbankaccount_request.rb +4 -4
  425. data/lib/moov/models/operations/linkcard_request.rb +4 -4
  426. data/lib/moov/models/operations/listaccounts_request.rb +9 -9
  427. data/lib/moov/models/operations/listaccountterminalapplications_request.rb +3 -3
  428. data/lib/moov/models/operations/listadjustments_request.rb +3 -3
  429. data/lib/moov/models/operations/listbankaccounts_request.rb +3 -3
  430. data/lib/moov/models/operations/listcapabilities_request.rb +3 -3
  431. data/lib/moov/models/operations/listcards_request.rb +3 -3
  432. data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +9 -9
  433. data/lib/moov/models/operations/listdisputeevidence_request.rb +3 -3
  434. data/lib/moov/models/operations/listdisputes_request.rb +3 -3
  435. data/lib/moov/models/operations/listeventtypes_request.rb +3 -3
  436. data/lib/moov/models/operations/listfeeplanagreements_request.rb +3 -3
  437. data/lib/moov/models/operations/listfeeplans_request.rb +3 -3
  438. data/lib/moov/models/operations/listfeerevenue_request.rb +3 -3
  439. data/lib/moov/models/operations/listfeesfetch_request.rb +3 -3
  440. data/lib/moov/models/operations/listfiles_request.rb +3 -3
  441. data/lib/moov/models/operations/listimagemetadata_request.rb +3 -3
  442. data/lib/moov/models/operations/listindustries_request.rb +3 -3
  443. data/lib/moov/models/operations/listinstitutions_request.rb +3 -3
  444. data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +3 -3
  445. data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +3 -3
  446. data/lib/moov/models/operations/listissuedcards_request.rb +3 -3
  447. data/lib/moov/models/operations/listissuedcardtransactions_request.rb +3 -3
  448. data/lib/moov/models/operations/listonboardinginvites_request.rb +3 -3
  449. data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +3 -3
  450. data/lib/moov/models/operations/listpaymentlinks_request.rb +13 -9
  451. data/lib/moov/models/operations/listpaymentlinks_request.rbi +4 -2
  452. data/lib/moov/models/operations/listpaymentmethods_request.rb +4 -4
  453. data/lib/moov/models/operations/listpaymentmethods_response.rb +2 -2
  454. data/lib/moov/models/operations/listproducts_request.rb +3 -3
  455. data/lib/moov/models/operations/listreceipts_request.rb +3 -3
  456. data/lib/moov/models/operations/listrefunds_request.rb +3 -3
  457. data/lib/moov/models/operations/listrepresentatives_request.rb +3 -3
  458. data/lib/moov/models/operations/listresidualfees_request.rb +3 -3
  459. data/lib/moov/models/operations/listresiduals_request.rb +3 -3
  460. data/lib/moov/models/operations/listschedules_request.rb +3 -3
  461. data/lib/moov/models/operations/liststatements_request.rb +3 -3
  462. data/lib/moov/models/operations/listsweepconfigs_request.rb +3 -3
  463. data/lib/moov/models/operations/listsweeps_request.rb +3 -3
  464. data/lib/moov/models/operations/listterminalapplications_request.rb +3 -3
  465. data/lib/moov/models/operations/listtransfers_request.rb +3 -3
  466. data/lib/moov/models/operations/listwallets_request.rb +3 -3
  467. data/lib/moov/models/operations/listwallettransactions_request.rb +3 -3
  468. data/lib/moov/models/operations/listwebhooks_request.rb +3 -3
  469. data/lib/moov/models/operations/ping_request.rb +3 -3
  470. data/lib/moov/models/operations/pingwebhook_request.rb +3 -3
  471. data/lib/moov/models/operations/registerapplepaymerchantdomains_request.rb +3 -3
  472. data/lib/moov/models/operations/requestcapabilities_request.rb +3 -3
  473. data/lib/moov/models/operations/requestcard_request.rb +3 -3
  474. data/lib/moov/models/operations/retrievefees_request.rb +3 -3
  475. data/lib/moov/models/operations/revokeaccesstoken_request.rb +3 -3
  476. data/lib/moov/models/operations/revokeonboardinginvite_request.rb +3 -3
  477. data/lib/moov/models/operations/searchinstitutions_request.rb +3 -3
  478. data/lib/moov/models/operations/submitdisputeevidence_request.rb +3 -3
  479. data/lib/moov/models/operations/testendtoendtoken_request.rb +3 -3
  480. data/lib/moov/models/operations/updateaccount_request.rb +3 -3
  481. data/lib/moov/models/operations/updateapplepaymerchantdomains_request.rb +3 -3
  482. data/lib/moov/models/operations/updatecard_request.rb +3 -3
  483. data/lib/moov/models/operations/updatedisputeevidence_request.rb +3 -3
  484. data/lib/moov/models/operations/updateimage_request.rb +3 -3
  485. data/lib/moov/models/operations/updateimagemetadata_request.rb +3 -3
  486. data/lib/moov/models/operations/updateissuedcard_request.rb +3 -3
  487. data/lib/moov/models/operations/updatepaymentlink_request.rb +3 -3
  488. data/lib/moov/models/operations/updateproduct_request.rb +3 -3
  489. data/lib/moov/models/operations/updaterepresentative_request.rb +3 -3
  490. data/lib/moov/models/operations/updateschedule_request.rb +3 -3
  491. data/lib/moov/models/operations/updatesweepconfig_request.rb +3 -3
  492. data/lib/moov/models/operations/updatetransfer_request.rb +3 -3
  493. data/lib/moov/models/operations/updatewallet_request.rb +3 -3
  494. data/lib/moov/models/operations/updatewebhook_request.rb +3 -3
  495. data/lib/moov/models/operations/uploaddisputeevidencefile_request.rb +3 -3
  496. data/lib/moov/models/operations/uploaddisputeevidencetext_request.rb +3 -3
  497. data/lib/moov/models/operations/uploadfile_request.rb +3 -3
  498. data/lib/moov/models/operations/uploadimage_request.rb +3 -3
  499. data/lib/moov/models/operations/upsertbrand_request.rb +3 -3
  500. data/lib/moov/models/operations/upsertunderwriting_request.rb +3 -3
  501. data/lib/moov/onboarding.rb +14 -28
  502. data/lib/moov/payment_links.rb +24 -44
  503. data/lib/moov/payment_methods.rb +9 -17
  504. data/lib/moov/ping.rb +4 -9
  505. data/lib/moov/products.rb +14 -31
  506. data/lib/moov/receipts.rb +8 -16
  507. data/lib/moov/representatives.rb +23 -40
  508. data/lib/moov/scheduling.rb +21 -41
  509. data/lib/moov/sdkconfiguration.rb +4 -4
  510. data/lib/moov/statements.rb +10 -18
  511. data/lib/moov/sweeps.rb +21 -41
  512. data/lib/moov/terminal_applications.rb +18 -35
  513. data/lib/moov/transfers.rb +45 -80
  514. data/lib/moov/underwriting.rb +10 -18
  515. data/lib/moov/utils/request_bodies.rb +3 -8
  516. data/lib/moov/utils/security.rb +0 -10
  517. data/lib/moov/utils/url.rb +5 -11
  518. data/lib/moov/utils/utils.rb +3 -45
  519. data/lib/moov/wallet_transactions.rb +9 -17
  520. data/lib/moov/wallets.rb +19 -33
  521. data/lib/moov/webhooks.rb +19 -45
  522. metadata +14 -73
  523. data/lib/crystalline/enum.rbi +0 -17
  524. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod.rb +0 -40
  525. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod.rbi +0 -17
  526. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod_paymentmethodtype.rb +0 -18
  527. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod_paymentmethodtype.rbi +0 -11
  528. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod.rb +0 -40
  529. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod.rbi +0 -17
  530. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  531. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod.rb +0 -40
  532. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod.rbi +0 -17
  533. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod_paymentmethodtype.rb +0 -18
  534. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod_paymentmethodtype.rbi +0 -11
  535. data/lib/moov/models/components/achdebitfundtransferpaymentmethod.rb +0 -40
  536. data/lib/moov/models/components/achdebitfundtransferpaymentmethod.rbi +0 -17
  537. data/lib/moov/models/components/achdebitfundtransferpaymentmethod_paymentmethodtype.rb +0 -18
  538. data/lib/moov/models/components/achdebitfundtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  539. data/lib/moov/models/components/applepaytransferpaymentmethod.rb +0 -40
  540. data/lib/moov/models/components/applepaytransferpaymentmethod_paymentmethodtype.rb +0 -18
  541. data/lib/moov/models/components/applepaytransferpaymentmethod_paymentmethodtype.rbi +0 -11
  542. data/lib/moov/models/components/cardpaymenttransferpaymentmethod.rb +0 -40
  543. data/lib/moov/models/components/cardpaymenttransferpaymentmethod.rbi +0 -17
  544. data/lib/moov/models/components/cardpaymenttransferpaymentmethod_paymentmethodtype.rb +0 -18
  545. data/lib/moov/models/components/cardpaymenttransferpaymentmethod_paymentmethodtype.rbi +0 -11
  546. data/lib/moov/models/components/moovwallettransferpaymentmethod.rbi +0 -17
  547. data/lib/moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rbi +0 -11
  548. data/lib/moov/models/components/pullfromcardtransferpaymentmethod.rb +0 -40
  549. data/lib/moov/models/components/pullfromcardtransferpaymentmethod.rbi +0 -17
  550. data/lib/moov/models/components/pullfromcardtransferpaymentmethod_paymentmethodtype.rb +0 -18
  551. data/lib/moov/models/components/pullfromcardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  552. data/lib/moov/models/components/pushtocardtransferpaymentmethod.rb +0 -40
  553. data/lib/moov/models/components/pushtocardtransferpaymentmethod.rbi +0 -17
  554. data/lib/moov/models/components/pushtocardtransferpaymentmethod_paymentmethodtype.rb +0 -18
  555. data/lib/moov/models/components/rtpcredittransferpaymentmethod.rb +0 -40
  556. data/lib/moov/models/components/rtpcredittransferpaymentmethod.rbi +0 -17
  557. data/lib/moov/models/components/rtpcredittransferpaymentmethod_paymentmethodtype.rb +0 -18
  558. data/lib/moov/models/components/rtpcredittransferpaymentmethod_paymentmethodtype.rbi +0 -11
  559. data/lib/moov/models/components/transferpaymentmethod.rb +0 -27
  560. data/lib/moov/models/components/transferpaymentmethod.rbi +0 -11
  561. data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +0 -70
  562. data/lib/moov/models/components/transferpaymentmethodsbankaccount.rbi +0 -31
  563. data/lib/moov/models/components/transferpaymentmethodscard.rb +0 -98
  564. data/lib/moov/models/components/transferpaymentmethodscard.rbi +0 -45
  565. data/lib/moov/models/components/transferpaymentmethodswallet.rb +0 -42
  566. data/lib/moov/models/components/transferpaymentmethodswallet.rbi +0 -17
  567. data/lib/moov/models/components/transferpaymentmethodtype.rb +0 -27
  568. data/lib/moov/models/components/transferpaymentmethodtype.rbi +0 -11
  569. data/lib/moov/models/errors/duplicatecarderror.rb +0 -41
  570. data/lib/moov/models/errors/duplicatecarderror.rbi +0 -17
data/lib/moov/products.rb CHANGED
@@ -39,10 +39,8 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
-
43
-
44
- sig { params(request: Models::Operations::ListProductsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListProductsResponse) }
45
- def list(request:, timeout_ms: nil, http_headers: nil)
42
+ sig { params(request: Models::Operations::ListProductsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListProductsResponse) }
43
+ def list(request:, timeout_ms: nil)
46
44
  # list - List active (non-disabled) products for an account.
47
45
  url, params = @sdk_configuration.get_server_details
48
46
  base_url = Utils.template_url(url, params)
@@ -85,9 +83,6 @@ module Moov
85
83
  req.options.timeout = timeout unless timeout.nil?
86
84
  req.params = query_params
87
85
  Utils.configure_request_security(req, security)
88
- http_headers&.each do |key, value|
89
- req.headers[key.to_s] = value
90
- end
91
86
 
92
87
  @sdk_configuration.hooks.before_request(
93
88
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -160,8 +155,8 @@ module Moov
160
155
  end
161
156
 
162
157
 
163
- sig { params(product_request: Models::Components::ProductRequest, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateProductResponse) }
164
- def create(product_request:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
158
+ sig { params(product_request: Models::Components::ProductRequest, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateProductResponse) }
159
+ def create(product_request:, account_id:, x_moov_version: nil, timeout_ms: nil)
165
160
  # create - Creates a new product for the specified account.
166
161
  request = Models::Operations::CreateProductRequest.new(
167
162
  account_id: account_id,
@@ -183,7 +178,7 @@ module Moov
183
178
  headers['content-type'] = req_content_type
184
179
  raise StandardError, 'request body is required' if data.nil? && form.nil?
185
180
 
186
- if form && !form.empty?
181
+ if form
187
182
  body = Utils.encode_form(form)
188
183
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
189
184
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -219,9 +214,6 @@ module Moov
219
214
  req.headers.merge!(headers)
220
215
  req.options.timeout = timeout unless timeout.nil?
221
216
  Utils.configure_request_security(req, security)
222
- http_headers&.each do |key, value|
223
- req.headers[key.to_s] = value
224
- end
225
217
 
226
218
  @sdk_configuration.hooks.before_request(
227
219
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -324,8 +316,8 @@ module Moov
324
316
  end
325
317
 
326
318
 
327
- sig { params(account_id: ::String, product_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetProductResponse) }
328
- def get(account_id:, product_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
319
+ sig { params(account_id: ::String, product_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetProductResponse) }
320
+ def get(account_id:, product_id:, x_moov_version: nil, timeout_ms: nil)
329
321
  # get - Retrieve a product by ID.
330
322
  request = Models::Operations::GetProductRequest.new(
331
323
  account_id: account_id,
@@ -371,9 +363,6 @@ module Moov
371
363
  req.headers.merge!(headers)
372
364
  req.options.timeout = timeout unless timeout.nil?
373
365
  Utils.configure_request_security(req, security)
374
- http_headers&.each do |key, value|
375
- req.headers[key.to_s] = value
376
- end
377
366
 
378
367
  @sdk_configuration.hooks.before_request(
379
368
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -446,8 +435,8 @@ module Moov
446
435
  end
447
436
 
448
437
 
449
- sig { params(product_request: Models::Components::ProductRequest, account_id: ::String, product_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateProductResponse) }
450
- def update(product_request:, account_id:, product_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
438
+ sig { params(product_request: Models::Components::ProductRequest, account_id: ::String, product_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateProductResponse) }
439
+ def update(product_request:, account_id:, product_id:, x_moov_version: nil, timeout_ms: nil)
451
440
  # update - Update a product and its options.
452
441
  request = Models::Operations::UpdateProductRequest.new(
453
442
  account_id: account_id,
@@ -470,7 +459,7 @@ module Moov
470
459
  headers['content-type'] = req_content_type
471
460
  raise StandardError, 'request body is required' if data.nil? && form.nil?
472
461
 
473
- if form && !form.empty?
462
+ if form
474
463
  body = Utils.encode_form(form)
475
464
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
476
465
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -506,9 +495,6 @@ module Moov
506
495
  req.headers.merge!(headers)
507
496
  req.options.timeout = timeout unless timeout.nil?
508
497
  Utils.configure_request_security(req, security)
509
- http_headers&.each do |key, value|
510
- req.headers[key.to_s] = value
511
- end
512
498
 
513
499
  @sdk_configuration.hooks.before_request(
514
500
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -611,10 +597,10 @@ module Moov
611
597
  end
612
598
 
613
599
 
614
- sig { params(account_id: ::String, product_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DisableProductResponse) }
615
- def disable(account_id:, product_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
600
+ sig { params(account_id: ::String, product_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DisableProductResponse) }
601
+ def disable(account_id:, product_id:, x_moov_version: nil, timeout_ms: nil)
616
602
  # disable - Disable a product by ID.
617
- #
603
+ #
618
604
  # The product will no longer be available, but will remain in the system for historical and reporting purposes.
619
605
  request = Models::Operations::DisableProductRequest.new(
620
606
  account_id: account_id,
@@ -660,9 +646,6 @@ module Moov
660
646
  req.headers.merge!(headers)
661
647
  req.options.timeout = timeout unless timeout.nil?
662
648
  Utils.configure_request_security(req, security)
663
- http_headers&.each do |key, value|
664
- req.headers[key.to_s] = value
665
- end
666
649
 
667
650
  @sdk_configuration.hooks.before_request(
668
651
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -739,5 +722,5 @@ module Moov
739
722
 
740
723
  end
741
724
  end
742
- end
725
+ end
743
726
  end
data/lib/moov/receipts.rb CHANGED
@@ -39,12 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
-
43
-
44
- sig { params(request_body: T::Array[Models::Components::ReceiptRequest], x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateReceiptsResponse) }
45
- def create(request_body:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
42
+ sig { params(request_body: T::Array[Models::Components::ReceiptRequest], x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateReceiptsResponse) }
43
+ def create(request_body:, x_moov_version: nil, timeout_ms: nil)
46
44
  # create - Create receipts for transfers and scheduled transfers.
47
- #
45
+ #
48
46
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
49
47
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
50
48
  request = Models::Operations::CreateReceiptsRequest.new(
@@ -60,7 +58,7 @@ module Moov
60
58
  headers['content-type'] = req_content_type
61
59
  raise StandardError, 'request body is required' if data.nil? && form.nil?
62
60
 
63
- if form && !form.empty?
61
+ if form
64
62
  body = Utils.encode_form(form)
65
63
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
66
64
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -96,9 +94,6 @@ module Moov
96
94
  req.headers.merge!(headers)
97
95
  req.options.timeout = timeout unless timeout.nil?
98
96
  Utils.configure_request_security(req, security)
99
- http_headers&.each do |key, value|
100
- req.headers[key.to_s] = value
101
- end
102
97
 
103
98
  @sdk_configuration.hooks.before_request(
104
99
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -186,10 +181,10 @@ module Moov
186
181
  end
187
182
 
188
183
 
189
- sig { params(id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListReceiptsResponse) }
190
- def list(id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
184
+ sig { params(id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListReceiptsResponse) }
185
+ def list(id:, x_moov_version: nil, timeout_ms: nil)
191
186
  # list - List receipts by transferID, scheduleID, or occurrenceID.
192
- #
187
+ #
193
188
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
194
189
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
195
190
  request = Models::Operations::ListReceiptsRequest.new(
@@ -231,9 +226,6 @@ module Moov
231
226
  req.options.timeout = timeout unless timeout.nil?
232
227
  req.params = query_params
233
228
  Utils.configure_request_security(req, security)
234
- http_headers&.each do |key, value|
235
- req.headers[key.to_s] = value
236
- end
237
229
 
238
230
  @sdk_configuration.hooks.before_request(
239
231
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -304,5 +296,5 @@ module Moov
304
296
 
305
297
  end
306
298
  end
307
- end
299
+ end
308
300
  end
@@ -39,14 +39,12 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
-
43
-
44
- sig { params(create_representative: Models::Components::CreateRepresentative, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateRepresentativeResponse) }
45
- def create(create_representative:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
42
+ sig { params(create_representative: Models::Components::CreateRepresentative, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateRepresentativeResponse) }
43
+ def create(create_representative:, account_id:, x_moov_version: nil, timeout_ms: nil)
46
44
  # create - Moov accounts associated with businesses require information regarding individuals who represent the business.
47
45
  # You can provide this information by creating a representative. Each account is allowed a maximum of 7 representatives.
48
46
  # Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
49
- #
47
+ #
50
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
51
49
  # you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
52
50
  request = Models::Operations::CreateRepresentativeRequest.new(
@@ -69,7 +67,7 @@ module Moov
69
67
  headers['content-type'] = req_content_type
70
68
  raise StandardError, 'request body is required' if data.nil? && form.nil?
71
69
 
72
- if form && !form.empty?
70
+ if form
73
71
  body = Utils.encode_form(form)
74
72
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
75
73
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -105,9 +103,6 @@ module Moov
105
103
  req.headers.merge!(headers)
106
104
  req.options.timeout = timeout unless timeout.nil?
107
105
  Utils.configure_request_security(req, security)
108
- http_headers&.each do |key, value|
109
- req.headers[key.to_s] = value
110
- end
111
106
 
112
107
  @sdk_configuration.hooks.before_request(
113
108
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -210,13 +205,13 @@ module Moov
210
205
  end
211
206
 
212
207
 
213
- sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListRepresentativesResponse) }
214
- def list(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
208
+ sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListRepresentativesResponse) }
209
+ def list(account_id:, x_moov_version: nil, timeout_ms: nil)
215
210
  # list - A Moov account may have multiple representatives depending on the associated business's ownership and management structure.
216
211
  # You can use this method to list all the representatives for a given Moov account.
217
212
  # Note that Moov accounts associated with an individual do not have representatives.
218
213
  # Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
219
- #
214
+ #
220
215
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
221
216
  # you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
222
217
  request = Models::Operations::ListRepresentativesRequest.new(
@@ -262,9 +257,6 @@ module Moov
262
257
  req.headers.merge!(headers)
263
258
  req.options.timeout = timeout unless timeout.nil?
264
259
  Utils.configure_request_security(req, security)
265
- http_headers&.each do |key, value|
266
- req.headers[key.to_s] = value
267
- end
268
260
 
269
261
  @sdk_configuration.hooks.before_request(
270
262
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -337,10 +329,10 @@ module Moov
337
329
  end
338
330
 
339
331
 
340
- sig { params(account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DeleteRepresentativeResponse) }
341
- def delete(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
332
+ sig { params(account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeleteRepresentativeResponse) }
333
+ def delete(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
342
334
  # delete - Deletes a business representative associated with a Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
343
- #
335
+ #
344
336
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
345
337
  # you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
346
338
  request = Models::Operations::DeleteRepresentativeRequest.new(
@@ -387,9 +379,6 @@ module Moov
387
379
  req.headers.merge!(headers)
388
380
  req.options.timeout = timeout unless timeout.nil?
389
381
  Utils.configure_request_security(req, security)
390
- http_headers&.each do |key, value|
391
- req.headers[key.to_s] = value
392
- end
393
382
 
394
383
  @sdk_configuration.hooks.before_request(
395
384
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -468,10 +457,10 @@ module Moov
468
457
  end
469
458
 
470
459
 
471
- sig { params(account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetRepresentativeResponse) }
472
- def get(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
460
+ sig { params(account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetRepresentativeResponse) }
461
+ def get(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
473
462
  # get - Retrieve a specific representative associated with a given Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
474
- #
463
+ #
475
464
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
476
465
  # you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
477
466
  request = Models::Operations::GetRepresentativeRequest.new(
@@ -518,9 +507,6 @@ module Moov
518
507
  req.headers.merge!(headers)
519
508
  req.options.timeout = timeout unless timeout.nil?
520
509
  Utils.configure_request_security(req, security)
521
- http_headers&.each do |key, value|
522
- req.headers[key.to_s] = value
523
- end
524
510
 
525
511
  @sdk_configuration.hooks.before_request(
526
512
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -593,23 +579,23 @@ module Moov
593
579
  end
594
580
 
595
581
 
596
- sig { params(update_representative: Models::Components::UpdateRepresentative, account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateRepresentativeResponse) }
597
- def update(update_representative:, account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
582
+ sig { params(update_representative: Models::Components::UpdateRepresentative, account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateRepresentativeResponse) }
583
+ def update(update_representative:, account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
598
584
  # update - If a representative's information has changed you can patch the information associated with a specific representative ID.
599
585
  # Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
600
- #
586
+ #
601
587
  # When **can** profile data be updated:
602
- #
588
+ #
603
589
  # - For unverified representatives, all profile data can be edited.
604
590
  # - During the verification process, missing or incomplete profile data can be edited.
605
591
  # - Verified representatives can only add missing profile data.
606
- #
592
+ #
607
593
  # When **can't** profile data be updated:
608
- #
594
+ #
609
595
  # - Verified representatives cannot change any existing profile data.
610
- #
596
+ #
611
597
  # If you need to update information in a locked state, please contact Moov support.
612
- #
598
+ #
613
599
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
614
600
  # you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
615
601
  request = Models::Operations::UpdateRepresentativeRequest.new(
@@ -633,7 +619,7 @@ module Moov
633
619
  headers['content-type'] = req_content_type
634
620
  raise StandardError, 'request body is required' if data.nil? && form.nil?
635
621
 
636
- if form && !form.empty?
622
+ if form
637
623
  body = Utils.encode_form(form)
638
624
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
639
625
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -669,9 +655,6 @@ module Moov
669
655
  req.headers.merge!(headers)
670
656
  req.options.timeout = timeout unless timeout.nil?
671
657
  Utils.configure_request_security(req, security)
672
- http_headers&.each do |key, value|
673
- req.headers[key.to_s] = value
674
- end
675
658
 
676
659
  @sdk_configuration.hooks.before_request(
677
660
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -757,5 +740,5 @@ module Moov
757
740
 
758
741
  end
759
742
  end
760
- end
743
+ end
761
744
  end
@@ -39,12 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
-
43
-
44
- sig { params(upsert_schedule: Models::Components::UpsertSchedule, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateScheduleResponse) }
45
- def create(upsert_schedule:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
42
+ sig { params(upsert_schedule: Models::Components::UpsertSchedule, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateScheduleResponse) }
43
+ def create(upsert_schedule:, account_id:, x_moov_version: nil, timeout_ms: nil)
46
44
  # create - Describes the schedule to create or modify.
47
- #
45
+ #
48
46
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
49
47
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
50
48
  request = Models::Operations::CreateScheduleRequest.new(
@@ -67,7 +65,7 @@ module Moov
67
65
  headers['content-type'] = req_content_type
68
66
  raise StandardError, 'request body is required' if data.nil? && form.nil?
69
67
 
70
- if form && !form.empty?
68
+ if form
71
69
  body = Utils.encode_form(form)
72
70
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
73
71
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -103,9 +101,6 @@ module Moov
103
101
  req.headers.merge!(headers)
104
102
  req.options.timeout = timeout unless timeout.nil?
105
103
  Utils.configure_request_security(req, security)
106
- http_headers&.each do |key, value|
107
- req.headers[key.to_s] = value
108
- end
109
104
 
110
105
  @sdk_configuration.hooks.before_request(
111
106
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -208,10 +203,10 @@ module Moov
208
203
  end
209
204
 
210
205
 
211
- sig { params(request: Models::Operations::ListSchedulesRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListSchedulesResponse) }
212
- def list(request:, timeout_ms: nil, http_headers: nil)
206
+ sig { params(request: Models::Operations::ListSchedulesRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListSchedulesResponse) }
207
+ def list(request:, timeout_ms: nil)
213
208
  # list - Describes a list of schedules associated with an account. Append the `hydrate=accounts` query parameter to include partial account details in the response.
214
- #
209
+ #
215
210
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
216
211
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
217
212
  url, params = @sdk_configuration.get_server_details
@@ -255,9 +250,6 @@ module Moov
255
250
  req.options.timeout = timeout unless timeout.nil?
256
251
  req.params = query_params
257
252
  Utils.configure_request_security(req, security)
258
- http_headers&.each do |key, value|
259
- req.headers[key.to_s] = value
260
- end
261
253
 
262
254
  @sdk_configuration.hooks.before_request(
263
255
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -330,10 +322,10 @@ module Moov
330
322
  end
331
323
 
332
324
 
333
- sig { params(upsert_schedule: Models::Components::UpsertSchedule, account_id: ::String, schedule_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateScheduleResponse) }
334
- def update(upsert_schedule:, account_id:, schedule_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
325
+ sig { params(upsert_schedule: Models::Components::UpsertSchedule, account_id: ::String, schedule_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateScheduleResponse) }
326
+ def update(upsert_schedule:, account_id:, schedule_id:, x_moov_version: nil, timeout_ms: nil)
335
327
  # update - Describes the schedule to modify.
336
- #
328
+ #
337
329
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
338
330
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
339
331
  request = Models::Operations::UpdateScheduleRequest.new(
@@ -357,7 +349,7 @@ module Moov
357
349
  headers['content-type'] = req_content_type
358
350
  raise StandardError, 'request body is required' if data.nil? && form.nil?
359
351
 
360
- if form && !form.empty?
352
+ if form
361
353
  body = Utils.encode_form(form)
362
354
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
363
355
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -393,9 +385,6 @@ module Moov
393
385
  req.headers.merge!(headers)
394
386
  req.options.timeout = timeout unless timeout.nil?
395
387
  Utils.configure_request_security(req, security)
396
- http_headers&.each do |key, value|
397
- req.headers[key.to_s] = value
398
- end
399
388
 
400
389
  @sdk_configuration.hooks.before_request(
401
390
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -498,10 +487,10 @@ module Moov
498
487
  end
499
488
 
500
489
 
501
- sig { params(account_id: ::String, schedule_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetSchedulesResponse) }
502
- def get(account_id:, schedule_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
490
+ sig { params(account_id: ::String, schedule_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetSchedulesResponse) }
491
+ def get(account_id:, schedule_id:, x_moov_version: nil, timeout_ms: nil)
503
492
  # get - Describes a schedule associated with an account. Requires at least 1 occurrence or recurTransfer to be specified.
504
- #
493
+ #
505
494
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
506
495
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
507
496
  request = Models::Operations::GetSchedulesRequest.new(
@@ -548,9 +537,6 @@ module Moov
548
537
  req.headers.merge!(headers)
549
538
  req.options.timeout = timeout unless timeout.nil?
550
539
  Utils.configure_request_security(req, security)
551
- http_headers&.each do |key, value|
552
- req.headers[key.to_s] = value
553
- end
554
540
 
555
541
  @sdk_configuration.hooks.before_request(
556
542
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -623,10 +609,10 @@ module Moov
623
609
  end
624
610
 
625
611
 
626
- sig { params(account_id: ::String, schedule_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CancelScheduleResponse) }
627
- def cancel(account_id:, schedule_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
612
+ sig { params(account_id: ::String, schedule_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CancelScheduleResponse) }
613
+ def cancel(account_id:, schedule_id:, x_moov_version: nil, timeout_ms: nil)
628
614
  # cancel - Describes the schedule to cancel.
629
- #
615
+ #
630
616
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
631
617
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
632
618
  request = Models::Operations::CancelScheduleRequest.new(
@@ -673,9 +659,6 @@ module Moov
673
659
  req.headers.merge!(headers)
674
660
  req.options.timeout = timeout unless timeout.nil?
675
661
  Utils.configure_request_security(req, security)
676
- http_headers&.each do |key, value|
677
- req.headers[key.to_s] = value
678
- end
679
662
 
680
663
  @sdk_configuration.hooks.before_request(
681
664
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -754,10 +737,10 @@ module Moov
754
737
  end
755
738
 
756
739
 
757
- sig { params(account_id: ::String, schedule_id: ::String, occurrence_filter: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetScheduledOccurrenceResponse) }
758
- def get_occurrance(account_id:, schedule_id:, occurrence_filter:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
740
+ sig { params(account_id: ::String, schedule_id: ::String, occurrence_filter: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetScheduledOccurrenceResponse) }
741
+ def get_occurrance(account_id:, schedule_id:, occurrence_filter:, x_moov_version: nil, timeout_ms: nil)
759
742
  # get_occurrance - Gets a specific occurrence.
760
- #
743
+ #
761
744
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
762
745
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
763
746
  request = Models::Operations::GetScheduledOccurrenceRequest.new(
@@ -805,9 +788,6 @@ module Moov
805
788
  req.headers.merge!(headers)
806
789
  req.options.timeout = timeout unless timeout.nil?
807
790
  Utils.configure_request_security(req, security)
808
- http_headers&.each do |key, value|
809
- req.headers[key.to_s] = value
810
- end
811
791
 
812
792
  @sdk_configuration.hooks.before_request(
813
793
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -878,5 +858,5 @@ module Moov
878
858
 
879
859
  end
880
860
  end
881
- end
861
+ end
882
862
  end
@@ -94,10 +94,10 @@ module Moov
94
94
  end
95
95
  @globals = globals.nil? ? {} : globals
96
96
  @language = 'ruby'
97
- @openapi_doc_version = 'v2025.01.00'
98
- @sdk_version = '25.1.11'
99
- @gen_version = '2.856.1'
100
- @user_agent = 'speakeasy-sdk/ruby 25.1.11 2.856.1 v2025.01.00 moov_ruby'
97
+ @openapi_doc_version = 'v2025.04.00'
98
+ @sdk_version = '25.4.0'
99
+ @gen_version = '2.803.3'
100
+ @user_agent = 'speakeasy-sdk/ruby 25.4.0 2.803.3 v2025.04.00 moov_ruby'
101
101
  end
102
102
 
103
103
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -39,12 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
-
43
-
44
- sig { params(request: Models::Operations::ListStatementsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListStatementsResponse) }
45
- def list(request:, timeout_ms: nil, http_headers: nil)
42
+ sig { params(request: Models::Operations::ListStatementsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListStatementsResponse) }
43
+ def list(request:, timeout_ms: nil)
46
44
  # list - Retrieve all statements associated with an account.
47
- #
45
+ #
48
46
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
49
47
  # you'll need to specify the `/accounts/{accountID}/profile.read` scope.
50
48
  url, params = @sdk_configuration.get_server_details
@@ -88,9 +86,6 @@ module Moov
88
86
  req.options.timeout = timeout unless timeout.nil?
89
87
  req.params = query_params
90
88
  Utils.configure_request_security(req, security)
91
- http_headers&.each do |key, value|
92
- req.headers[key.to_s] = value
93
- end
94
89
 
95
90
  @sdk_configuration.hooks.before_request(
96
91
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -178,12 +173,12 @@ module Moov
178
173
  end
179
174
 
180
175
 
181
- sig { params(account_id: ::String, statement_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), accept_header_override: T.nilable(String), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetStatementResponse) }
182
- def get(account_id:, statement_id:, x_moov_version: nil, timeout_ms: nil, accept_header_override: nil, http_headers: nil)
176
+ sig { params(account_id: ::String, statement_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetStatementResponse) }
177
+ def get(account_id:, statement_id:, x_moov_version: nil, timeout_ms: nil)
183
178
  # get - Retrieve a statement by its ID.
184
- #
179
+ #
185
180
  # Use the `Accept` header to specify the format of the response. Supported formats are `application/json` and `application/pdf`.
186
- #
181
+ #
187
182
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
188
183
  # you'll need to specify the `/accounts/{accountID}/profile.read` scope.
189
184
  request = Models::Operations::GetStatementRequest.new(
@@ -202,7 +197,7 @@ module Moov
202
197
  )
203
198
  headers = Utils.get_headers(request, @sdk_configuration.globals)
204
199
  headers = T.cast(headers, T::Hash[String, String])
205
- headers['Accept'] = accept_header_override || 'application/json;q=1, application/pdf;q=0'
200
+ headers['Accept'] = 'application/json;q=1, application/pdf;q=0'
206
201
  headers['user-agent'] = @sdk_configuration.user_agent
207
202
 
208
203
  security = @sdk_configuration.security_source&.call
@@ -230,9 +225,6 @@ module Moov
230
225
  req.headers.merge!(headers)
231
226
  req.options.timeout = timeout unless timeout.nil?
232
227
  Utils.configure_request_security(req, security)
233
- http_headers&.each do |key, value|
234
- req.headers[key.to_s] = value
235
- end
236
228
 
237
229
  @sdk_configuration.hooks.before_request(
238
230
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -294,7 +286,7 @@ module Moov
294
286
  ),
295
287
  response: http_response
296
288
  )
297
- obj = http_response.env.body.force_encoding('UTF-8')
289
+ obj = http_response.env.body
298
290
 
299
291
  return Models::Operations::GetStatementResponse.new(
300
292
  status_code: http_response.status,
@@ -319,5 +311,5 @@ module Moov
319
311
 
320
312
  end
321
313
  end
322
- end
314
+ end
323
315
  end