moov_ruby 26.4.21 → 26.7.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 (490) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/module.rb +1 -1
  3. data/lib/moov/account_terminal_applications.rb +16 -16
  4. data/lib/moov/accounts.rb +54 -52
  5. data/lib/moov/adjustments.rb +8 -8
  6. data/lib/moov/apple_pay.rb +20 -20
  7. data/lib/moov/authentication.rb +8 -8
  8. data/lib/moov/avatars.rb +5 -5
  9. data/lib/moov/bank_accounts.rb +37 -37
  10. data/lib/moov/branding.rb +12 -12
  11. data/lib/moov/capabilities.rb +20 -20
  12. data/lib/moov/card_issuing.rb +34 -28
  13. data/lib/moov/cards.rb +178 -20
  14. data/lib/moov/disputes.rb +44 -44
  15. data/lib/moov/end_to_end_encryption.rb +8 -8
  16. data/lib/moov/enriched_address.rb +5 -5
  17. data/lib/moov/enriched_profile.rb +5 -5
  18. data/lib/moov/fee_plans.rb +40 -40
  19. data/lib/moov/files.rb +12 -12
  20. data/lib/moov/google_pay.rb +4 -4
  21. data/lib/moov/images.rb +29 -29
  22. data/lib/moov/industries.rb +4 -4
  23. data/lib/moov/institutions.rb +10 -10
  24. data/lib/moov/invoices.rb +28 -208
  25. data/lib/moov/issuing_transactions.rb +20 -20
  26. data/lib/moov/models/components/account.rb +2 -2
  27. data/lib/moov/models/components/accountnameverification.rb +4 -4
  28. data/lib/moov/models/components/accounttype.rb +1 -3
  29. data/lib/moov/models/components/accountverificationstatus.rb +1 -3
  30. data/lib/moov/models/components/achreturncode.rb +1 -3
  31. data/lib/moov/models/components/achtransactiondetails.rb +3 -3
  32. data/lib/moov/models/components/achtransactionstatus.rb +1 -3
  33. data/lib/moov/models/components/addcapabilities.rb +1 -5
  34. data/lib/moov/models/components/adjustmentfees.rb +15 -11
  35. data/lib/moov/models/components/adjustmentfees.rbi +4 -4
  36. data/lib/moov/models/components/amountdecimalrange.rb +36 -0
  37. data/lib/moov/models/components/amountdecimalrange.rbi +15 -0
  38. data/lib/moov/models/components/amountdecimalrangeupdate.rb +36 -0
  39. data/lib/moov/models/components/amountdecimalrangeupdate.rbi +15 -0
  40. data/lib/moov/models/components/applepayresponse.rb +2 -2
  41. data/lib/moov/models/components/applicationscope.rb +2 -4
  42. data/lib/moov/models/components/authmethod.rb +1 -3
  43. data/lib/moov/models/components/authorizeduser.rb +36 -0
  44. data/lib/moov/models/components/authorizeduser.rbi +15 -0
  45. data/lib/moov/models/components/authtokenrequest.rb +2 -6
  46. data/lib/moov/models/components/authtokenrequest.rbi +0 -2
  47. data/lib/moov/models/components/bankaccount.rb +4 -4
  48. data/lib/moov/models/components/bankaccountexception.rb +2 -2
  49. data/lib/moov/models/components/bankaccountholdertype.rb +1 -3
  50. data/lib/moov/models/components/bankaccountintegration.rb +2 -2
  51. data/lib/moov/models/components/bankaccountstatus.rb +1 -3
  52. data/lib/moov/models/components/bankaccountstatusreason.rb +1 -3
  53. data/lib/moov/models/components/bankaccounttype.rb +1 -3
  54. data/lib/moov/models/components/bankaccountverification.rb +2 -2
  55. data/lib/moov/models/components/bankaccountverificationcreated.rb +2 -2
  56. data/lib/moov/models/components/bankaccountverificationmethod.rb +1 -3
  57. data/lib/moov/models/components/bankaccountverificationstatus.rb +1 -3
  58. data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
  59. data/lib/moov/models/components/billablefee.rb +2 -2
  60. data/lib/moov/models/components/billingsummary.rb +4 -8
  61. data/lib/moov/models/components/billingsummary.rbi +0 -2
  62. data/lib/moov/models/components/businesspresence.rb +1 -3
  63. data/lib/moov/models/components/businessprofile.rb +2 -2
  64. data/lib/moov/models/components/businesstype.rb +1 -3
  65. data/lib/moov/models/components/calltoaction.rb +1 -3
  66. data/lib/moov/models/components/cancellation.rb +2 -2
  67. data/lib/moov/models/components/cancellationstatus.rb +1 -3
  68. data/lib/moov/models/components/capability.rb +3 -11
  69. data/lib/moov/models/components/capabilityid.rb +2 -13
  70. data/lib/moov/models/components/capabilitystatus.rb +1 -3
  71. data/lib/moov/models/components/card.rb +4 -4
  72. data/lib/moov/models/components/cardaccountupdater.rb +1 -1
  73. data/lib/moov/models/components/cardacquiringmodel.rb +1 -3
  74. data/lib/moov/models/components/cardacquiringrefund.rb +1 -1
  75. data/lib/moov/models/components/cardbrand.rb +1 -3
  76. data/lib/moov/models/components/cardbrandfees.rb +2 -6
  77. data/lib/moov/models/components/cardbrandfees.rbi +0 -2
  78. data/lib/moov/models/components/cardissuingnetwork.rb +1 -3
  79. data/lib/moov/models/components/cardmetadata.rb +79 -0
  80. data/lib/moov/models/components/cardmetadata.rbi +35 -0
  81. data/lib/moov/models/components/cardmetadatarequest.rb +38 -0
  82. data/lib/moov/models/components/cardmetadatarequest.rbi +15 -0
  83. data/lib/moov/models/components/cardtransactiondetails.rb +5 -13
  84. data/lib/moov/models/components/cardtransactiondetails.rbi +0 -4
  85. data/lib/moov/models/components/cardtransactionfailurecode.rb +1 -3
  86. data/lib/moov/models/components/cardtransactionstatus.rb +1 -5
  87. data/lib/moov/models/components/cardtype.rb +1 -3
  88. data/lib/moov/models/components/cardupdatereason.rb +1 -3
  89. data/lib/moov/models/components/cardverification.rb +3 -3
  90. data/lib/moov/models/components/cardverificationresult.rb +1 -3
  91. data/lib/moov/models/components/collectfundscardpayments.rb +1 -1
  92. data/lib/moov/models/components/collectionpaymentmethodtype.rb +1 -3
  93. data/lib/moov/models/components/createaccount.rb +3 -7
  94. data/lib/moov/models/components/createaccounttype.rb +1 -3
  95. data/lib/moov/models/components/createauthorizeduser.rb +40 -0
  96. data/lib/moov/models/components/createauthorizeduser.rbi +17 -0
  97. data/lib/moov/models/components/createauthorizedusererror.rb +40 -0
  98. data/lib/moov/models/components/createauthorizedusererror.rbi +17 -0
  99. data/lib/moov/models/components/createauthorizeduserupdate.rb +40 -0
  100. data/lib/moov/models/components/createauthorizeduserupdate.rbi +17 -0
  101. data/lib/moov/models/components/createbusinessprofile.rb +2 -2
  102. data/lib/moov/models/components/createdtransfer.rb +6 -18
  103. data/lib/moov/models/components/createdtransfer.rbi +0 -4
  104. data/lib/moov/models/components/createevidencetext.rb +1 -1
  105. data/lib/moov/models/components/createfeeplanagreement.rb +3 -13
  106. data/lib/moov/models/components/createfeeplanagreement.rbi +0 -2
  107. data/lib/moov/models/components/createinvoice.rb +2 -14
  108. data/lib/moov/models/components/createinvoice.rbi +0 -6
  109. data/lib/moov/models/components/createpaymentlink.rb +16 -16
  110. data/lib/moov/models/components/createpaymentlink.rbi +4 -4
  111. data/lib/moov/models/components/createpaymentlinkamountdetails.rb +32 -0
  112. data/lib/moov/models/components/createpaymentlinkamountdetails.rbi +13 -0
  113. data/lib/moov/models/components/{webhookdataeventtest.rb → createpaymentlinkamountdetailsvalidationerror.rb} +7 -7
  114. data/lib/moov/models/components/{invoicenotificationlimitedchannel.rbi → createpaymentlinkamountdetailsvalidationerror.rbi} +4 -6
  115. data/lib/moov/models/components/createrefund.rb +2 -2
  116. data/lib/moov/models/components/createreversal.rb +1 -4
  117. data/lib/moov/models/components/createsweepconfig.rb +3 -7
  118. data/lib/moov/models/components/createsweepconfig.rbi +0 -2
  119. data/lib/moov/models/components/createterminalapplication.rb +1 -1
  120. data/lib/moov/models/components/createtippresets.rb +1 -1
  121. data/lib/moov/models/components/createtransfer.rb +2 -6
  122. data/lib/moov/models/components/createtransfer.rbi +0 -2
  123. data/lib/moov/models/components/createtransferamountdetails.rb +6 -2
  124. data/lib/moov/models/components/createtransferamountdetails.rbi +2 -0
  125. data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rb +6 -2
  126. data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rbi +2 -0
  127. data/lib/moov/models/components/createtransferdestinationcard.rb +2 -6
  128. data/lib/moov/models/components/createtransferdestinationcard.rbi +0 -2
  129. data/lib/moov/models/components/createtransfersourceach.rb +2 -2
  130. data/lib/moov/models/components/createtransfersourcecard.rb +1 -1
  131. data/lib/moov/models/components/createwebhook.rb +1 -1
  132. data/lib/moov/models/components/debitholdperiod.rb +1 -3
  133. data/lib/moov/models/components/disbursementpaymentmethodtype.rb +1 -3
  134. data/lib/moov/models/components/dispute.rb +2 -2
  135. data/lib/moov/models/components/disputeevidenceresponse.rb +1 -1
  136. data/lib/moov/models/components/disputephase.rb +1 -3
  137. data/lib/moov/models/components/disputestatus.rb +1 -3
  138. data/lib/moov/models/components/document.rb +1 -1
  139. data/lib/moov/models/components/documenttype.rb +1 -3
  140. data/lib/moov/models/components/domesticpullfromcard.rb +1 -3
  141. data/lib/moov/models/components/domesticpushtocard.rb +1 -3
  142. data/lib/moov/models/components/estimatedactivity.rb +1 -1
  143. data/lib/moov/models/components/evidencetextresponse.rb +1 -1
  144. data/lib/moov/models/components/evidencetype.rb +1 -3
  145. data/lib/moov/models/components/evidenceuploadresponse.rb +1 -1
  146. data/lib/moov/models/components/facilitatorfee.rb +2 -2
  147. data/lib/moov/models/components/feecategory.rb +1 -3
  148. data/lib/moov/models/components/feemodel.rb +1 -3
  149. data/lib/moov/models/components/feeplan.rb +1 -1
  150. data/lib/moov/models/components/feeplanagreement.rb +4 -12
  151. data/lib/moov/models/components/feeplanagreement.rbi +0 -4
  152. data/lib/moov/models/components/feeplanagreementstatus.rb +1 -3
  153. data/lib/moov/models/components/filedetails.rb +3 -3
  154. data/lib/moov/models/components/filepurpose.rb +2 -4
  155. data/lib/moov/models/components/filestatus.rb +1 -3
  156. data/lib/moov/models/components/fulfillment.rb +2 -2
  157. data/lib/moov/models/components/fulfillmentdetails.rb +1 -1
  158. data/lib/moov/models/components/fulfillmentmethod.rb +1 -3
  159. data/lib/moov/models/components/fulfillmenttimeframe.rb +1 -3
  160. data/lib/moov/models/components/fullissuedcard.rb +18 -31
  161. data/lib/moov/models/components/fullissuedcard.rbi +4 -10
  162. data/lib/moov/models/components/geographicreach.rb +1 -3
  163. data/lib/moov/models/components/googlepayresponse.rb +3 -3
  164. data/lib/moov/models/components/instantbankfailurecode.rb +1 -3
  165. data/lib/moov/models/components/instantbanknetwork.rb +1 -3
  166. data/lib/moov/models/components/instantbanktransactiondetails.rb +3 -3
  167. data/lib/moov/models/components/instantbanktransactionstatus.rb +1 -3
  168. data/lib/moov/models/components/invoice.rb +4 -12
  169. data/lib/moov/models/components/invoice.rbi +0 -4
  170. data/lib/moov/models/components/invoicepayment.rb +1 -1
  171. data/lib/moov/models/components/invoicepaymenttype.rb +1 -3
  172. data/lib/moov/models/components/invoicestatus.rb +1 -3
  173. data/lib/moov/models/components/issuedcard.rb +17 -30
  174. data/lib/moov/models/components/issuedcard.rbi +4 -10
  175. data/lib/moov/models/components/issuedcardauthorization.rb +4 -17
  176. data/lib/moov/models/components/issuedcardauthorization.rbi +0 -6
  177. data/lib/moov/models/components/issuedcardauthorizationevent.rb +4 -9
  178. data/lib/moov/models/components/issuedcardauthorizationevent.rbi +0 -2
  179. data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +1 -3
  180. data/lib/moov/models/components/issuedcardeventtype.rb +1 -3
  181. data/lib/moov/models/components/issuedcardstate.rb +8 -10
  182. data/lib/moov/models/components/issuedcardtransaction.rb +2 -10
  183. data/lib/moov/models/components/issuedcardtransaction.rbi +0 -4
  184. data/lib/moov/models/components/issuingauthorizationstatus.rb +1 -3
  185. data/lib/moov/models/components/issuingcontrols.rb +1 -1
  186. data/lib/moov/models/components/issuingintervallimit.rb +1 -1
  187. data/lib/moov/models/components/issuingvelocitylimit.rb +1 -1
  188. data/lib/moov/models/components/jsonwebkey.rb +1 -1
  189. data/lib/moov/models/components/linkedapplepaypaymentmethod.rb +1 -1
  190. data/lib/moov/models/components/linkedgooglepaypaymentmethod.rb +1 -1
  191. data/lib/moov/models/components/manualtermsofservice.rb +1 -1
  192. data/lib/moov/models/components/manualtermsofserviceupdate.rb +1 -1
  193. data/lib/moov/models/components/mode.rb +1 -3
  194. data/lib/moov/models/components/monthlyvolumerange.rb +1 -3
  195. data/lib/moov/models/components/moovfee.rb +1 -1
  196. data/lib/moov/models/components/occurrencesresponse.rb +2 -2
  197. data/lib/moov/models/components/occurrencestatus.rb +1 -3
  198. data/lib/moov/models/components/onboardinginvite.rb +2 -2
  199. data/lib/moov/models/components/onboardinginviterequest.rb +1 -1
  200. data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
  201. data/lib/moov/models/components/partnerpricingagreement.rb +7 -15
  202. data/lib/moov/models/components/partnerpricingagreement.rbi +0 -4
  203. data/lib/moov/models/components/patchbusiness.rb +2 -2
  204. data/lib/moov/models/components/patchsweepconfig.rb +2 -6
  205. data/lib/moov/models/components/patchsweepconfig.rbi +0 -2
  206. data/lib/moov/models/components/patchtransfer.rb +1 -1
  207. data/lib/moov/models/components/patchwallet.rb +1 -1
  208. data/lib/moov/models/components/paymentlink.rb +19 -19
  209. data/lib/moov/models/components/paymentlink.rbi +4 -4
  210. data/lib/moov/models/components/paymentlinkamountdetails.rb +32 -0
  211. data/lib/moov/models/components/paymentlinkamountdetails.rbi +13 -0
  212. data/lib/moov/models/components/paymentlinkdisplayoptions.rb +1 -1
  213. data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +1 -1
  214. data/lib/moov/models/components/paymentlinkpaymentdetails.rb +14 -2
  215. data/lib/moov/models/components/paymentlinkpaymentdetails.rbi +6 -0
  216. data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rb +19 -0
  217. data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rbi +11 -0
  218. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb +14 -2
  219. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rbi +6 -0
  220. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rb +19 -0
  221. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rbi +11 -0
  222. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +3 -7
  223. data/lib/moov/models/components/paymentlinkpayoutdetails.rbi +0 -2
  224. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +3 -7
  225. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rbi +0 -2
  226. data/lib/moov/models/components/paymentlinkstatus.rb +1 -3
  227. data/lib/moov/models/components/paymentlinktype.rb +1 -3
  228. data/lib/moov/models/components/paymentmethodsbankaccount.rb +3 -3
  229. data/lib/moov/models/components/paymentmethodscard.rb +4 -4
  230. data/lib/moov/models/components/paymentmethodswallet.rb +1 -2
  231. data/lib/moov/models/components/paymentmethodtype.rb +1 -3
  232. data/lib/moov/models/components/payoutdetailserror.rb +2 -6
  233. data/lib/moov/models/components/payoutdetailserror.rbi +0 -2
  234. data/lib/moov/models/components/pendinglitigation.rb +1 -3
  235. data/lib/moov/models/components/primaryregulator.rb +1 -3
  236. data/lib/moov/models/components/puttippresets.rb +1 -1
  237. data/lib/moov/models/components/refundcarddetails.rb +2 -2
  238. data/lib/moov/models/components/refundcardstatus.rb +1 -4
  239. data/lib/moov/models/components/refundpolicy.rb +1 -3
  240. data/lib/moov/models/components/refundstatus.rb +1 -3
  241. data/lib/moov/models/components/requestcard.rb +18 -18
  242. data/lib/moov/models/components/requestcard.rbi +8 -8
  243. data/lib/moov/models/components/requirementerror.rb +2 -2
  244. data/lib/moov/models/components/requirementerrorcode.rb +1 -3
  245. data/lib/moov/models/components/requirementid.rb +1 -10
  246. data/lib/moov/models/components/resolutionlink.rb +1 -1
  247. data/lib/moov/models/components/resolutionlinkstatus.rb +1 -3
  248. data/lib/moov/models/components/returnpolicytype.rb +1 -3
  249. data/lib/moov/models/components/reversedwithcancellation.rb +1 -1
  250. data/lib/moov/models/components/rtprejectioncode.rb +1 -3
  251. data/lib/moov/models/components/schedulelistresponse.rb +1 -1
  252. data/lib/moov/models/components/scheduleresponse.rb +1 -1
  253. data/lib/moov/models/components/seccode.rb +1 -3
  254. data/lib/moov/models/components/statement.rb +2 -6
  255. data/lib/moov/models/components/statement.rbi +0 -2
  256. data/lib/moov/models/components/sweep.rb +1 -1
  257. data/lib/moov/models/components/sweepconfig.rb +5 -9
  258. data/lib/moov/models/components/sweepconfig.rbi +0 -2
  259. data/lib/moov/models/components/sweepconfigpaymentmethod.rb +1 -1
  260. data/lib/moov/models/components/sweepconfigstatus.rb +1 -3
  261. data/lib/moov/models/components/sweepstatus.rb +1 -3
  262. data/lib/moov/models/components/sweepsubtotal.rb +1 -1
  263. data/lib/moov/models/components/terminalapplication.rb +2 -2
  264. data/lib/moov/models/components/terminalapplicationplatform.rb +1 -3
  265. data/lib/moov/models/components/terminalapplicationstatus.rb +1 -3
  266. data/lib/moov/models/components/terminalcard.rb +2 -2
  267. data/lib/moov/models/components/termsofservice.rb +1 -1
  268. data/lib/moov/models/components/ticket.rb +1 -1
  269. data/lib/moov/models/components/ticketstatus.rb +1 -3
  270. data/lib/moov/models/components/tipcalculationbasis.rb +1 -3
  271. data/lib/moov/models/components/tippresets.rb +1 -1
  272. data/lib/moov/models/components/transactionsource.rb +1 -3
  273. data/lib/moov/models/components/transfer.rb +6 -18
  274. data/lib/moov/models/components/transfer.rbi +0 -4
  275. data/lib/moov/models/components/transferamountdetails.rb +6 -2
  276. data/lib/moov/models/components/transferamountdetails.rbi +2 -0
  277. data/lib/moov/models/components/transferconfig.rb +2 -6
  278. data/lib/moov/models/components/transferconfig.rbi +0 -2
  279. data/lib/moov/models/components/transferdestination.rb +3 -9
  280. data/lib/moov/models/components/transferdestination.rbi +0 -2
  281. data/lib/moov/models/components/transferfailurereason.rb +1 -3
  282. data/lib/moov/models/components/transferparty.rb +1 -3
  283. data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +3 -3
  284. data/lib/moov/models/components/transferpaymentmethodscard.rb +4 -4
  285. data/lib/moov/models/components/transferpaymentmethodswallet.rb +1 -2
  286. data/lib/moov/models/components/transferpaymentmethodtype.rb +1 -3
  287. data/lib/moov/models/components/transfersource.rb +1 -1
  288. data/lib/moov/models/components/transferstatus.rb +1 -3
  289. data/lib/moov/models/components/transferterminalcard.rb +2 -2
  290. data/lib/moov/models/components/underwriting.rb +4 -4
  291. data/lib/moov/models/components/underwritingstatus.rb +1 -3
  292. data/lib/moov/models/components/updateevidence.rb +1 -1
  293. data/lib/moov/models/components/updateinvoice.rb +9 -13
  294. data/lib/moov/models/components/updateinvoice.rbi +0 -2
  295. data/lib/moov/models/components/updateissuedcard.rb +10 -16
  296. data/lib/moov/models/components/updateissuedcard.rbi +4 -6
  297. data/lib/moov/models/components/updateissuedcardstate.rb +1 -5
  298. data/lib/moov/models/components/updatepaymentlink.rb +7 -7
  299. data/lib/moov/models/components/updatepaymentlink.rbi +2 -2
  300. data/lib/moov/models/components/updatepaymentlinkamountdetails.rb +32 -0
  301. data/lib/moov/models/components/updatepaymentlinkamountdetails.rbi +13 -0
  302. data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rb +32 -0
  303. data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rbi +13 -0
  304. data/lib/moov/models/components/updatewebhook.rb +1 -1
  305. data/lib/moov/models/components/upsertunderwriting.rb +4 -4
  306. data/lib/moov/models/components/use.rb +1 -3
  307. data/lib/moov/models/components/verification.rb +3 -3
  308. data/lib/moov/models/components/verificationstatus.rb +1 -3
  309. data/lib/moov/models/components/verificationstatusdetail.rb +1 -3
  310. data/lib/moov/models/components/wallet.rb +2 -3
  311. data/lib/moov/models/components/walletstatus.rb +1 -3
  312. data/lib/moov/models/components/wallettransaction.rb +3 -3
  313. data/lib/moov/models/components/wallettransactionsourcetype.rb +1 -3
  314. data/lib/moov/models/components/wallettransactionstatus.rb +1 -3
  315. data/lib/moov/models/components/wallettransactiontype.rb +1 -3
  316. data/lib/moov/models/components/wallettype.rb +1 -5
  317. data/lib/moov/models/components/webhook.rb +1 -1
  318. data/lib/moov/models/components/webhookdatabankaccountcreated.rb +1 -1
  319. data/lib/moov/models/components/webhookdatabankaccountdeleted.rb +2 -6
  320. data/lib/moov/models/components/webhookdatabankaccountdeleted.rbi +0 -2
  321. data/lib/moov/models/components/webhookdatabankaccountupdated.rb +2 -2
  322. data/lib/moov/models/components/webhookdatacancellationcreated.rb +1 -1
  323. data/lib/moov/models/components/webhookdatacancellationupdated.rb +1 -1
  324. data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -10
  325. data/lib/moov/models/components/webhookdatacapabilityupdated.rb +3 -11
  326. data/lib/moov/models/components/webhookdatacardautoupdated.rb +1 -1
  327. data/lib/moov/models/components/webhookdatadisputecreated.rb +2 -2
  328. data/lib/moov/models/components/webhookdatadisputeupdated.rb +2 -2
  329. data/lib/moov/models/components/webhookdatainvoiceupdated.rb +1 -1
  330. data/lib/moov/models/components/webhookdatarefundupdated.rb +1 -1
  331. data/lib/moov/models/components/webhookdatasweepcreated.rb +2 -6
  332. data/lib/moov/models/components/webhookdatasweepcreated.rbi +0 -2
  333. data/lib/moov/models/components/webhookdatasweepupdated.rb +3 -7
  334. data/lib/moov/models/components/webhookdatasweepupdated.rbi +0 -2
  335. data/lib/moov/models/components/webhookdataterminalapplicationcreated.rb +1 -1
  336. data/lib/moov/models/components/webhookdataterminalapplicationupdated.rb +1 -1
  337. data/lib/moov/models/components/webhookdataticketupdated.rb +1 -1
  338. data/lib/moov/models/components/webhookdatatransferstatus.rb +0 -4
  339. data/lib/moov/models/components/webhookdatawallettransactionupdated.rb +1 -1
  340. data/lib/moov/models/components/webhookdatawalletupdated.rb +1 -1
  341. data/lib/moov/models/components/webhookevent.rb +3 -3
  342. data/lib/moov/models/components/webhookeventtype.rb +1 -5
  343. data/lib/moov/models/components/webhookstatus.rb +1 -3
  344. data/lib/moov/models/components.rb +16 -27
  345. data/lib/moov/models/errors/cardacquiringrefund_error.rb +1 -1
  346. data/lib/moov/models/errors/cardmetadatarequesterror.rb +44 -0
  347. data/lib/moov/models/errors/cardmetadatarequesterror.rbi +19 -0
  348. data/lib/moov/models/errors/createinvoiceerror.rb +2 -14
  349. data/lib/moov/models/errors/createinvoiceerror.rbi +0 -6
  350. data/lib/moov/models/errors/createpaymentlinkerror.rb +6 -6
  351. data/lib/moov/models/errors/createpaymentlinkerror.rbi +2 -2
  352. data/lib/moov/models/errors/createsweepconfigerror.rb +2 -6
  353. data/lib/moov/models/errors/createsweepconfigerror.rbi +0 -2
  354. data/lib/moov/models/errors/listtransfersvalidationerror.rb +2 -6
  355. data/lib/moov/models/errors/listtransfersvalidationerror.rbi +0 -2
  356. data/lib/moov/models/errors/patchsweepconfigerror.rb +2 -6
  357. data/lib/moov/models/errors/patchsweepconfigerror.rbi +0 -2
  358. data/lib/moov/models/errors/requestcarderror.rb +14 -14
  359. data/lib/moov/models/errors/requestcarderror.rbi +8 -8
  360. data/lib/moov/models/errors/transfer_error.rb +6 -18
  361. data/lib/moov/models/errors/transfer_error.rbi +0 -4
  362. data/lib/moov/models/errors/transfervalidationerror.rb +2 -6
  363. data/lib/moov/models/errors/transfervalidationerror.rbi +0 -2
  364. data/lib/moov/models/errors/updateinvoiceerror.rb +2 -6
  365. data/lib/moov/models/errors/updateinvoiceerror.rbi +0 -2
  366. data/lib/moov/models/errors/updateissuedcarderror.rb +8 -12
  367. data/lib/moov/models/errors/updateissuedcarderror.rbi +4 -6
  368. data/lib/moov/models/errors/updatepaymentlinkerror.rb +6 -6
  369. data/lib/moov/models/errors/updatepaymentlinkerror.rbi +2 -2
  370. data/lib/moov/models/errors.rb +1 -2
  371. data/lib/moov/models/operations/createcancellation_request.rb +2 -7
  372. data/lib/moov/models/operations/createcancellation_request.rbi +0 -2
  373. data/lib/moov/models/operations/disablecapability_request.rb +1 -9
  374. data/lib/moov/models/operations/getcapability_request.rb +1 -9
  375. data/lib/moov/models/operations/{listcancellations_response.rb → getcardmetadata_response.rb} +6 -6
  376. data/lib/moov/models/operations/{createinvoicenotification_response.rbi → getcardmetadata_response.rbi} +4 -2
  377. data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
  378. data/lib/moov/models/operations/linkbankaccount_request.rb +1 -1
  379. data/lib/moov/models/operations/listaccounts_request.rb +1 -1
  380. data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +1 -1
  381. data/lib/moov/models/operations/listdisputes_request.rb +1 -1
  382. data/lib/moov/models/operations/listfeeplanagreements_request.rb +1 -1
  383. data/lib/moov/models/operations/listfeerevenue_request.rb +1 -1
  384. data/lib/moov/models/operations/listinvoices_request.rb +1 -1
  385. data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +1 -1
  386. data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +3 -7
  387. data/lib/moov/models/operations/listissuedcardauthorizations_request.rbi +0 -2
  388. data/lib/moov/models/operations/listissuedcards_request.rb +4 -8
  389. data/lib/moov/models/operations/listissuedcards_request.rbi +0 -2
  390. data/lib/moov/models/operations/listissuedcardtransactions_request.rb +3 -11
  391. data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +0 -4
  392. data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +1 -1
  393. data/lib/moov/models/operations/listpaymentlinks_request.rb +1 -1
  394. data/lib/moov/models/operations/listproducts_request.rb +1 -1
  395. data/lib/moov/models/operations/listresidualfees_request.rb +1 -1
  396. data/lib/moov/models/operations/listresiduals_request.rb +1 -1
  397. data/lib/moov/models/operations/listschedules_request.rb +1 -1
  398. data/lib/moov/models/operations/liststatements_request.rb +1 -1
  399. data/lib/moov/models/operations/listsweeps_request.rb +1 -1
  400. data/lib/moov/models/operations/listtickets_request.rb +1 -1
  401. data/lib/moov/models/operations/listtransfers_request.rb +3 -20
  402. data/lib/moov/models/operations/listtransfers_request.rbi +0 -8
  403. data/lib/moov/models/operations/listtransfers_response.rb +1 -1
  404. data/lib/moov/models/operations/listwallets_request.rb +1 -1
  405. data/lib/moov/models/operations/listwallettransactions_request.rb +1 -1
  406. data/lib/moov/models/operations/retrievefees_request.rb +1 -1
  407. data/lib/moov/models/operations.rb +1 -4
  408. data/lib/moov/onboarding.rb +16 -16
  409. data/lib/moov/payment_links.rb +24 -24
  410. data/lib/moov/payment_methods.rb +8 -8
  411. data/lib/moov/ping.rb +4 -4
  412. data/lib/moov/products.rb +20 -20
  413. data/lib/moov/receipts.rb +8 -8
  414. data/lib/moov/representatives.rb +20 -20
  415. data/lib/moov/resolution_links.rb +16 -16
  416. data/lib/moov/scheduling.rb +24 -24
  417. data/lib/moov/sdkconfiguration.rb +4 -4
  418. data/lib/moov/statements.rb +8 -8
  419. data/lib/moov/support.rb +20 -20
  420. data/lib/moov/sweeps.rb +24 -24
  421. data/lib/moov/terminal_applications.rb +20 -20
  422. data/lib/moov/transfer_config.rb +12 -12
  423. data/lib/moov/transfers.rb +56 -192
  424. data/lib/moov/underwriting.rb +12 -12
  425. data/lib/moov/utils/retries.rb +1 -43
  426. data/lib/moov/utils/utils.rb +2 -6
  427. data/lib/moov/wallet_transactions.rb +8 -8
  428. data/lib/moov/wallets.rb +16 -16
  429. data/lib/moov/webhooks.rb +32 -32
  430. metadata +40 -70
  431. data/lib/moov/models/components/billingaddress.rb +0 -52
  432. data/lib/moov/models/components/billingaddress.rbi +0 -23
  433. data/lib/moov/models/components/billingadjustment.rb +0 -40
  434. data/lib/moov/models/components/billingadjustment.rbi +0 -17
  435. data/lib/moov/models/components/billingsummary_adjustmentfees.rb +0 -40
  436. data/lib/moov/models/components/billingsummary_adjustmentfees.rbi +0 -15
  437. data/lib/moov/models/components/createinvoicenotification.rb +0 -32
  438. data/lib/moov/models/components/createinvoicenotification.rbi +0 -13
  439. data/lib/moov/models/components/invoicenotificationlimitedchannel.rb +0 -36
  440. data/lib/moov/models/components/invoicepaymentoptions.rb +0 -40
  441. data/lib/moov/models/components/invoicepaymentoptions.rbi +0 -17
  442. data/lib/moov/models/components/invoicepaymentoptionserror.rb +0 -40
  443. data/lib/moov/models/components/invoicepaymentoptionserror.rbi +0 -17
  444. data/lib/moov/models/components/invoicepaymentoptionsupdate.rb +0 -40
  445. data/lib/moov/models/components/invoicepaymentoptionsupdate.rbi +0 -17
  446. data/lib/moov/models/components/issuingdeclinereason.rb +0 -35
  447. data/lib/moov/models/components/issuingdeclinereason.rbi +0 -11
  448. data/lib/moov/models/components/notificationchannel.rb +0 -18
  449. data/lib/moov/models/components/notificationchannel.rbi +0 -11
  450. data/lib/moov/models/components/oauth2clienttype.rb +0 -23
  451. data/lib/moov/models/components/oauth2clienttype.rbi +0 -11
  452. data/lib/moov/models/components/pushdeliveryspeed.rb +0 -21
  453. data/lib/moov/models/components/pushdeliveryspeed.rbi +0 -11
  454. data/lib/moov/models/components/pushoptions.rb +0 -39
  455. data/lib/moov/models/components/pushoptions.rbi +0 -15
  456. data/lib/moov/models/components/pushoptionserror.rb +0 -36
  457. data/lib/moov/models/components/pushoptionserror.rbi +0 -15
  458. data/lib/moov/models/components/pushoptionsupdate.rb +0 -39
  459. data/lib/moov/models/components/pushoptionsupdate.rbi +0 -15
  460. data/lib/moov/models/components/rtpfailurecode.rb +0 -29
  461. data/lib/moov/models/components/rtpfailurecode.rbi +0 -11
  462. data/lib/moov/models/components/rtptransactiondetails.rb +0 -58
  463. data/lib/moov/models/components/rtptransactiondetails.rbi +0 -25
  464. data/lib/moov/models/components/rtptransactionstatus.rb +0 -23
  465. data/lib/moov/models/components/rtptransactionstatus.rbi +0 -11
  466. data/lib/moov/models/components/schedule.rb +0 -40
  467. data/lib/moov/models/components/schedule.rbi +0 -17
  468. data/lib/moov/models/components/sweepconfigschedule.rb +0 -40
  469. data/lib/moov/models/components/sweepconfigschedule.rbi +0 -17
  470. data/lib/moov/models/components/sweepconfigscheduleerror.rb +0 -40
  471. data/lib/moov/models/components/sweepconfigscheduleerror.rbi +0 -17
  472. data/lib/moov/models/components/sweepschedulefrequency.rb +0 -18
  473. data/lib/moov/models/components/sweepschedulefrequency.rbi +0 -11
  474. data/lib/moov/models/components/transfercapture.rb +0 -36
  475. data/lib/moov/models/components/transfercapture.rbi +0 -15
  476. data/lib/moov/models/components/transfercontrols.rb +0 -48
  477. data/lib/moov/models/components/transfercontrols.rbi +0 -21
  478. data/lib/moov/models/components/webhookdataauthorizationexpiring.rb +0 -44
  479. data/lib/moov/models/components/webhookdataauthorizationexpiring.rbi +0 -19
  480. data/lib/moov/models/components/webhookdataeventtest.rbi +0 -13
  481. data/lib/moov/models/errors/invoicenotificationerror.rb +0 -36
  482. data/lib/moov/models/errors/invoicenotificationerror.rbi +0 -15
  483. data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +0 -44
  484. data/lib/moov/models/errors/invoicenotificationratelimitederror.rbi +0 -19
  485. data/lib/moov/models/operations/createinvoicenotification_request.rb +0 -40
  486. data/lib/moov/models/operations/createinvoicenotification_request.rbi +0 -17
  487. data/lib/moov/models/operations/createinvoicenotification_response.rb +0 -44
  488. data/lib/moov/models/operations/listcancellations_request.rb +0 -36
  489. data/lib/moov/models/operations/listcancellations_request.rbi +0 -15
  490. data/lib/moov/models/operations/listcancellations_response.rbi +0 -21
@@ -84,7 +84,7 @@ module Moov
84
84
 
85
85
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
86
86
  timeout ||= @sdk_configuration.timeout
87
-
87
+
88
88
 
89
89
  connection = @sdk_configuration.client
90
90
 
@@ -99,7 +99,7 @@ module Moov
99
99
  error = T.let(nil, T.nilable(StandardError))
100
100
  http_response = T.let(nil, T.nilable(Faraday::Response))
101
101
 
102
-
102
+
103
103
  begin
104
104
  http_response = T.must(connection).post(url) do |req|
105
105
  req.body = body
@@ -136,13 +136,13 @@ module Moov
136
136
  response: http_response
137
137
  )
138
138
  end
139
-
139
+
140
140
  if http_response.nil?
141
141
  raise error if !error.nil?
142
142
  raise 'no response'
143
143
  end
144
144
  end
145
-
145
+
146
146
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
147
147
  if Utils.match_status_code(http_response.status, ['200'])
148
148
  if Utils.match_content_type(content_type, 'application/json')
@@ -253,7 +253,7 @@ module Moov
253
253
 
254
254
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
255
255
  timeout ||= @sdk_configuration.timeout
256
-
256
+
257
257
 
258
258
  connection = @sdk_configuration.client
259
259
 
@@ -268,7 +268,7 @@ module Moov
268
268
  error = T.let(nil, T.nilable(StandardError))
269
269
  http_response = T.let(nil, T.nilable(Faraday::Response))
270
270
 
271
-
271
+
272
272
  begin
273
273
  http_response = T.must(connection).post(url) do |req|
274
274
  req.body = body
@@ -305,13 +305,13 @@ module Moov
305
305
  response: http_response
306
306
  )
307
307
  end
308
-
308
+
309
309
  if http_response.nil?
310
310
  raise error if !error.nil?
311
311
  raise 'no response'
312
312
  end
313
313
  end
314
-
314
+
315
315
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
316
316
  if Utils.match_status_code(http_response.status, ['200'])
317
317
  if Utils.match_content_type(content_type, 'application/json')
@@ -448,12 +448,7 @@ module Moov
448
448
  # 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,
449
449
  # 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
450
450
  # 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
451
- # period of time. You can run multiple requests in smaller time window increments until you've retrieved all the transfers you need. The maximum allowed value for
452
- # `skip` is `200 000`.
453
- #
454
- # For large result sets, use cursor pagination instead of `skip`. When more transfers are available, the response includes an
455
- # `X-Next-Cursor` header. Pass its value as the `cursor` query parameter, with the same filters and `count`, to retrieve the next page.
456
- # `cursor` cannot be combined with a nonzero `skip`.
451
+ # period of time. You can run multiple requests in smaller time window increments until you've retrieved all the transfers you need.
457
452
  #
458
453
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
459
454
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
@@ -475,7 +470,7 @@ module Moov
475
470
 
476
471
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
477
472
  timeout ||= @sdk_configuration.timeout
478
-
473
+
479
474
 
480
475
  connection = @sdk_configuration.client
481
476
 
@@ -490,7 +485,7 @@ module Moov
490
485
  error = T.let(nil, T.nilable(StandardError))
491
486
  http_response = T.let(nil, T.nilable(Faraday::Response))
492
487
 
493
-
488
+
494
489
  begin
495
490
  http_response = T.must(connection).get(url) do |req|
496
491
  req.headers.merge!(headers)
@@ -527,13 +522,13 @@ module Moov
527
522
  response: http_response
528
523
  )
529
524
  end
530
-
525
+
531
526
  if http_response.nil?
532
527
  raise error if !error.nil?
533
528
  raise 'no response'
534
529
  end
535
530
  end
536
-
531
+
537
532
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
538
533
  if Utils.match_status_code(http_response.status, ['200'])
539
534
  if Utils.match_content_type(content_type, 'application/json')
@@ -629,7 +624,7 @@ module Moov
629
624
 
630
625
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
631
626
  timeout ||= @sdk_configuration.timeout
632
-
627
+
633
628
 
634
629
  connection = @sdk_configuration.client
635
630
 
@@ -644,7 +639,7 @@ module Moov
644
639
  error = T.let(nil, T.nilable(StandardError))
645
640
  http_response = T.let(nil, T.nilable(Faraday::Response))
646
641
 
647
-
642
+
648
643
  begin
649
644
  http_response = T.must(connection).post(url) do |req|
650
645
  req.body = body
@@ -681,13 +676,13 @@ module Moov
681
676
  response: http_response
682
677
  )
683
678
  end
684
-
679
+
685
680
  if http_response.nil?
686
681
  raise error if !error.nil?
687
682
  raise 'no response'
688
683
  end
689
684
  end
690
-
685
+
691
686
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
692
687
  if Utils.match_status_code(http_response.status, ['200'])
693
688
  if Utils.match_content_type(content_type, 'application/json')
@@ -756,7 +751,7 @@ module Moov
756
751
 
757
752
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
758
753
  timeout ||= @sdk_configuration.timeout
759
-
754
+
760
755
 
761
756
  connection = @sdk_configuration.client
762
757
 
@@ -771,7 +766,7 @@ module Moov
771
766
  error = T.let(nil, T.nilable(StandardError))
772
767
  http_response = T.let(nil, T.nilable(Faraday::Response))
773
768
 
774
-
769
+
775
770
  begin
776
771
  http_response = T.must(connection).get(url) do |req|
777
772
  req.headers.merge!(headers)
@@ -807,13 +802,13 @@ module Moov
807
802
  response: http_response
808
803
  )
809
804
  end
810
-
805
+
811
806
  if http_response.nil?
812
807
  raise error if !error.nil?
813
808
  raise 'no response'
814
809
  end
815
810
  end
816
-
811
+
817
812
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
818
813
  if Utils.match_status_code(http_response.status, ['200'])
819
814
  if Utils.match_content_type(content_type, 'application/json')
@@ -893,7 +888,7 @@ module Moov
893
888
 
894
889
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
895
890
  timeout ||= @sdk_configuration.timeout
896
-
891
+
897
892
 
898
893
  connection = @sdk_configuration.client
899
894
 
@@ -908,7 +903,7 @@ module Moov
908
903
  error = T.let(nil, T.nilable(StandardError))
909
904
  http_response = T.let(nil, T.nilable(Faraday::Response))
910
905
 
911
-
906
+
912
907
  begin
913
908
  http_response = T.must(connection).patch(url) do |req|
914
909
  req.body = body
@@ -945,13 +940,13 @@ module Moov
945
940
  response: http_response
946
941
  )
947
942
  end
948
-
943
+
949
944
  if http_response.nil?
950
945
  raise error if !error.nil?
951
946
  raise 'no response'
952
947
  end
953
948
  end
954
-
949
+
955
950
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
956
951
  if Utils.match_status_code(http_response.status, ['200'])
957
952
  if Utils.match_content_type(content_type, 'application/json')
@@ -1005,19 +1000,15 @@ module Moov
1005
1000
  end
1006
1001
 
1007
1002
 
1008
- sig { params(account_id: ::String, transfer_id: ::String, x_idempotency_key: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateCancellationResponse) }
1009
- def create_cancellation(account_id:, transfer_id:, x_idempotency_key: nil, timeout_ms: nil, http_headers: nil)
1003
+ sig { params(account_id: ::String, transfer_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateCancellationResponse) }
1004
+ def create_cancellation(account_id:, transfer_id:, timeout_ms: nil, http_headers: nil)
1010
1005
  # create_cancellation - Initiate a cancellation for a card, ACH, or queued transfer.
1011
1006
  #
1012
- # In v2026.10 and later, an auth-capture `card-payment` transfer can be canceled before any captures exist.
1013
- # For these transfers, a successful cancellation reduces `capturableAmount` without changing `authorizedAmount`.
1014
- # For these transfers, a partial cancellation leaves the remaining `capturableAmount` available for capture.
1015
1007
  # To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
1016
1008
  # to specify the `/accounts/{accountID}/transfers.write` scope.
1017
1009
  request = Models::Operations::CreateCancellationRequest.new(
1018
1010
  account_id: account_id,
1019
- transfer_id: transfer_id,
1020
- x_idempotency_key: x_idempotency_key
1011
+ transfer_id: transfer_id
1021
1012
  )
1022
1013
  url, params = @sdk_configuration.get_server_details
1023
1014
  base_url = Utils.template_url(url, params)
@@ -1027,7 +1018,7 @@ module Moov
1027
1018
  '/accounts/{accountID}/transfers/{transferID}/cancellations',
1028
1019
  request
1029
1020
  )
1030
- headers = Utils.get_headers(request)
1021
+ headers = {}
1031
1022
  headers = T.cast(headers, T::Hash[String, String])
1032
1023
  headers['Accept'] = 'application/json'
1033
1024
  headers['user-agent'] = @sdk_configuration.user_agent
@@ -1036,7 +1027,7 @@ module Moov
1036
1027
 
1037
1028
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
1038
1029
  timeout ||= @sdk_configuration.timeout
1039
-
1030
+
1040
1031
 
1041
1032
  connection = @sdk_configuration.client
1042
1033
 
@@ -1051,7 +1042,7 @@ module Moov
1051
1042
  error = T.let(nil, T.nilable(StandardError))
1052
1043
  http_response = T.let(nil, T.nilable(Faraday::Response))
1053
1044
 
1054
-
1045
+
1055
1046
  begin
1056
1047
  http_response = T.must(connection).post(url) do |req|
1057
1048
  req.headers.merge!(headers)
@@ -1087,13 +1078,13 @@ module Moov
1087
1078
  response: http_response
1088
1079
  )
1089
1080
  end
1090
-
1081
+
1091
1082
  if http_response.nil?
1092
1083
  raise error if !error.nil?
1093
1084
  raise 'no response'
1094
1085
  end
1095
1086
  end
1096
-
1087
+
1097
1088
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1098
1089
  if Utils.match_status_code(http_response.status, ['200', '202'])
1099
1090
  if Utils.match_content_type(content_type, 'application/json')
@@ -1117,7 +1108,7 @@ module Moov
1117
1108
  else
1118
1109
  raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1119
1110
  end
1120
- elsif Utils.match_status_code(http_response.status, ['400', '409', '422'])
1111
+ elsif Utils.match_status_code(http_response.status, ['400'])
1121
1112
  if Utils.match_content_type(content_type, 'application/json')
1122
1113
  http_response = @sdk_configuration.hooks.after_success(
1123
1114
  hook_ctx: SDKHooks::AfterSuccessHookContext.new(
@@ -1147,129 +1138,6 @@ module Moov
1147
1138
  end
1148
1139
 
1149
1140
 
1150
- sig { params(account_id: ::String, transfer_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListCancellationsResponse) }
1151
- def list_cancellations(account_id:, transfer_id:, timeout_ms: nil, http_headers: nil)
1152
- # list_cancellations - Get a list of cancellations for a transfer.
1153
- #
1154
- # To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
1155
- # to specify the `/accounts/{accountID}/transfers.read` scope.
1156
- request = Models::Operations::ListCancellationsRequest.new(
1157
- account_id: account_id,
1158
- transfer_id: transfer_id
1159
- )
1160
- url, params = @sdk_configuration.get_server_details
1161
- base_url = Utils.template_url(url, params)
1162
- url = Utils.generate_url(
1163
- Models::Operations::ListCancellationsRequest,
1164
- base_url,
1165
- '/accounts/{accountID}/transfers/{transferID}/cancellations',
1166
- request
1167
- )
1168
- headers = {}
1169
- headers = T.cast(headers, T::Hash[String, String])
1170
- headers['Accept'] = 'application/json'
1171
- headers['user-agent'] = @sdk_configuration.user_agent
1172
-
1173
- security = @sdk_configuration.security_source&.call
1174
-
1175
- timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
1176
- timeout ||= @sdk_configuration.timeout
1177
-
1178
-
1179
- connection = @sdk_configuration.client
1180
-
1181
- hook_ctx = SDKHooks::HookContext.new(
1182
- config: @sdk_configuration,
1183
- base_url: base_url,
1184
- oauth2_scopes: nil,
1185
- operation_id: 'listCancellations',
1186
- security_source: @sdk_configuration.security_source
1187
- )
1188
-
1189
- error = T.let(nil, T.nilable(StandardError))
1190
- http_response = T.let(nil, T.nilable(Faraday::Response))
1191
-
1192
-
1193
- begin
1194
- http_response = T.must(connection).get(url) do |req|
1195
- req.headers.merge!(headers)
1196
- req.options.timeout = timeout unless timeout.nil?
1197
- Utils.configure_request_security(req, security)
1198
- http_headers&.each do |key, value|
1199
- req.headers[key.to_s] = value
1200
- end
1201
-
1202
- @sdk_configuration.hooks.before_request(
1203
- hook_ctx: SDKHooks::BeforeRequestHookContext.new(
1204
- hook_ctx: hook_ctx
1205
- ),
1206
- request: req
1207
- )
1208
- end
1209
- rescue StandardError => e
1210
- error = e
1211
- ensure
1212
- if http_response.nil? || Utils.error_status?(http_response.status)
1213
- http_response = @sdk_configuration.hooks.after_error(
1214
- error: error,
1215
- hook_ctx: SDKHooks::AfterErrorHookContext.new(
1216
- hook_ctx: hook_ctx
1217
- ),
1218
- response: http_response
1219
- )
1220
- else
1221
- http_response = @sdk_configuration.hooks.after_success(
1222
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1223
- hook_ctx: hook_ctx
1224
- ),
1225
- response: http_response
1226
- )
1227
- end
1228
-
1229
- if http_response.nil?
1230
- raise error if !error.nil?
1231
- raise 'no response'
1232
- end
1233
- end
1234
-
1235
- content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1236
- if Utils.match_status_code(http_response.status, ['200'])
1237
- if Utils.match_content_type(content_type, 'application/json')
1238
- http_response = @sdk_configuration.hooks.after_success(
1239
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1240
- hook_ctx: hook_ctx
1241
- ),
1242
- response: http_response
1243
- )
1244
- response_data = http_response.env.response_body
1245
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::Cancellation))
1246
- response = Models::Operations::ListCancellationsResponse.new(
1247
- status_code: http_response.status,
1248
- content_type: content_type,
1249
- raw_response: http_response,
1250
- headers: http_response.headers,
1251
- cancellations: T.unsafe(obj)
1252
- )
1253
-
1254
- return response
1255
- else
1256
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1257
- end
1258
- elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
1259
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
1260
- elsif Utils.match_status_code(http_response.status, ['500', '504'])
1261
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
1262
- elsif Utils.match_status_code(http_response.status, ['4XX'])
1263
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
1264
- elsif Utils.match_status_code(http_response.status, ['5XX'])
1265
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
1266
- else
1267
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
1268
-
1269
- end
1270
- end
1271
-
1272
-
1273
1141
  sig { params(account_id: ::String, transfer_id: ::String, cancellation_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetCancellationResponse) }
1274
1142
  def get_cancellation(account_id:, transfer_id:, cancellation_id:, timeout_ms: nil, http_headers: nil)
1275
1143
  # get_cancellation - Get details of a cancellation for a transfer.
@@ -1298,7 +1166,7 @@ module Moov
1298
1166
 
1299
1167
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
1300
1168
  timeout ||= @sdk_configuration.timeout
1301
-
1169
+
1302
1170
 
1303
1171
  connection = @sdk_configuration.client
1304
1172
 
@@ -1313,7 +1181,7 @@ module Moov
1313
1181
  error = T.let(nil, T.nilable(StandardError))
1314
1182
  http_response = T.let(nil, T.nilable(Faraday::Response))
1315
1183
 
1316
-
1184
+
1317
1185
  begin
1318
1186
  http_response = T.must(connection).get(url) do |req|
1319
1187
  req.headers.merge!(headers)
@@ -1349,13 +1217,13 @@ module Moov
1349
1217
  response: http_response
1350
1218
  )
1351
1219
  end
1352
-
1220
+
1353
1221
  if http_response.nil?
1354
1222
  raise error if !error.nil?
1355
1223
  raise 'no response'
1356
1224
  end
1357
1225
  end
1358
-
1226
+
1359
1227
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1360
1228
  if Utils.match_status_code(http_response.status, ['200'])
1361
1229
  if Utils.match_content_type(content_type, 'application/json')
@@ -1397,7 +1265,6 @@ module Moov
1397
1265
  sig { params(request: Models::Operations::InitiateRefundRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::InitiateRefundResponse) }
1398
1266
  def initiate_refund(request:, timeout_ms: nil, http_headers: nil)
1399
1267
  # initiate_refund - Initiate a refund for a card transfer.
1400
- # The `accountID` must identify the partner account for the transfer.
1401
1268
  #
1402
1269
  # **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.**
1403
1270
  # See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/) guide for more information.
@@ -1431,7 +1298,7 @@ module Moov
1431
1298
 
1432
1299
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
1433
1300
  timeout ||= @sdk_configuration.timeout
1434
-
1301
+
1435
1302
 
1436
1303
  connection = @sdk_configuration.client
1437
1304
 
@@ -1446,7 +1313,7 @@ module Moov
1446
1313
  error = T.let(nil, T.nilable(StandardError))
1447
1314
  http_response = T.let(nil, T.nilable(Faraday::Response))
1448
1315
 
1449
-
1316
+
1450
1317
  begin
1451
1318
  http_response = T.must(connection).post(url) do |req|
1452
1319
  req.body = body
@@ -1483,13 +1350,13 @@ module Moov
1483
1350
  response: http_response
1484
1351
  )
1485
1352
  end
1486
-
1353
+
1487
1354
  if http_response.nil?
1488
1355
  raise error if !error.nil?
1489
1356
  raise 'no response'
1490
1357
  end
1491
1358
  end
1492
-
1359
+
1493
1360
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1494
1361
  if Utils.match_status_code(http_response.status, ['200'])
1495
1362
  if Utils.match_content_type(content_type, 'application/json')
@@ -1622,7 +1489,7 @@ module Moov
1622
1489
 
1623
1490
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
1624
1491
  timeout ||= @sdk_configuration.timeout
1625
-
1492
+
1626
1493
 
1627
1494
  connection = @sdk_configuration.client
1628
1495
 
@@ -1637,7 +1504,7 @@ module Moov
1637
1504
  error = T.let(nil, T.nilable(StandardError))
1638
1505
  http_response = T.let(nil, T.nilable(Faraday::Response))
1639
1506
 
1640
-
1507
+
1641
1508
  begin
1642
1509
  http_response = T.must(connection).get(url) do |req|
1643
1510
  req.headers.merge!(headers)
@@ -1673,13 +1540,13 @@ module Moov
1673
1540
  response: http_response
1674
1541
  )
1675
1542
  end
1676
-
1543
+
1677
1544
  if http_response.nil?
1678
1545
  raise error if !error.nil?
1679
1546
  raise 'no response'
1680
1547
  end
1681
1548
  end
1682
-
1549
+
1683
1550
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1684
1551
  if Utils.match_status_code(http_response.status, ['200'])
1685
1552
  if Utils.match_content_type(content_type, 'application/json')
@@ -1703,7 +1570,7 @@ module Moov
1703
1570
  else
1704
1571
  raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
1705
1572
  end
1706
- elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
1573
+ elsif Utils.match_status_code(http_response.status, ['401', '403', '429'])
1707
1574
  raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
1708
1575
  elsif Utils.match_status_code(http_response.status, ['500', '504'])
1709
1576
  raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
@@ -1746,7 +1613,7 @@ module Moov
1746
1613
 
1747
1614
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
1748
1615
  timeout ||= @sdk_configuration.timeout
1749
-
1616
+
1750
1617
 
1751
1618
  connection = @sdk_configuration.client
1752
1619
 
@@ -1761,7 +1628,7 @@ module Moov
1761
1628
  error = T.let(nil, T.nilable(StandardError))
1762
1629
  http_response = T.let(nil, T.nilable(Faraday::Response))
1763
1630
 
1764
-
1631
+
1765
1632
  begin
1766
1633
  http_response = T.must(connection).get(url) do |req|
1767
1634
  req.headers.merge!(headers)
@@ -1797,13 +1664,13 @@ module Moov
1797
1664
  response: http_response
1798
1665
  )
1799
1666
  end
1800
-
1667
+
1801
1668
  if http_response.nil?
1802
1669
  raise error if !error.nil?
1803
1670
  raise 'no response'
1804
1671
  end
1805
1672
  end
1806
-
1673
+
1807
1674
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1808
1675
  if Utils.match_status_code(http_response.status, ['200'])
1809
1676
  if Utils.match_content_type(content_type, 'application/json')
@@ -1844,10 +1711,7 @@ module Moov
1844
1711
 
1845
1712
  sig { params(x_idempotency_key: ::String, account_id: ::String, transfer_id: ::String, create_reversal: T.nilable(Models::Components::CreateReversal), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateReversalResponse) }
1846
1713
  def create_reversal(x_idempotency_key:, account_id:, transfer_id:, create_reversal: nil, timeout_ms: nil, http_headers: nil)
1847
- # create_reversal - Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
1848
- # In v2026.10 and later, reversing an auth-capture `card-payment` transfer with no captures cancels the entire `capturableAmount`.
1849
- # In those API versions, an auth-capture `card-payment` transfer with one final capture is canceled or refunded depending on its processing state.
1850
- # Auth-capture `card-payment` transfers with a non-final capture or multiple captures are not supported in those API versions.
1714
+ # create_reversal - Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
1851
1715
  # Read our [reversals guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/)
1852
1716
  # to learn more.
1853
1717
  #
@@ -1886,7 +1750,7 @@ module Moov
1886
1750
 
1887
1751
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
1888
1752
  timeout ||= @sdk_configuration.timeout
1889
-
1753
+
1890
1754
 
1891
1755
  connection = @sdk_configuration.client
1892
1756
 
@@ -1901,7 +1765,7 @@ module Moov
1901
1765
  error = T.let(nil, T.nilable(StandardError))
1902
1766
  http_response = T.let(nil, T.nilable(Faraday::Response))
1903
1767
 
1904
-
1768
+
1905
1769
  begin
1906
1770
  http_response = T.must(connection).post(url) do |req|
1907
1771
  req.body = body
@@ -1938,13 +1802,13 @@ module Moov
1938
1802
  response: http_response
1939
1803
  )
1940
1804
  end
1941
-
1805
+
1942
1806
  if http_response.nil?
1943
1807
  raise error if !error.nil?
1944
1808
  raise 'no response'
1945
1809
  end
1946
1810
  end
1947
-
1811
+
1948
1812
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1949
1813
  if Utils.match_status_code(http_response.status, ['200', '202'])
1950
1814
  if Utils.match_content_type(content_type, 'application/json')