moov_ruby 24.1.7 → 25.1.0.pre.dev.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 (562) 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 +0 -79
  5. data/lib/moov/account_terminal_applications.rb +5 -5
  6. data/lib/moov/accounts.rb +22 -22
  7. data/lib/moov/adjustments.rb +2 -2
  8. data/lib/moov/apple_pay.rb +14 -14
  9. data/lib/moov/authentication.rb +3 -3
  10. data/lib/moov/avatars.rb +2 -2
  11. data/lib/moov/bank_accounts.rb +26 -26
  12. data/lib/moov/branding.rb +5 -5
  13. data/lib/moov/capabilities.rb +6 -6
  14. data/lib/moov/card_issuing.rb +8 -8
  15. data/lib/moov/cards.rb +17 -32
  16. data/lib/moov/disputes.rb +32 -32
  17. data/lib/moov/end_to_end_encryption.rb +2 -2
  18. data/lib/moov/enriched_profile.rb +1 -1
  19. data/lib/moov/fee_plans.rb +136 -12
  20. data/lib/moov/files.rb +5 -5
  21. data/lib/moov/images.rb +10 -10
  22. data/lib/moov/industries.rb +1 -1
  23. data/lib/moov/institutions.rb +7 -7
  24. data/lib/moov/issuing_transactions.rb +5 -5
  25. data/lib/moov/models/components/account.rb +5 -5
  26. data/lib/moov/models/components/accountnameverification.rb +4 -4
  27. data/lib/moov/models/components/accounttype.rb +2 -0
  28. data/lib/moov/models/components/accountverificationstatus.rb +4 -2
  29. data/lib/moov/models/components/achcreditsamedaypaymentmethod.rb +1 -1
  30. data/lib/moov/models/components/achcreditsamedaypaymentmethod_paymentmethodtype.rb +2 -0
  31. data/lib/moov/models/components/achcreditstandardpaymentmethod.rb +1 -1
  32. data/lib/moov/models/components/achcreditstandardpaymentmethod_paymentmethodtype.rb +2 -0
  33. data/lib/moov/models/components/achdebitcollectpaymentmethod.rb +1 -1
  34. data/lib/moov/models/components/achdebitcollectpaymentmethod_paymentmethodtype.rb +2 -0
  35. data/lib/moov/models/components/achdebitfundpaymentmethod.rb +1 -1
  36. data/lib/moov/models/components/achdebitfundpaymentmethod_paymentmethodtype.rb +2 -0
  37. data/lib/moov/models/components/achreturncode.rb +3 -1
  38. data/lib/moov/models/components/achtransactiondetails.rb +10 -10
  39. data/lib/moov/models/components/achtransactionstatus.rb +2 -0
  40. data/lib/moov/models/components/adjustment.rb +1 -1
  41. data/lib/moov/models/components/adjustmentfees.rb +3 -3
  42. data/lib/moov/models/components/amount.rb +1 -1
  43. data/lib/moov/models/components/amountdecimal.rb +1 -1
  44. data/lib/moov/models/components/amountupdate.rb +1 -1
  45. data/lib/moov/models/components/applepayheader.rb +1 -1
  46. data/lib/moov/models/components/applepaymerchantdomains.rb +2 -2
  47. data/lib/moov/models/components/applepaypaymentmethod.rb +1 -1
  48. data/lib/moov/models/components/applepaypaymentmethod_paymentmethodtype.rb +2 -0
  49. data/lib/moov/models/components/applepayresponse.rb +2 -2
  50. data/lib/moov/models/components/applicationscope.rb +2 -0
  51. data/lib/moov/models/components/asynccreatedrefund.rb +1 -1
  52. data/lib/moov/models/components/asynctransfer.rb +1 -1
  53. data/lib/moov/models/components/authtoken.rb +1 -1
  54. data/lib/moov/models/components/authtokenrequest.rb +2 -2
  55. data/lib/moov/models/components/bankaccount.rb +7 -7
  56. data/lib/moov/models/components/bankaccountexception.rb +5 -5
  57. data/lib/moov/models/components/bankaccountholdertype.rb +2 -0
  58. data/lib/moov/models/components/bankaccountintegration.rb +2 -2
  59. data/lib/moov/models/components/bankaccountstatus.rb +2 -0
  60. data/lib/moov/models/components/bankaccountstatusreason.rb +2 -0
  61. data/lib/moov/models/components/bankaccounttype.rb +2 -0
  62. data/lib/moov/models/components/bankaccountverification.rb +2 -2
  63. data/lib/moov/models/components/bankaccountverificationcreated.rb +2 -2
  64. data/lib/moov/models/components/bankaccountverificationmethod.rb +2 -0
  65. data/lib/moov/models/components/bankaccountverificationstatus.rb +2 -0
  66. data/lib/moov/models/components/bankaccountwaitfor.rb +2 -0
  67. data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
  68. data/lib/moov/models/components/billablefee.rb +2 -2
  69. data/lib/moov/models/components/billingsummary.rb +6 -6
  70. data/lib/moov/models/components/billingsummary_platformfees.rb +3 -3
  71. data/lib/moov/models/components/billingsummary_volumeamount.rb +3 -3
  72. data/lib/moov/models/components/billingsummarydetails.rb +4 -4
  73. data/lib/moov/models/components/billingsummarydetails_volumeamount.rb +3 -3
  74. data/lib/moov/models/components/businessprofile.rb +2 -2
  75. data/lib/moov/models/components/businesstype.rb +2 -0
  76. data/lib/moov/models/components/calltoaction.rb +3 -1
  77. data/lib/moov/models/components/cancellation.rb +2 -2
  78. data/lib/moov/models/components/cancellationstatus.rb +2 -0
  79. data/lib/moov/models/components/capability.rb +6 -6
  80. data/lib/moov/models/components/capabilityid.rb +3 -1
  81. data/lib/moov/models/components/capabilitystatus.rb +2 -0
  82. data/lib/moov/models/components/card.rb +5 -5
  83. data/lib/moov/models/components/cardaccountupdater.rb +2 -2
  84. data/lib/moov/models/components/cardacquiring.rb +4 -4
  85. data/lib/moov/models/components/cardacquiringdispute.rb +1 -1
  86. data/lib/moov/models/components/cardacquiringmodel.rb +2 -0
  87. data/lib/moov/models/components/cardacquiringrefund.rb +3 -3
  88. data/lib/moov/models/components/cardbrand.rb +2 -0
  89. data/lib/moov/models/components/cardissuingnetwork.rb +2 -0
  90. data/lib/moov/models/components/cardpaymentpaymentmethod.rb +1 -1
  91. data/lib/moov/models/components/cardpaymentpaymentmethod_paymentmethodtype.rb +2 -0
  92. data/lib/moov/models/components/cardtransactiondetails.rb +12 -12
  93. data/lib/moov/models/components/cardtransactionfailurecode.rb +2 -0
  94. data/lib/moov/models/components/cardtransactionstatus.rb +2 -0
  95. data/lib/moov/models/components/cardtype.rb +2 -0
  96. data/lib/moov/models/components/cardupdatereason.rb +2 -0
  97. data/lib/moov/models/components/cardverification.rb +3 -3
  98. data/lib/moov/models/components/cardverificationresult.rb +2 -0
  99. data/lib/moov/models/components/collectionpaymentmethodtype.rb +2 -0
  100. data/lib/moov/models/components/completedmicrodeposits.rb +1 -1
  101. data/lib/moov/models/components/createaccount.rb +2 -2
  102. data/lib/moov/models/components/createbusinessprofile.rb +2 -2
  103. data/lib/moov/models/components/createdtransfer.rb +4 -4
  104. data/lib/moov/models/components/createevidencefilemultipart.rb +1 -1
  105. data/lib/moov/models/components/createevidencetext.rb +1 -1
  106. data/lib/moov/models/components/createpaymentlink.rb +4 -4
  107. data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -6
  108. data/lib/moov/models/components/createpaymentlinklineitemoption.rb +1 -4
  109. data/lib/moov/models/components/createproductoption.rb +1 -1
  110. data/lib/moov/models/components/createproductoptiongroup.rb +2 -2
  111. data/lib/moov/models/components/createrefund.rb +1 -1
  112. data/lib/moov/models/components/createscheduledtransferlineitem.rb +1 -2
  113. data/lib/moov/models/components/createsweepconfig.rb +1 -1
  114. data/lib/moov/models/components/createterminalapplication.rb +1 -1
  115. data/lib/moov/models/components/createtransferlineitem.rb +1 -2
  116. data/lib/moov/models/components/createtransfersourceach.rb +2 -2
  117. data/lib/moov/models/components/createtransfersourcecard.rb +2 -2
  118. data/lib/moov/models/components/createwebhook.rb +1 -1
  119. data/lib/moov/models/components/debitholdperiod.rb +2 -0
  120. data/lib/moov/models/components/disbursementpaymentmethodtype.rb +2 -0
  121. data/lib/moov/models/components/dispute.rb +7 -7
  122. data/lib/moov/models/components/disputeevidenceresponse.rb +4 -4
  123. data/lib/moov/models/components/disputephase.rb +2 -0
  124. data/lib/moov/models/components/disputestatus.rb +3 -1
  125. data/lib/moov/models/components/document.rb +2 -2
  126. data/lib/moov/models/components/documenttype.rb +2 -0
  127. data/lib/moov/models/components/domesticpullfromcard.rb +2 -0
  128. data/lib/moov/models/components/domesticpushtocard.rb +2 -0
  129. data/lib/moov/models/components/evidencetextresponse.rb +2 -2
  130. data/lib/moov/models/components/evidencetype.rb +2 -0
  131. data/lib/moov/models/components/evidenceuploadresponse.rb +2 -2
  132. data/lib/moov/models/components/facilitatorfee.rb +1 -1
  133. data/lib/moov/models/components/feecategory.rb +2 -0
  134. data/lib/moov/models/components/feemodel.rb +2 -0
  135. data/lib/moov/models/components/feeplan.rb +2 -2
  136. data/lib/moov/models/components/feeplanagreement.rb +3 -3
  137. data/lib/moov/models/components/feeplanagreementstatus.rb +2 -0
  138. data/lib/moov/models/components/feeproperties.rb +1 -1
  139. data/lib/moov/models/components/filedetails.rb +4 -4
  140. data/lib/moov/models/components/filepurpose.rb +2 -0
  141. data/lib/moov/models/components/filestatus.rb +2 -0
  142. data/lib/moov/models/components/fileuploadrequestmultipart.rb +1 -1
  143. data/lib/moov/models/components/fulfillmentdetails.rb +1 -1
  144. data/lib/moov/models/components/fullissuedcard.rb +5 -5
  145. data/lib/moov/models/components/generatedby.rb +2 -6
  146. data/lib/moov/models/components/generatedby.rbi +0 -2
  147. data/lib/moov/models/components/granttype.rb +3 -1
  148. data/lib/moov/models/components/imagemetadata.rb +4 -4
  149. data/lib/moov/models/components/incurredfee.rb +1 -1
  150. data/lib/moov/models/components/invoicestatus.rb +2 -0
  151. data/lib/moov/models/components/issuedcard.rb +5 -5
  152. data/lib/moov/models/components/issuedcardauthorization.rb +3 -3
  153. data/lib/moov/models/components/issuedcardauthorizationevent.rb +3 -3
  154. data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +2 -0
  155. data/lib/moov/models/components/issuedcardeventtype.rb +2 -0
  156. data/lib/moov/models/components/issuedcardformfactor.rb +2 -0
  157. data/lib/moov/models/components/issuedcardstate.rb +3 -1
  158. data/lib/moov/models/components/issuedcardtransaction.rb +2 -2
  159. data/lib/moov/models/components/issuingauthorizationstatus.rb +2 -0
  160. data/lib/moov/models/components/issuingintervallimit.rb +2 -0
  161. data/lib/moov/models/components/issuingvelocitylimit.rb +1 -1
  162. data/lib/moov/models/components/jsonwebkey.rb +6 -6
  163. data/lib/moov/models/components/kind.rb +2 -0
  164. data/lib/moov/models/components/linkapplepay.rb +2 -2
  165. data/lib/moov/models/components/linkapplepaymentdata.rb +2 -2
  166. data/lib/moov/models/components/linkapplepaymentmethod.rb +1 -1
  167. data/lib/moov/models/components/linkapplepaytoken.rb +3 -3
  168. data/lib/moov/models/components/linkcardwaitfor.rb +2 -0
  169. data/lib/moov/models/components/linkedapplepaypaymentmethod.rb +1 -1
  170. data/lib/moov/models/components/manualtermsofservice.rb +1 -1
  171. data/lib/moov/models/components/manualtermsofserviceupdate.rb +1 -1
  172. data/lib/moov/models/components/microdepositstatus.rb +2 -0
  173. data/lib/moov/models/components/minimumcommitment.rb +1 -1
  174. data/lib/moov/models/components/mode.rb +2 -0
  175. data/lib/moov/models/components/monthlyplatformfee.rb +1 -1
  176. data/lib/moov/models/components/moovfee.rb +1 -1
  177. data/lib/moov/models/components/moovwalletpaymentmethod.rb +1 -1
  178. data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +2 -0
  179. data/lib/moov/models/components/mxauthorizationcode.rb +1 -1
  180. data/lib/moov/models/components/mxpayload.rb +3 -3
  181. data/lib/moov/models/components/occurrence.rb +1 -1
  182. data/lib/moov/models/components/occurrencesresponse.rb +5 -5
  183. data/lib/moov/models/components/occurrencestatus.rb +2 -0
  184. data/lib/moov/models/components/onboardinginvite.rb +3 -3
  185. data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
  186. data/lib/moov/models/components/otherfees.rb +3 -3
  187. data/lib/moov/models/components/partnerpricing.rb +66 -0
  188. data/lib/moov/models/components/partnerpricing.rbi +29 -0
  189. data/lib/moov/models/components/partnerpricingagreement.rb +3 -3
  190. data/lib/moov/models/components/patchbusiness.rb +2 -2
  191. data/lib/moov/models/components/patchsweepconfig.rb +1 -1
  192. data/lib/moov/models/components/patchwallet.rb +1 -1
  193. data/lib/moov/models/components/paymentlink.rb +9 -9
  194. data/lib/moov/models/components/paymentlinkdisplayoptions.rb +2 -2
  195. data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +2 -2
  196. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +1 -1
  197. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +1 -1
  198. data/lib/moov/models/components/paymentlinkstatus.rb +2 -0
  199. data/lib/moov/models/components/paymentlinktype.rb +2 -1
  200. data/lib/moov/models/components/paymentmethodsbankaccount.rb +5 -5
  201. data/lib/moov/models/components/paymentmethodscard.rb +4 -4
  202. data/lib/moov/models/components/paymentmethodswallet.rb +1 -1
  203. data/lib/moov/models/components/paymentmethodtype.rb +2 -0
  204. data/lib/moov/models/components/payoutrecipient.rb +1 -1
  205. data/lib/moov/models/components/plaidintegration.rb +2 -2
  206. data/lib/moov/models/components/plaidlinkintegration.rb +2 -2
  207. data/lib/moov/models/components/plaidlinkpayload.rb +3 -3
  208. data/lib/moov/models/components/plaidpayload.rb +2 -2
  209. data/lib/moov/models/components/platformfees.rb +2 -2
  210. data/lib/moov/models/components/primaryregulator.rb +2 -0
  211. data/lib/moov/models/components/product.rb +4 -4
  212. data/lib/moov/models/components/productoption.rb +1 -1
  213. data/lib/moov/models/components/productoptiongroup.rb +2 -2
  214. data/lib/moov/models/components/productrequest.rb +1 -1
  215. data/lib/moov/models/components/pullfromcardpaymentmethod.rb +1 -1
  216. data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +2 -0
  217. data/lib/moov/models/components/pushtocardpaymentmethod.rb +1 -1
  218. data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +2 -0
  219. data/lib/moov/models/components/receiptkind.rb +2 -0
  220. data/lib/moov/models/components/receiptrequest.rb +1 -1
  221. data/lib/moov/models/components/receiptresponse.rb +2 -2
  222. data/lib/moov/models/components/recur.rb +1 -1
  223. data/lib/moov/models/components/recurresponse.rb +1 -1
  224. data/lib/moov/models/components/refundcarddetails.rb +7 -7
  225. data/lib/moov/models/components/refundcardstatus.rb +2 -0
  226. data/lib/moov/models/components/refundstatus.rb +2 -0
  227. data/lib/moov/models/components/representative.rb +3 -3
  228. data/lib/moov/models/components/requestcard.rb +1 -1
  229. data/lib/moov/models/components/requirementerror.rb +2 -2
  230. data/lib/moov/models/components/requirementerrorcode.rb +2 -0
  231. data/lib/moov/models/components/requirementid.rb +2 -0
  232. data/lib/moov/models/components/residual.rb +4 -4
  233. data/lib/moov/models/components/returnpolicytype.rb +2 -0
  234. data/lib/moov/models/components/revoketokenrequest.rb +1 -1
  235. data/lib/moov/models/components/rtpcreditpaymentmethod.rb +1 -1
  236. data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +2 -0
  237. data/lib/moov/models/components/rtpfailurecode.rb +2 -0
  238. data/lib/moov/models/components/rtprejectioncode.rb +3 -1
  239. data/lib/moov/models/components/rtptransactiondetails.rb +6 -6
  240. data/lib/moov/models/components/rtptransactionstatus.rb +2 -0
  241. data/lib/moov/models/components/schedulelistresponse.rb +4 -4
  242. data/lib/moov/models/components/scheduleresponse.rb +4 -4
  243. data/lib/moov/models/components/seccode.rb +2 -0
  244. data/lib/moov/models/components/sentreceipt.rb +1 -1
  245. data/lib/moov/models/components/statement.rb +6 -6
  246. data/lib/moov/models/components/status.rb +2 -0
  247. data/lib/moov/models/components/sweep.rb +3 -3
  248. data/lib/moov/models/components/sweepconfig.rb +3 -3
  249. data/lib/moov/models/components/sweepconfigpaymentmethod.rb +1 -1
  250. data/lib/moov/models/components/sweepconfigstatus.rb +2 -0
  251. data/lib/moov/models/components/sweepstatus.rb +2 -0
  252. data/lib/moov/models/components/sweepsubtotal.rb +1 -1
  253. data/lib/moov/models/components/terminalapplication.rb +2 -2
  254. data/lib/moov/models/components/terminalapplicationplatform.rb +2 -0
  255. data/lib/moov/models/components/terminalapplicationstatus.rb +2 -0
  256. data/lib/moov/models/components/termsofservice.rb +1 -1
  257. data/lib/moov/models/components/ticketstatus.rb +2 -0
  258. data/lib/moov/models/components/token_type_hint.rb +2 -0
  259. data/lib/moov/models/components/tokentype.rb +2 -0
  260. data/lib/moov/models/components/transactionsource.rb +3 -1
  261. data/lib/moov/models/components/transfer.rb +4 -4
  262. data/lib/moov/models/components/transferdestination.rb +5 -5
  263. data/lib/moov/models/components/transferfailurereason.rb +2 -0
  264. data/lib/moov/models/components/transferoptions.rb +3 -3
  265. data/lib/moov/models/components/transferparty.rb +2 -0
  266. data/lib/moov/models/components/transfersource.rb +6 -6
  267. data/lib/moov/models/components/transferstatus.rb +2 -0
  268. data/lib/moov/models/components/transferwaitfor.rb +2 -0
  269. data/lib/moov/models/components/underwriting.rb +2 -2
  270. data/lib/moov/models/components/underwritingstatus.rb +4 -2
  271. data/lib/moov/models/components/updateevidence.rb +1 -1
  272. data/lib/moov/models/components/updateissuedcard.rb +1 -1
  273. data/lib/moov/models/components/updateissuedcardstate.rb +2 -0
  274. data/lib/moov/models/components/updatepaymentlink.rb +1 -1
  275. data/lib/moov/models/components/updatewebhook.rb +1 -1
  276. data/lib/moov/models/components/use.rb +2 -0
  277. data/lib/moov/models/components/verification.rb +9 -9
  278. data/lib/moov/models/components/verificationstatus.rb +4 -2
  279. data/lib/moov/models/components/verificationstatusdetail.rb +4 -2
  280. data/lib/moov/models/components/wallet.rb +4 -4
  281. data/lib/moov/models/components/walletavailablebalance.rb +1 -1
  282. data/lib/moov/models/components/walletstatus.rb +2 -0
  283. data/lib/moov/models/components/wallettransaction.rb +5 -5
  284. data/lib/moov/models/components/wallettransactionsourcetype.rb +2 -0
  285. data/lib/moov/models/components/wallettransactionstatus.rb +2 -0
  286. data/lib/moov/models/components/wallettransactiontype.rb +2 -1
  287. data/lib/moov/models/components/wallettype.rb +2 -0
  288. data/lib/moov/models/components/webhook.rb +4 -4
  289. data/lib/moov/models/components/webhookdatabankaccountupdated.rb +2 -2
  290. data/lib/moov/models/components/webhookdatacancellationcreated.rb +1 -1
  291. data/lib/moov/models/components/webhookdatacancellationupdated.rb +1 -1
  292. data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -2
  293. data/lib/moov/models/components/webhookdatacapabilityupdated.rb +3 -3
  294. data/lib/moov/models/components/webhookdatacardautoupdated.rb +1 -1
  295. data/lib/moov/models/components/webhookdatadisputecreated.rb +3 -3
  296. data/lib/moov/models/components/webhookdatadisputeupdated.rb +3 -3
  297. data/lib/moov/models/components/webhookdatainvoiceupdated.rb +1 -1
  298. data/lib/moov/models/components/webhookdatanetworkidupdated.rb +1 -1
  299. data/lib/moov/models/components/webhookdatarefundupdated.rb +1 -1
  300. data/lib/moov/models/components/webhookdatasweepupdated.rb +1 -1
  301. data/lib/moov/models/components/webhookdataterminalapplicationcreated.rb +1 -1
  302. data/lib/moov/models/components/webhookdataterminalapplicationupdated.rb +1 -1
  303. data/lib/moov/models/components/webhookdataticketupdated.rb +1 -1
  304. data/lib/moov/models/components/webhookdatatransfercreated.rb +1 -1
  305. data/lib/moov/models/components/webhookdatatransferstatus.rb +2 -0
  306. data/lib/moov/models/components/webhookdatatransferupdated.rb +1 -1
  307. data/lib/moov/models/components/webhookdatawallettransactionupdated.rb +1 -1
  308. data/lib/moov/models/components/webhookdatawalletupdated.rb +1 -1
  309. data/lib/moov/models/components/webhookevent.rb +2 -2
  310. data/lib/moov/models/components/webhookeventtype.rb +2 -0
  311. data/lib/moov/models/components/webhookstatus.rb +2 -0
  312. data/lib/moov/models/components.rb +1 -25
  313. data/lib/moov/models/errors/cardacquiringrefund_error.rb +3 -3
  314. data/lib/moov/models/errors/transfer_error.rb +4 -4
  315. data/lib/moov/models/errors.rb +0 -1
  316. data/lib/moov/models/operations/acceptdispute_request.rb +3 -3
  317. data/lib/moov/models/operations/assignaccountcountries_request.rb +3 -3
  318. data/lib/moov/models/operations/cancelschedule_request.rb +3 -3
  319. data/lib/moov/models/operations/completebankaccountverification_request.rb +3 -3
  320. data/lib/moov/models/operations/completemicrodeposits_request.rb +3 -3
  321. data/lib/moov/models/operations/connectaccount_request.rb +3 -3
  322. data/lib/moov/models/operations/createaccesstoken_request.rb +3 -3
  323. data/lib/moov/models/operations/createaccount_request.rb +3 -3
  324. data/lib/moov/models/operations/createapplepaysession_request.rb +3 -3
  325. data/lib/moov/models/operations/createbrand_request.rb +3 -3
  326. data/lib/moov/models/operations/createcancellation_request.rb +3 -3
  327. data/lib/moov/models/operations/createfeeplanagreements_request.rb +3 -3
  328. data/lib/moov/models/operations/createonboardinginvite_request.rb +3 -3
  329. data/lib/moov/models/operations/createpaymentlink_request.rb +3 -3
  330. data/lib/moov/models/operations/createproduct_request.rb +3 -3
  331. data/lib/moov/models/operations/createreceipts_request.rb +3 -3
  332. data/lib/moov/models/operations/createrepresentative_request.rb +3 -3
  333. data/lib/moov/models/operations/createreversal_request.rb +3 -3
  334. data/lib/moov/models/operations/createschedule_request.rb +3 -3
  335. data/lib/moov/models/operations/createsweepconfig_request.rb +3 -3
  336. data/lib/moov/models/operations/createterminalapplication_request.rb +3 -3
  337. data/lib/moov/models/operations/createterminalapplicationversion_request.rb +3 -3
  338. data/lib/moov/models/operations/createtransfer_request.rb +5 -5
  339. data/lib/moov/models/operations/createtransferoptions_request.rb +3 -3
  340. data/lib/moov/models/operations/createwallet_request.rb +3 -3
  341. data/lib/moov/models/operations/createwebhook_request.rb +3 -3
  342. data/lib/moov/models/operations/deletedisputeevidencefile_request.rb +3 -3
  343. data/lib/moov/models/operations/deleteimage_request.rb +3 -3
  344. data/lib/moov/models/operations/deleterepresentative_request.rb +3 -3
  345. data/lib/moov/models/operations/deleteterminalapplication_request.rb +3 -3
  346. data/lib/moov/models/operations/disablebankaccount_request.rb +3 -3
  347. data/lib/moov/models/operations/disablecapability_request.rb +4 -4
  348. data/lib/moov/models/operations/disablecard_request.rb +3 -3
  349. data/lib/moov/models/operations/disablepaymentlink_request.rb +3 -3
  350. data/lib/moov/models/operations/disableproduct_request.rb +3 -3
  351. data/lib/moov/models/operations/disablewebhook_request.rb +3 -3
  352. data/lib/moov/models/operations/disconnectaccount_request.rb +3 -3
  353. data/lib/moov/models/operations/generateendtoendkey_request.rb +3 -3
  354. data/lib/moov/models/operations/getaccount_request.rb +3 -3
  355. data/lib/moov/models/operations/getaccountcountries_request.rb +3 -3
  356. data/lib/moov/models/operations/getaccountterminalapplication_request.rb +3 -3
  357. data/lib/moov/models/operations/getadjustment_request.rb +3 -3
  358. data/lib/moov/models/operations/getapplepaymerchantdomains_request.rb +3 -3
  359. data/lib/moov/models/operations/getavatar_request.rb +3 -3
  360. data/lib/moov/models/operations/getbankaccount_request.rb +3 -3
  361. data/lib/moov/models/operations/getbankaccountverification_request.rb +3 -3
  362. data/lib/moov/models/operations/getbrand_request.rb +3 -3
  363. data/lib/moov/models/operations/getcancellation_request.rb +3 -3
  364. data/lib/moov/models/operations/getcapability_request.rb +4 -4
  365. data/lib/moov/models/operations/getcard_request.rb +3 -3
  366. data/lib/moov/models/operations/getdispute_request.rb +3 -3
  367. data/lib/moov/models/operations/getdisputeevidence_request.rb +3 -3
  368. data/lib/moov/models/operations/getdisputeevidencedata_request.rb +3 -3
  369. data/lib/moov/models/operations/getenrichmentaddress_request.rb +3 -3
  370. data/lib/moov/models/operations/getenrichmentprofile_request.rb +3 -3
  371. data/lib/moov/models/operations/getfiledetails_request.rb +3 -3
  372. data/lib/moov/models/operations/getfullissuedcard_request.rb +3 -3
  373. data/lib/moov/models/operations/getimagemetadata_request.rb +3 -3
  374. data/lib/moov/models/operations/getissuedcard_request.rb +3 -3
  375. data/lib/moov/models/operations/getissuedcardauthorization_request.rb +3 -3
  376. data/lib/moov/models/operations/getissuedcardtransaction_request.rb +3 -3
  377. data/lib/moov/models/operations/getmerchantprocessingagreement_request.rb +3 -3
  378. data/lib/moov/models/operations/getonboardinginvite_request.rb +3 -3
  379. data/lib/moov/models/operations/getpaymentlink_request.rb +3 -3
  380. data/lib/moov/models/operations/getpaymentlinkqrcode_request.rb +3 -3
  381. data/lib/moov/models/operations/getpaymentmethod_request.rb +3 -3
  382. data/lib/moov/models/operations/getproduct_request.rb +3 -3
  383. data/lib/moov/models/operations/getpublicimage_request.rb +1 -1
  384. data/lib/moov/models/operations/getrefund_request.rb +3 -3
  385. data/lib/moov/models/operations/getrepresentative_request.rb +3 -3
  386. data/lib/moov/models/operations/getresidual_request.rb +3 -3
  387. data/lib/moov/models/operations/getscheduledoccurrence_request.rb +8 -8
  388. data/lib/moov/models/operations/getschedules_request.rb +3 -3
  389. data/lib/moov/models/operations/getstatement_request.rb +3 -3
  390. data/lib/moov/models/operations/getsweep_request.rb +3 -3
  391. data/lib/moov/models/operations/getsweepconfig_request.rb +3 -3
  392. data/lib/moov/models/operations/getterminalapplication_request.rb +3 -3
  393. data/lib/moov/models/operations/getterminalconfiguration_request.rb +3 -3
  394. data/lib/moov/models/operations/gettermsofservicetoken_request.rb +3 -3
  395. data/lib/moov/models/operations/gettransfer_request.rb +3 -3
  396. data/lib/moov/models/operations/getunderwriting_request.rb +3 -3
  397. data/lib/moov/models/operations/getwallet_request.rb +3 -3
  398. data/lib/moov/models/operations/getwallettransaction_request.rb +3 -3
  399. data/lib/moov/models/operations/getwebhook_request.rb +3 -3
  400. data/lib/moov/models/operations/getwebhooksecret_request.rb +3 -3
  401. data/lib/moov/models/operations/hydrate.rb +2 -0
  402. data/lib/moov/models/operations/initiatebankaccountverification_request.rb +4 -4
  403. data/lib/moov/models/operations/initiatemicrodeposits_request.rb +3 -3
  404. data/lib/moov/models/operations/initiaterefund_request.rb +3 -3
  405. data/lib/moov/models/operations/linkaccountterminalapplication_request.rb +3 -3
  406. data/lib/moov/models/operations/linkapplepaytoken_request.rb +3 -3
  407. data/lib/moov/models/operations/linkbankaccount_request.rb +4 -4
  408. data/lib/moov/models/operations/linkcard_request.rb +4 -4
  409. data/lib/moov/models/operations/listaccounts_request.rb +9 -9
  410. data/lib/moov/models/operations/listaccountterminalapplications_request.rb +3 -3
  411. data/lib/moov/models/operations/listadjustments_request.rb +3 -3
  412. data/lib/moov/models/operations/listbankaccounts_request.rb +3 -3
  413. data/lib/moov/models/operations/listcapabilities_request.rb +3 -3
  414. data/lib/moov/models/operations/listcards_request.rb +3 -3
  415. data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +9 -9
  416. data/lib/moov/models/operations/listdisputeevidence_request.rb +3 -3
  417. data/lib/moov/models/operations/listdisputes_request.rb +3 -3
  418. data/lib/moov/models/operations/listeventtypes_request.rb +3 -3
  419. data/lib/moov/models/operations/listfeeplanagreements_request.rb +3 -3
  420. data/lib/moov/models/operations/listfeeplans_request.rb +3 -3
  421. data/lib/moov/models/operations/listfeerevenue_request.rb +3 -3
  422. data/lib/moov/models/operations/listfeesfetch_request.rb +3 -3
  423. data/lib/moov/models/operations/listfiles_request.rb +3 -3
  424. data/lib/moov/models/operations/listimagemetadata_request.rb +3 -3
  425. data/lib/moov/models/operations/listindustries_request.rb +3 -3
  426. data/lib/moov/models/operations/listinstitutions_request.rb +3 -3
  427. data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +3 -3
  428. data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +3 -3
  429. data/lib/moov/models/operations/listissuedcards_request.rb +3 -3
  430. data/lib/moov/models/operations/listissuedcardtransactions_request.rb +3 -3
  431. data/lib/moov/models/operations/listonboardinginvites_request.rb +3 -3
  432. data/lib/moov/models/operations/listpartnerpricing_request.rb +49 -0
  433. data/lib/moov/models/operations/listpartnerpricing_request.rbi +17 -0
  434. data/lib/moov/models/operations/listpartnerpricing_response.rb +48 -0
  435. data/lib/moov/models/operations/listpartnerpricing_response.rbi +21 -0
  436. data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +3 -3
  437. data/lib/moov/models/operations/listpaymentlinks_request.rb +13 -9
  438. data/lib/moov/models/operations/listpaymentlinks_request.rbi +4 -2
  439. data/lib/moov/models/operations/listpaymentmethods_request.rb +4 -4
  440. data/lib/moov/models/operations/listproducts_request.rb +3 -3
  441. data/lib/moov/models/operations/listreceipts_request.rb +3 -3
  442. data/lib/moov/models/operations/listrefunds_request.rb +3 -3
  443. data/lib/moov/models/operations/listrepresentatives_request.rb +3 -3
  444. data/lib/moov/models/operations/listresidualfees_request.rb +3 -3
  445. data/lib/moov/models/operations/listresiduals_request.rb +3 -3
  446. data/lib/moov/models/operations/listschedules_request.rb +3 -3
  447. data/lib/moov/models/operations/liststatements_request.rb +3 -3
  448. data/lib/moov/models/operations/listsweepconfigs_request.rb +3 -3
  449. data/lib/moov/models/operations/listsweeps_request.rb +3 -3
  450. data/lib/moov/models/operations/listterminalapplications_request.rb +3 -3
  451. data/lib/moov/models/operations/listtransfers_request.rb +3 -3
  452. data/lib/moov/models/operations/listwallets_request.rb +3 -3
  453. data/lib/moov/models/operations/listwallettransactions_request.rb +3 -3
  454. data/lib/moov/models/operations/listwebhooks_request.rb +3 -3
  455. data/lib/moov/models/operations/ping_request.rb +3 -3
  456. data/lib/moov/models/operations/pingwebhook_request.rb +3 -3
  457. data/lib/moov/models/operations/registerapplepaymerchantdomains_request.rb +3 -3
  458. data/lib/moov/models/operations/requestcapabilities_request.rb +3 -3
  459. data/lib/moov/models/operations/requestcard_request.rb +3 -3
  460. data/lib/moov/models/operations/retrievefees_request.rb +3 -3
  461. data/lib/moov/models/operations/revokeaccesstoken_request.rb +3 -3
  462. data/lib/moov/models/operations/revokeonboardinginvite_request.rb +3 -3
  463. data/lib/moov/models/operations/searchinstitutions_request.rb +3 -3
  464. data/lib/moov/models/operations/submitdisputeevidence_request.rb +3 -3
  465. data/lib/moov/models/operations/testendtoendtoken_request.rb +3 -3
  466. data/lib/moov/models/operations/updateaccount_request.rb +3 -3
  467. data/lib/moov/models/operations/updateapplepaymerchantdomains_request.rb +3 -3
  468. data/lib/moov/models/operations/updatecard_request.rb +3 -3
  469. data/lib/moov/models/operations/updatedisputeevidence_request.rb +3 -3
  470. data/lib/moov/models/operations/updateimage_request.rb +3 -3
  471. data/lib/moov/models/operations/updateimagemetadata_request.rb +3 -3
  472. data/lib/moov/models/operations/updateissuedcard_request.rb +3 -3
  473. data/lib/moov/models/operations/updatepaymentlink_request.rb +3 -3
  474. data/lib/moov/models/operations/updateproduct_request.rb +3 -3
  475. data/lib/moov/models/operations/updaterepresentative_request.rb +3 -3
  476. data/lib/moov/models/operations/updateschedule_request.rb +3 -3
  477. data/lib/moov/models/operations/updatesweepconfig_request.rb +3 -3
  478. data/lib/moov/models/operations/updatetransfer_request.rb +3 -3
  479. data/lib/moov/models/operations/updatewallet_request.rb +3 -3
  480. data/lib/moov/models/operations/updatewebhook_request.rb +3 -3
  481. data/lib/moov/models/operations/uploaddisputeevidencefile_request.rb +3 -3
  482. data/lib/moov/models/operations/uploaddisputeevidencetext_request.rb +3 -3
  483. data/lib/moov/models/operations/uploadfile_request.rb +3 -3
  484. data/lib/moov/models/operations/uploadimage_request.rb +3 -3
  485. data/lib/moov/models/operations/upsertbrand_request.rb +3 -3
  486. data/lib/moov/models/operations/upsertunderwriting_request.rb +3 -3
  487. data/lib/moov/models/operations.rb +2 -0
  488. data/lib/moov/onboarding.rb +5 -5
  489. data/lib/moov/payment_links.rb +13 -13
  490. data/lib/moov/payment_methods.rb +2 -2
  491. data/lib/moov/ping.rb +1 -1
  492. data/lib/moov/products.rb +3 -3
  493. data/lib/moov/receipts.rb +3 -3
  494. data/lib/moov/representatives.rb +12 -12
  495. data/lib/moov/scheduling.rb +8 -8
  496. data/lib/moov/sdkconfiguration.rb +4 -4
  497. data/lib/moov/statements.rb +7 -7
  498. data/lib/moov/sweeps.rb +8 -8
  499. data/lib/moov/terminal_applications.rb +7 -7
  500. data/lib/moov/transfers.rb +22 -22
  501. data/lib/moov/underwriting.rb +5 -5
  502. data/lib/moov/utils/request_bodies.rb +3 -8
  503. data/lib/moov/utils/security.rb +0 -10
  504. data/lib/moov/utils/url.rb +5 -11
  505. data/lib/moov/utils/utils.rb +3 -45
  506. data/lib/moov/wallet_transactions.rb +4 -4
  507. data/lib/moov/wallets.rb +10 -10
  508. data/lib/moov/webhooks.rb +2 -2
  509. metadata +12 -59
  510. data/lib/crystalline/enum.rbi +0 -17
  511. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod.rb +0 -40
  512. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod.rbi +0 -17
  513. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod_paymentmethodtype.rb +0 -18
  514. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod_paymentmethodtype.rbi +0 -11
  515. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod.rb +0 -40
  516. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod.rbi +0 -17
  517. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod_paymentmethodtype.rb +0 -18
  518. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  519. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod.rb +0 -40
  520. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod.rbi +0 -17
  521. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod_paymentmethodtype.rb +0 -18
  522. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod_paymentmethodtype.rbi +0 -11
  523. data/lib/moov/models/components/achdebitfundtransferpaymentmethod.rb +0 -40
  524. data/lib/moov/models/components/achdebitfundtransferpaymentmethod.rbi +0 -17
  525. data/lib/moov/models/components/achdebitfundtransferpaymentmethod_paymentmethodtype.rb +0 -18
  526. data/lib/moov/models/components/achdebitfundtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  527. data/lib/moov/models/components/applepaytransferpaymentmethod.rb +0 -40
  528. data/lib/moov/models/components/applepaytransferpaymentmethod.rbi +0 -17
  529. data/lib/moov/models/components/applepaytransferpaymentmethod_paymentmethodtype.rb +0 -18
  530. data/lib/moov/models/components/applepaytransferpaymentmethod_paymentmethodtype.rbi +0 -11
  531. data/lib/moov/models/components/cardpaymenttransferpaymentmethod.rb +0 -40
  532. data/lib/moov/models/components/cardpaymenttransferpaymentmethod.rbi +0 -17
  533. data/lib/moov/models/components/cardpaymenttransferpaymentmethod_paymentmethodtype.rb +0 -18
  534. data/lib/moov/models/components/cardpaymenttransferpaymentmethod_paymentmethodtype.rbi +0 -11
  535. data/lib/moov/models/components/moovwallettransferpaymentmethod.rb +0 -40
  536. data/lib/moov/models/components/moovwallettransferpaymentmethod.rbi +0 -17
  537. data/lib/moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rb +0 -18
  538. data/lib/moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rbi +0 -11
  539. data/lib/moov/models/components/pullfromcardtransferpaymentmethod.rb +0 -40
  540. data/lib/moov/models/components/pullfromcardtransferpaymentmethod.rbi +0 -17
  541. data/lib/moov/models/components/pullfromcardtransferpaymentmethod_paymentmethodtype.rb +0 -18
  542. data/lib/moov/models/components/pullfromcardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  543. data/lib/moov/models/components/pushtocardtransferpaymentmethod.rb +0 -40
  544. data/lib/moov/models/components/pushtocardtransferpaymentmethod.rbi +0 -17
  545. data/lib/moov/models/components/pushtocardtransferpaymentmethod_paymentmethodtype.rb +0 -18
  546. data/lib/moov/models/components/pushtocardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  547. data/lib/moov/models/components/rtpcredittransferpaymentmethod.rb +0 -40
  548. data/lib/moov/models/components/rtpcredittransferpaymentmethod.rbi +0 -17
  549. data/lib/moov/models/components/rtpcredittransferpaymentmethod_paymentmethodtype.rb +0 -18
  550. data/lib/moov/models/components/rtpcredittransferpaymentmethod_paymentmethodtype.rbi +0 -11
  551. data/lib/moov/models/components/transferpaymentmethod.rb +0 -27
  552. data/lib/moov/models/components/transferpaymentmethod.rbi +0 -11
  553. data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +0 -70
  554. data/lib/moov/models/components/transferpaymentmethodsbankaccount.rbi +0 -31
  555. data/lib/moov/models/components/transferpaymentmethodscard.rb +0 -98
  556. data/lib/moov/models/components/transferpaymentmethodscard.rbi +0 -45
  557. data/lib/moov/models/components/transferpaymentmethodswallet.rb +0 -42
  558. data/lib/moov/models/components/transferpaymentmethodswallet.rbi +0 -17
  559. data/lib/moov/models/components/transferpaymentmethodtype.rb +0 -27
  560. data/lib/moov/models/components/transferpaymentmethodtype.rbi +0 -11
  561. data/lib/moov/models/errors/duplicatecarderror.rb +0 -41
  562. data/lib/moov/models/errors/duplicatecarderror.rbi +0 -17
@@ -44,7 +44,7 @@ module Moov
44
44
  # create - Moov accounts associated with businesses require information regarding individuals who represent the business.
45
45
  # You can provide this information by creating a representative. Each account is allowed a maximum of 7 representatives.
46
46
  # Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
47
- #
47
+ #
48
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
49
49
  # you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
50
50
  request = Models::Operations::CreateRepresentativeRequest.new(
@@ -67,7 +67,7 @@ module Moov
67
67
  headers['content-type'] = req_content_type
68
68
  raise StandardError, 'request body is required' if data.nil? && form.nil?
69
69
 
70
- if form && !form.empty?
70
+ if form
71
71
  body = Utils.encode_form(form)
72
72
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
73
73
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -211,7 +211,7 @@ module Moov
211
211
  # You can use this method to list all the representatives for a given Moov account.
212
212
  # Note that Moov accounts associated with an individual do not have representatives.
213
213
  # Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
214
- #
214
+ #
215
215
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
216
216
  # you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
217
217
  request = Models::Operations::ListRepresentativesRequest.new(
@@ -332,7 +332,7 @@ module Moov
332
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
333
  def delete(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
334
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.
335
- #
335
+ #
336
336
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
337
337
  # you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
338
338
  request = Models::Operations::DeleteRepresentativeRequest.new(
@@ -460,7 +460,7 @@ module Moov
460
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
461
  def get(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
462
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.
463
- #
463
+ #
464
464
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
465
465
  # you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
466
466
  request = Models::Operations::GetRepresentativeRequest.new(
@@ -583,19 +583,19 @@ module Moov
583
583
  def update(update_representative:, account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
584
584
  # update - If a representative's information has changed you can patch the information associated with a specific representative ID.
585
585
  # Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
586
- #
586
+ #
587
587
  # When **can** profile data be updated:
588
- #
588
+ #
589
589
  # - For unverified representatives, all profile data can be edited.
590
590
  # - During the verification process, missing or incomplete profile data can be edited.
591
591
  # - Verified representatives can only add missing profile data.
592
- #
592
+ #
593
593
  # When **can't** profile data be updated:
594
- #
594
+ #
595
595
  # - Verified representatives cannot change any existing profile data.
596
- #
596
+ #
597
597
  # If you need to update information in a locked state, please contact Moov support.
598
- #
598
+ #
599
599
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
600
600
  # you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
601
601
  request = Models::Operations::UpdateRepresentativeRequest.new(
@@ -619,7 +619,7 @@ module Moov
619
619
  headers['content-type'] = req_content_type
620
620
  raise StandardError, 'request body is required' if data.nil? && form.nil?
621
621
 
622
- if form && !form.empty?
622
+ if form
623
623
  body = Utils.encode_form(form)
624
624
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
625
625
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -42,7 +42,7 @@ module Moov
42
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
43
  def create(upsert_schedule:, account_id:, x_moov_version: nil, timeout_ms: nil)
44
44
  # create - Describes the schedule to create or modify.
45
- #
45
+ #
46
46
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
47
47
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
48
48
  request = Models::Operations::CreateScheduleRequest.new(
@@ -65,7 +65,7 @@ module Moov
65
65
  headers['content-type'] = req_content_type
66
66
  raise StandardError, 'request body is required' if data.nil? && form.nil?
67
67
 
68
- if form && !form.empty?
68
+ if form
69
69
  body = Utils.encode_form(form)
70
70
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
71
71
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -206,7 +206,7 @@ module Moov
206
206
  sig { params(request: Models::Operations::ListSchedulesRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListSchedulesResponse) }
207
207
  def list(request:, timeout_ms: nil)
208
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.
209
- #
209
+ #
210
210
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
211
211
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
212
212
  url, params = @sdk_configuration.get_server_details
@@ -325,7 +325,7 @@ module Moov
325
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
326
  def update(upsert_schedule:, account_id:, schedule_id:, x_moov_version: nil, timeout_ms: nil)
327
327
  # update - Describes the schedule to modify.
328
- #
328
+ #
329
329
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
330
330
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
331
331
  request = Models::Operations::UpdateScheduleRequest.new(
@@ -349,7 +349,7 @@ module Moov
349
349
  headers['content-type'] = req_content_type
350
350
  raise StandardError, 'request body is required' if data.nil? && form.nil?
351
351
 
352
- if form && !form.empty?
352
+ if form
353
353
  body = Utils.encode_form(form)
354
354
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
355
355
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -490,7 +490,7 @@ module Moov
490
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
491
  def get(account_id:, schedule_id:, x_moov_version: nil, timeout_ms: nil)
492
492
  # get - Describes a schedule associated with an account. Requires at least 1 occurrence or recurTransfer to be specified.
493
- #
493
+ #
494
494
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
495
495
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
496
496
  request = Models::Operations::GetSchedulesRequest.new(
@@ -612,7 +612,7 @@ module Moov
612
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
613
  def cancel(account_id:, schedule_id:, x_moov_version: nil, timeout_ms: nil)
614
614
  # cancel - Describes the schedule to cancel.
615
- #
615
+ #
616
616
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
617
617
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
618
618
  request = Models::Operations::CancelScheduleRequest.new(
@@ -740,7 +740,7 @@ module Moov
740
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
741
  def get_occurrance(account_id:, schedule_id:, occurrence_filter:, x_moov_version: nil, timeout_ms: nil)
742
742
  # get_occurrance - Gets a specific occurrence.
743
- #
743
+ #
744
744
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
745
745
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
746
746
  request = Models::Operations::GetScheduledOccurrenceRequest.new(
@@ -94,10 +94,10 @@ module Moov
94
94
  end
95
95
  @globals = globals.nil? ? {} : globals
96
96
  @language = 'ruby'
97
- @openapi_doc_version = 'v2024.01.00'
98
- @sdk_version = '24.1.7'
99
- @gen_version = '2.832.9'
100
- @user_agent = 'speakeasy-sdk/ruby 24.1.7 2.832.9 v2024.01.00 moov_ruby'
97
+ @openapi_doc_version = 'v2025.01.00'
98
+ @sdk_version = '25.1.0-dev.0'
99
+ @gen_version = '2.801.2'
100
+ @user_agent = 'speakeasy-sdk/ruby 25.1.0-dev.0 2.801.2 v2025.01.00 moov_ruby'
101
101
  end
102
102
 
103
103
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -42,7 +42,7 @@ module Moov
42
42
  sig { params(request: Models::Operations::ListStatementsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListStatementsResponse) }
43
43
  def list(request:, timeout_ms: nil)
44
44
  # list - Retrieve all statements associated with an account.
45
- #
45
+ #
46
46
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
47
47
  # you'll need to specify the `/accounts/{accountID}/profile.read` scope.
48
48
  url, params = @sdk_configuration.get_server_details
@@ -173,12 +173,12 @@ module Moov
173
173
  end
174
174
 
175
175
 
176
- 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)).returns(Models::Operations::GetStatementResponse) }
177
- def get(account_id:, statement_id:, x_moov_version: nil, timeout_ms: nil, accept_header_override: 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)
178
178
  # get - Retrieve a statement by its ID.
179
- #
179
+ #
180
180
  # Use the `Accept` header to specify the format of the response. Supported formats are `application/json` and `application/pdf`.
181
- #
181
+ #
182
182
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
183
183
  # you'll need to specify the `/accounts/{accountID}/profile.read` scope.
184
184
  request = Models::Operations::GetStatementRequest.new(
@@ -197,7 +197,7 @@ module Moov
197
197
  )
198
198
  headers = Utils.get_headers(request, @sdk_configuration.globals)
199
199
  headers = T.cast(headers, T::Hash[String, String])
200
- headers['Accept'] = accept_header_override || 'application/json;q=1, application/pdf;q=0'
200
+ headers['Accept'] = 'application/json;q=1, application/pdf;q=0'
201
201
  headers['user-agent'] = @sdk_configuration.user_agent
202
202
 
203
203
  security = @sdk_configuration.security_source&.call
@@ -286,7 +286,7 @@ module Moov
286
286
  ),
287
287
  response: http_response
288
288
  )
289
- obj = http_response.env.body.force_encoding('UTF-8')
289
+ obj = http_response.env.body
290
290
 
291
291
  return Models::Operations::GetStatementResponse.new(
292
292
  status_code: http_response.status,
data/lib/moov/sweeps.rb CHANGED
@@ -42,7 +42,7 @@ module Moov
42
42
  sig { params(create_sweep_config: Models::Components::CreateSweepConfig, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateSweepConfigResponse) }
43
43
  def create_config(create_sweep_config:, account_id:, x_moov_version: nil, timeout_ms: nil)
44
44
  # create_config - Create a sweep config for a wallet.
45
- #
45
+ #
46
46
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
47
47
  # you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
48
48
  request = Models::Operations::CreateSweepConfigRequest.new(
@@ -65,7 +65,7 @@ module Moov
65
65
  headers['content-type'] = req_content_type
66
66
  raise StandardError, 'request body is required' if data.nil? && form.nil?
67
67
 
68
- if form && !form.empty?
68
+ if form
69
69
  body = Utils.encode_form(form)
70
70
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
71
71
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -206,7 +206,7 @@ module Moov
206
206
  sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListSweepConfigsResponse) }
207
207
  def list_configs(account_id:, x_moov_version: nil, timeout_ms: nil)
208
208
  # list_configs - List sweep configs associated with an account.
209
- #
209
+ #
210
210
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
211
211
  # you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
212
212
  request = Models::Operations::ListSweepConfigsRequest.new(
@@ -327,7 +327,7 @@ module Moov
327
327
  sig { params(account_id: ::String, sweep_config_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetSweepConfigResponse) }
328
328
  def get_config(account_id:, sweep_config_id:, x_moov_version: nil, timeout_ms: nil)
329
329
  # get_config - Get a sweep config associated with a wallet.
330
- #
330
+ #
331
331
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
332
332
  # you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
333
333
  request = Models::Operations::GetSweepConfigRequest.new(
@@ -449,7 +449,7 @@ module Moov
449
449
  sig { params(patch_sweep_config: Models::Components::PatchSweepConfig, account_id: ::String, sweep_config_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateSweepConfigResponse) }
450
450
  def update_config(patch_sweep_config:, account_id:, sweep_config_id:, x_moov_version: nil, timeout_ms: nil)
451
451
  # update_config - Update settings on a sweep config.
452
- #
452
+ #
453
453
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
454
454
  # you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
455
455
  request = Models::Operations::UpdateSweepConfigRequest.new(
@@ -473,7 +473,7 @@ module Moov
473
473
  headers['content-type'] = req_content_type
474
474
  raise StandardError, 'request body is required' if data.nil? && form.nil?
475
475
 
476
- if form && !form.empty?
476
+ if form
477
477
  body = Utils.encode_form(form)
478
478
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
479
479
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -614,7 +614,7 @@ module Moov
614
614
  sig { params(request: Models::Operations::ListSweepsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListSweepsResponse) }
615
615
  def list(request:, timeout_ms: nil)
616
616
  # list - List sweeps associated with a wallet.
617
- #
617
+ #
618
618
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
619
619
  # you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
620
620
  url, params = @sdk_configuration.get_server_details
@@ -733,7 +733,7 @@ module Moov
733
733
  sig { params(account_id: ::String, wallet_id: ::String, sweep_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetSweepResponse) }
734
734
  def get(account_id:, wallet_id:, sweep_id:, x_moov_version: nil, timeout_ms: nil)
735
735
  # get - Get details on a specific sweep.
736
- #
736
+ #
737
737
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
738
738
  # you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
739
739
  request = Models::Operations::GetSweepRequest.new(
@@ -42,7 +42,7 @@ module Moov
42
42
  sig { params(create_terminal_application: Models::Components::CreateTerminalApplication, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateTerminalApplicationResponse) }
43
43
  def create(create_terminal_application:, x_moov_version: nil, timeout_ms: nil)
44
44
  # create - Create a new terminal application.
45
- #
45
+ #
46
46
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
47
47
  # you'll need to specify the `/terminal-applications.write` scope.
48
48
  request = Models::Operations::CreateTerminalApplicationRequest.new(
@@ -58,7 +58,7 @@ module Moov
58
58
  headers['content-type'] = req_content_type
59
59
  raise StandardError, 'request body is required' if data.nil? && form.nil?
60
60
 
61
- if form && !form.empty?
61
+ if form
62
62
  body = Utils.encode_form(form)
63
63
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
64
64
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -199,7 +199,7 @@ module Moov
199
199
  sig { params(x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListTerminalApplicationsResponse) }
200
200
  def list(x_moov_version: nil, timeout_ms: nil)
201
201
  # list - List all the terminal applications for a Moov Account.
202
- #
202
+ #
203
203
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
204
204
  # you'll need to specify the `/terminal-applications.read` scope.
205
205
  request = Models::Operations::ListTerminalApplicationsRequest.new(
@@ -313,7 +313,7 @@ module Moov
313
313
  sig { params(terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTerminalApplicationResponse) }
314
314
  def get(terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
315
315
  # get - Fetch a specific terminal application.
316
- #
316
+ #
317
317
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
318
318
  # you'll need to specify the `/terminal-applications.read` scope.
319
319
  request = Models::Operations::GetTerminalApplicationRequest.new(
@@ -434,7 +434,7 @@ module Moov
434
434
  sig { params(terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeleteTerminalApplicationResponse) }
435
435
  def delete(terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
436
436
  # delete - Delete a specific terminal application.
437
- #
437
+ #
438
438
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
439
439
  # you'll need to specify the `/terminal-applications.write` scope.
440
440
  request = Models::Operations::DeleteTerminalApplicationRequest.new(
@@ -561,7 +561,7 @@ module Moov
561
561
  sig { params(terminal_application_version: Models::Components::TerminalApplicationVersion, terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateTerminalApplicationVersionResponse) }
562
562
  def create_version(terminal_application_version:, terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
563
563
  # create_version - Register a new version of a terminal application. For Android applications, this is used to register a new version code of the application.
564
- #
564
+ #
565
565
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
566
566
  # you'll need to specify the `/terminal-applications.write` scope.
567
567
  request = Models::Operations::CreateTerminalApplicationVersionRequest.new(
@@ -584,7 +584,7 @@ module Moov
584
584
  headers['content-type'] = req_content_type
585
585
  raise StandardError, 'request body is required' if data.nil? && form.nil?
586
586
 
587
- if form && !form.empty?
587
+ if form
588
588
  body = Utils.encode_form(form)
589
589
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
590
590
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -43,11 +43,11 @@ module Moov
43
43
  def generate_options(create_transfer_options:, account_id:, x_moov_version: nil, timeout_ms: nil)
44
44
  # generate_options - Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
45
45
  # supply in the request body.
46
- #
46
+ #
47
47
  # The accountID in the route should the partner's accountID.
48
- #
48
+ #
49
49
  # Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
50
- #
50
+ #
51
51
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
52
52
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
53
53
  request = Models::Operations::CreateTransferOptionsRequest.new(
@@ -70,7 +70,7 @@ module Moov
70
70
  headers['content-type'] = req_content_type
71
71
  raise StandardError, 'request body is required' if data.nil? && form.nil?
72
72
 
73
- if form && !form.empty?
73
+ if form
74
74
  body = Utils.encode_form(form)
75
75
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
76
76
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -211,9 +211,9 @@ module Moov
211
211
  sig { params(request: Models::Operations::CreateTransferRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateTransferResponse) }
212
212
  def create(request:, timeout_ms: nil)
213
213
  # create - Move money by providing the source, destination, and amount in the request body.
214
- #
214
+ #
215
215
  # Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
216
- #
216
+ #
217
217
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
218
218
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
219
219
  url, params = @sdk_configuration.get_server_details
@@ -231,7 +231,7 @@ module Moov
231
231
  headers['content-type'] = req_content_type
232
232
  raise StandardError, 'request body is required' if data.nil? && form.nil?
233
233
 
234
- if form && !form.empty?
234
+ if form
235
235
  body = Utils.encode_form(form)
236
236
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
237
237
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -431,14 +431,14 @@ module Moov
431
431
  sig { params(request: Models::Operations::ListTransfersRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListTransfersResponse) }
432
432
  def list(request:, timeout_ms: nil)
433
433
  # list - List all the transfers associated with a particular Moov account.
434
- #
434
+ #
435
435
  # Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
436
- #
436
+ #
437
437
  # When you run this request, you retrieve 200 transfers at a time. You can advance past a results set of 200 transfers by using the `skip` parameter (for example,
438
438
  # if you set `skip`= 10, you will see a results set of 200 transfers after the first 10). If you are searching a high volume of transfers, the request will likely
439
439
  # process very slowly. To achieve faster performance, restrict the data as much as you can by using the `StartDateTime` and `EndDateTime` parameters for a limited
440
440
  # period of time. You can run multiple requests in smaller time window increments until you've retrieved all the transfers you need.
441
- #
441
+ #
442
442
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
443
443
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
444
444
  url, params = @sdk_configuration.get_server_details
@@ -572,10 +572,10 @@ module Moov
572
572
  sig { params(transfer_id: ::String, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTransferResponse) }
573
573
  def get(transfer_id:, account_id:, x_moov_version: nil, timeout_ms: nil)
574
574
  # get - Retrieve full transfer details for an individual transfer of a particular Moov account.
575
- #
575
+ #
576
576
  # Payment rail-specific details are included in the source and destination. Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/)
577
577
  # to learn more.
578
- #
578
+ #
579
579
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
580
580
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
581
581
  request = Models::Operations::GetTransferRequest.new(
@@ -697,9 +697,9 @@ module Moov
697
697
  sig { params(patch_transfer: Models::Components::PatchTransfer, transfer_id: ::String, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateTransferResponse) }
698
698
  def update(patch_transfer:, transfer_id:, account_id:, x_moov_version: nil, timeout_ms: nil)
699
699
  # update - Update the metadata contained on a transfer.
700
- #
700
+ #
701
701
  # Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
702
- #
702
+ #
703
703
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
704
704
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
705
705
  request = Models::Operations::UpdateTransferRequest.new(
@@ -723,7 +723,7 @@ module Moov
723
723
  headers['content-type'] = req_content_type
724
724
  raise StandardError, 'request body is required' if data.nil? && form.nil?
725
725
 
726
- if form && !form.empty?
726
+ if form
727
727
  body = Utils.encode_form(form)
728
728
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
729
729
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -1109,10 +1109,10 @@ module Moov
1109
1109
  sig { params(request: Models::Operations::InitiateRefundRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::InitiateRefundResponse) }
1110
1110
  def initiate_refund(request:, timeout_ms: nil)
1111
1111
  # initiate_refund - Initiate a refund for a card transfer.
1112
- #
1112
+ #
1113
1113
  # **Use the [Cancel or refund a card transfer](https://docs.moov.io/api/money-movement/refunds/cancel/) endpoint for more comprehensive cancel and refund options.**
1114
1114
  # See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/) guide for more information.
1115
- #
1115
+ #
1116
1116
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1117
1117
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
1118
1118
  url, params = @sdk_configuration.get_server_details
@@ -1129,7 +1129,7 @@ module Moov
1129
1129
  req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_refund, :json)
1130
1130
  headers['content-type'] = req_content_type
1131
1131
 
1132
- if form && !form.empty?
1132
+ if form
1133
1133
  body = Utils.encode_form(form)
1134
1134
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1135
1135
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -1307,7 +1307,7 @@ module Moov
1307
1307
  sig { params(account_id: ::String, transfer_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListRefundsResponse) }
1308
1308
  def list_refunds(account_id:, transfer_id:, x_moov_version: nil, timeout_ms: nil)
1309
1309
  # list_refunds - Get a list of refunds for a card transfer.
1310
- #
1310
+ #
1311
1311
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1312
1312
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
1313
1313
  request = Models::Operations::ListRefundsRequest.new(
@@ -1429,7 +1429,7 @@ module Moov
1429
1429
  sig { params(transfer_id: ::String, account_id: ::String, refund_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetRefundResponse) }
1430
1430
  def get_refund(transfer_id:, account_id:, refund_id:, x_moov_version: nil, timeout_ms: nil)
1431
1431
  # get_refund - Get details of a refund for a card transfer.
1432
- #
1432
+ #
1433
1433
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1434
1434
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
1435
1435
  request = Models::Operations::GetRefundRequest.new(
@@ -1554,7 +1554,7 @@ module Moov
1554
1554
  # create_reversal - Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
1555
1555
  # Read our [reversals guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/)
1556
1556
  # to learn more.
1557
- #
1557
+ #
1558
1558
  # To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
1559
1559
  # to specify the `/accounts/{accountID}/transfers.write` scope.
1560
1560
  url, params = @sdk_configuration.get_server_details
@@ -1571,7 +1571,7 @@ module Moov
1571
1571
  req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_reversal, :json)
1572
1572
  headers['content-type'] = req_content_type
1573
1573
 
1574
- if form && !form.empty?
1574
+ if form
1575
1575
  body = Utils.encode_form(form)
1576
1576
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1577
1577
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -42,9 +42,9 @@ module Moov
42
42
  sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetUnderwritingResponse) }
43
43
  def get(account_id:, x_moov_version: nil, timeout_ms: nil)
44
44
  # get - Retrieve underwriting associated with a given Moov account.
45
- #
45
+ #
46
46
  # Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) to learn more.
47
- #
47
+ #
48
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
49
49
  # you'll need to specify the `/accounts/{accountID}/profile.read` scope.
50
50
  request = Models::Operations::GetUnderwritingRequest.new(
@@ -165,9 +165,9 @@ module Moov
165
165
  sig { params(update_underwriting: Models::Components::UpdateUnderwriting, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpsertUnderwritingResponse) }
166
166
  def upsert(update_underwriting:, account_id:, x_moov_version: nil, timeout_ms: nil)
167
167
  # upsert - Create or update the account's underwriting.
168
- #
168
+ #
169
169
  # Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) to learn more.
170
- #
170
+ #
171
171
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
172
172
  # you'll need to specify the `/accounts/{accountID}/profile.write` scope.
173
173
  request = Models::Operations::UpsertUnderwritingRequest.new(
@@ -190,7 +190,7 @@ module Moov
190
190
  headers['content-type'] = req_content_type
191
191
  raise StandardError, 'request body is required' if data.nil? && form.nil?
192
192
 
193
- if form && !form.empty?
193
+ if form
194
194
  body = Utils.encode_form(form)
195
195
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
196
196
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -29,6 +29,8 @@ module Moov
29
29
 
30
30
  return serialize_content_type(SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], request) if !request.respond_to?(:fields) || !request.respond_to?(request_field_name)
31
31
 
32
+ request_val = request.send(request_field_name)
33
+
32
34
  request_metadata = T.let(nil, T.nilable(T::Array[T::Array[T.any(T::Array[T.nilable(String)], String)]]))
33
35
  T.unsafe(request).fields.each do |f|
34
36
  if f.name == request_field_name
@@ -36,14 +38,7 @@ module Moov
36
38
  break
37
39
  end
38
40
  end
39
- if request_metadata.nil?
40
- # Field name collision: model has a field matching request_field_name but without :request metadata.
41
- # Serialize the entire object as the request body.
42
- return serialize_content_type(SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], request)
43
- end
44
-
45
- request_val = request.send(request_field_name)
46
- return ['', nil, nil] if request_val.nil?
41
+ raise StandardError, 'invalid request type' if request_metadata.nil?
47
42
 
48
43
  serialize_content_type(
49
44
  request_metadata.fetch(:media_type, 'application/octet-stream'), request_val
@@ -37,16 +37,6 @@ module Moov
37
37
 
38
38
  sig { params(req: Faraday::Request, option: Object).void }
39
39
  def self._parse_security_option(req, option)
40
- # Check if this option uses basic auth (needs the whole object, not individual fields)
41
- first_field = T.unsafe(option).fields.first
42
- if first_field
43
- first_meta = first_field.metadata[:security]
44
- if first_meta && first_meta[:type] == 'http' && first_meta[:sub_type] == 'basic'
45
- _parse_security_scheme(req, first_meta, option)
46
- return
47
- end
48
- end
49
-
50
40
  T.unsafe(option).fields.each do |opt_field|
51
41
  metadata = opt_field.metadata[:security]
52
42
  next if metadata.nil? || !metadata.include?(:scheme)
@@ -24,7 +24,7 @@ module Moov
24
24
  if serialization != ''
25
25
  serialized_params = _get_serialized_params(param_metadata, f_name, param)
26
26
  serialized_params.each do |k, v|
27
- path = path.gsub("{#{k}}", v.join(', '))
27
+ path = path.sub("{#{k}}", v.join(', '))
28
28
  end
29
29
  else
30
30
  if param.is_a? Array
@@ -32,7 +32,7 @@ module Moov
32
32
  param.each do |pp_val|
33
33
  pp_vals.append(pp_val.to_s)
34
34
  end
35
- path = path.gsub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
35
+ path = path.sub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
36
36
  elsif param.is_a? Hash
37
37
  pp_vals = []
38
38
  param.each do |pp_key, pp_val|
@@ -44,7 +44,7 @@ module Moov
44
44
  pp_vals.append("#{pp_key},#{value}")
45
45
  end
46
46
  end
47
- path = path.gsub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
47
+ path = path.sub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
48
48
  elsif param.class.include?(::Crystalline::MetadataFields)
49
49
  pp_vals = []
50
50
  attrs = T.unsafe(param).fields.filter { |field| field.name && param.respond_to?(field.name.to_sym) }.map(&:name)
@@ -72,9 +72,9 @@ module Moov
72
72
  pp_vals.append("#{parm_name},#{param_field_val}")
73
73
  end
74
74
  end
75
- path = path.gsub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
75
+ path = path.sub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
76
76
  else
77
- path = path.gsub("{#{param_metadata.fetch(:field_name, f.name)}}", _encode_path_param(val_to_string(param)))
77
+ path = path.sub("{#{param_metadata.fetch(:field_name, f.name)}}", param.to_s)
78
78
  end
79
79
  end
80
80
  end
@@ -82,12 +82,6 @@ module Moov
82
82
  server_url.delete_suffix('/') + path
83
83
  end
84
84
 
85
- # Percent-encode characters that are invalid in URI path segments
86
- sig { params(value: String).returns(String) }
87
- def self._encode_path_param(value)
88
- value.gsub(/[<>{}\[\]|\\^`\s?#%]/) { |c| format('%%%02X', c.ord) }
89
- end
90
-
91
85
  sig { params(url_with_params: String, params: T::Hash[Symbol, T.any(String, T::Enum)]).returns(String) }
92
86
  def self.template_url(url_with_params, params)
93
87
  params.each do |key, value|