moov_ruby 26.7.8 → 26.10.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 (458) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/module.rb +1 -1
  3. data/lib/moov/avatars.rb +1 -276
  4. data/lib/moov/card_issuing.rb +1 -117
  5. data/lib/moov/client.rb +2 -2
  6. data/lib/moov/enriched_address.rb +1 -1
  7. data/lib/moov/enriched_profile.rb +1 -1
  8. data/lib/moov/images.rb +1 -1
  9. data/lib/moov/institutions.rb +2 -2
  10. data/lib/moov/invoices.rb +0 -180
  11. data/lib/moov/models/components/account.rb +2 -2
  12. data/lib/moov/models/components/accountnameverification.rb +4 -4
  13. data/lib/moov/models/components/accounttype.rb +1 -3
  14. data/lib/moov/models/components/accountverificationstatus.rb +1 -3
  15. data/lib/moov/models/components/achreturncode.rb +1 -3
  16. data/lib/moov/models/components/achtransactiondetails.rb +3 -3
  17. data/lib/moov/models/components/achtransactionstatus.rb +1 -3
  18. data/lib/moov/models/components/adjustmentfees.rb +15 -11
  19. data/lib/moov/models/components/adjustmentfees.rbi +4 -4
  20. data/lib/moov/models/components/amountdecimalrange.rb +2 -0
  21. data/lib/moov/models/components/amountdecimalrangeupdate.rb +2 -0
  22. data/lib/moov/models/components/applepayresponse.rb +2 -2
  23. data/lib/moov/models/components/applicationscope.rb +2 -4
  24. data/lib/moov/models/components/authmethod.rb +1 -3
  25. data/lib/moov/models/components/authtokenrequest.rb +2 -6
  26. data/lib/moov/models/components/authtokenrequest.rbi +0 -2
  27. data/lib/moov/models/components/bankaccount.rb +4 -4
  28. data/lib/moov/models/components/bankaccountexception.rb +2 -2
  29. data/lib/moov/models/components/bankaccountholdertype.rb +1 -3
  30. data/lib/moov/models/components/bankaccountintegration.rb +2 -2
  31. data/lib/moov/models/components/bankaccountstatus.rb +1 -3
  32. data/lib/moov/models/components/bankaccountstatusreason.rb +1 -3
  33. data/lib/moov/models/components/bankaccounttype.rb +1 -3
  34. data/lib/moov/models/components/bankaccountverification.rb +2 -2
  35. data/lib/moov/models/components/bankaccountverificationcreated.rb +2 -2
  36. data/lib/moov/models/components/bankaccountverificationmethod.rb +1 -3
  37. data/lib/moov/models/components/bankaccountverificationstatus.rb +1 -3
  38. data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
  39. data/lib/moov/models/components/billablefee.rb +2 -2
  40. data/lib/moov/models/components/billingsummary.rb +4 -8
  41. data/lib/moov/models/components/billingsummary.rbi +0 -2
  42. data/lib/moov/models/components/businesspresence.rb +1 -3
  43. data/lib/moov/models/components/businessprofile.rb +2 -2
  44. data/lib/moov/models/components/businesstype.rb +1 -3
  45. data/lib/moov/models/components/calltoaction.rb +1 -3
  46. data/lib/moov/models/components/cancellation.rb +2 -2
  47. data/lib/moov/models/components/cancellationstatus.rb +1 -3
  48. data/lib/moov/models/components/capability.rb +2 -2
  49. data/lib/moov/models/components/capabilityid.rb +1 -4
  50. data/lib/moov/models/components/capabilitystatus.rb +1 -3
  51. data/lib/moov/models/components/card.rb +4 -4
  52. data/lib/moov/models/components/cardaccountupdater.rb +1 -1
  53. data/lib/moov/models/components/cardacquiringmodel.rb +1 -3
  54. data/lib/moov/models/components/cardacquiringrefund.rb +1 -1
  55. data/lib/moov/models/components/cardbrand.rb +1 -3
  56. data/lib/moov/models/components/cardissuingnetwork.rb +1 -3
  57. data/lib/moov/models/components/cardmetadata.rb +4 -4
  58. data/lib/moov/models/components/cardtransactiondetails.rb +3 -3
  59. data/lib/moov/models/components/cardtransactionfailurecode.rb +1 -3
  60. data/lib/moov/models/components/cardtransactionstatus.rb +1 -4
  61. data/lib/moov/models/components/cardtype.rb +1 -3
  62. data/lib/moov/models/components/cardupdatereason.rb +1 -3
  63. data/lib/moov/models/components/cardverification.rb +3 -3
  64. data/lib/moov/models/components/cardverificationresult.rb +1 -3
  65. data/lib/moov/models/components/collectfundscardpayments.rb +1 -1
  66. data/lib/moov/models/components/collectionpaymentmethodtype.rb +1 -3
  67. data/lib/moov/models/components/{webhookdataeventtest.rb → contributingrule.rb} +8 -8
  68. data/lib/moov/models/components/contributingrule.rbi +13 -0
  69. data/lib/moov/models/components/createaccount.rb +2 -2
  70. data/lib/moov/models/components/createaccounttype.rb +1 -3
  71. data/lib/moov/models/components/createbusinessprofile.rb +2 -2
  72. data/lib/moov/models/components/createdtransfer.rb +6 -14
  73. data/lib/moov/models/components/createdtransfer.rbi +0 -2
  74. data/lib/moov/models/components/createevidencetext.rb +1 -1
  75. data/lib/moov/models/components/createfeeplanagreement.rb +3 -13
  76. data/lib/moov/models/components/createfeeplanagreement.rbi +0 -2
  77. data/lib/moov/models/components/createinvoice.rb +2 -14
  78. data/lib/moov/models/components/createinvoice.rbi +0 -6
  79. data/lib/moov/models/components/createpaymentlink.rb +1 -1
  80. data/lib/moov/models/components/createrefund.rb +2 -2
  81. data/lib/moov/models/components/createreversal.rb +1 -4
  82. data/lib/moov/models/components/createsweepconfig.rb +1 -1
  83. data/lib/moov/models/components/createterminalapplication.rb +1 -1
  84. data/lib/moov/models/components/createtippresets.rb +1 -1
  85. data/lib/moov/models/components/createtransfer.rb +2 -6
  86. data/lib/moov/models/components/createtransfer.rbi +0 -2
  87. data/lib/moov/models/components/createtransfersourceach.rb +2 -2
  88. data/lib/moov/models/components/createtransfersourcecard.rb +1 -1
  89. data/lib/moov/models/components/createwebhook.rb +1 -1
  90. data/lib/moov/models/components/debitholdperiod.rb +1 -3
  91. data/lib/moov/models/components/depositaccountingestedresponse.rb +1 -1
  92. data/lib/moov/models/components/disbursementpaymentmethodtype.rb +1 -3
  93. data/lib/moov/models/components/dispute.rb +2 -2
  94. data/lib/moov/models/components/disputeevidenceresponse.rb +1 -1
  95. data/lib/moov/models/components/disputephase.rb +1 -3
  96. data/lib/moov/models/components/disputestatus.rb +1 -3
  97. data/lib/moov/models/components/document.rb +1 -1
  98. data/lib/moov/models/components/documenttype.rb +1 -3
  99. data/lib/moov/models/components/domesticpullfromcard.rb +1 -3
  100. data/lib/moov/models/components/domesticpushtocard.rb +1 -3
  101. data/lib/moov/models/components/estimatedactivity.rb +1 -1
  102. data/lib/moov/models/components/evidencetextresponse.rb +1 -1
  103. data/lib/moov/models/components/evidencetype.rb +1 -3
  104. data/lib/moov/models/components/evidenceuploadresponse.rb +1 -1
  105. data/lib/moov/models/components/facilitatorfee.rb +2 -2
  106. data/lib/moov/models/components/feecategory.rb +1 -3
  107. data/lib/moov/models/components/feemodel.rb +1 -3
  108. data/lib/moov/models/components/feeplan.rb +1 -1
  109. data/lib/moov/models/components/feeplanagreement.rb +4 -12
  110. data/lib/moov/models/components/feeplanagreement.rbi +0 -4
  111. data/lib/moov/models/components/feeplanagreementstatus.rb +1 -3
  112. data/lib/moov/models/components/filedetails.rb +2 -2
  113. data/lib/moov/models/components/filepurpose.rb +1 -3
  114. data/lib/moov/models/components/filestatus.rb +1 -3
  115. data/lib/moov/models/components/fulfillment.rb +2 -2
  116. data/lib/moov/models/components/fulfillmentdetails.rb +1 -1
  117. data/lib/moov/models/components/fulfillmentmethod.rb +1 -3
  118. data/lib/moov/models/components/fulfillmenttimeframe.rb +1 -3
  119. data/lib/moov/models/components/fullissuedcard.rb +5 -6
  120. data/lib/moov/models/components/geographicreach.rb +1 -3
  121. data/lib/moov/models/components/googlepayresponse.rb +3 -3
  122. data/lib/moov/models/components/incurredfee.rb +2 -6
  123. data/lib/moov/models/components/incurredfee.rbi +0 -2
  124. data/lib/moov/models/components/instantbankfailurecode.rb +1 -3
  125. data/lib/moov/models/components/instantbanknetwork.rb +1 -3
  126. data/lib/moov/models/components/instantbanktransactiondetails.rb +3 -3
  127. data/lib/moov/models/components/instantbanktransactionstatus.rb +1 -3
  128. data/lib/moov/models/components/invoice.rb +3 -7
  129. data/lib/moov/models/components/invoice.rbi +0 -2
  130. data/lib/moov/models/components/invoicepayment.rb +1 -1
  131. data/lib/moov/models/components/invoicepaymenttype.rb +1 -3
  132. data/lib/moov/models/components/invoicestatus.rb +1 -3
  133. data/lib/moov/models/components/issuedcard.rb +5 -6
  134. data/lib/moov/models/components/issuedcardauthorization.rb +4 -13
  135. data/lib/moov/models/components/issuedcardauthorization.rbi +0 -4
  136. data/lib/moov/models/components/issuedcardauthorizationevent.rb +4 -9
  137. data/lib/moov/models/components/issuedcardauthorizationevent.rbi +0 -2
  138. data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +1 -3
  139. data/lib/moov/models/components/issuedcardeventtype.rb +1 -3
  140. data/lib/moov/models/components/issuedcardstate.rb +1 -5
  141. data/lib/moov/models/components/issuedcardtransaction.rb +2 -6
  142. data/lib/moov/models/components/issuedcardtransaction.rbi +0 -2
  143. data/lib/moov/models/components/issuingauthorizationstatus.rb +1 -3
  144. data/lib/moov/models/components/issuingcontrols.rb +3 -19
  145. data/lib/moov/models/components/issuingcontrols.rbi +0 -8
  146. data/lib/moov/models/components/issuingcontrolserror.rb +2 -18
  147. data/lib/moov/models/components/issuingcontrolserror.rbi +0 -8
  148. data/lib/moov/models/components/issuingintervallimit.rb +2 -7
  149. data/lib/moov/models/components/issuingvelocitylimit.rb +7 -11
  150. data/lib/moov/models/components/issuingvelocitylimit.rbi +2 -4
  151. data/lib/moov/models/components/issuingvelocitylimiterror.rb +2 -6
  152. data/lib/moov/models/components/issuingvelocitylimiterror.rbi +0 -2
  153. data/lib/moov/models/components/jsonwebkey.rb +1 -1
  154. data/lib/moov/models/components/linkedapplepaypaymentmethod.rb +1 -1
  155. data/lib/moov/models/components/linkedgooglepaypaymentmethod.rb +1 -1
  156. data/lib/moov/models/components/mode.rb +1 -3
  157. data/lib/moov/models/components/monthlyvolumerange.rb +1 -3
  158. data/lib/moov/models/components/moovfee.rb +1 -1
  159. data/lib/moov/models/components/occurrencesresponse.rb +2 -2
  160. data/lib/moov/models/components/occurrencestatus.rb +1 -3
  161. data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
  162. data/lib/moov/models/components/partnerpricingagreement.rb +7 -15
  163. data/lib/moov/models/components/partnerpricingagreement.rbi +0 -4
  164. data/lib/moov/models/components/partnerriskoutcomesresponse.rb +38 -0
  165. data/lib/moov/models/components/partnerriskoutcomesresponse.rbi +15 -0
  166. data/lib/moov/models/components/patchbusiness.rb +2 -2
  167. data/lib/moov/models/components/patchwallet.rb +1 -1
  168. data/lib/moov/models/components/paymentlink.rb +6 -4
  169. data/lib/moov/models/components/paymentlinkcustomamountpaymentdetails.rb +2 -0
  170. data/lib/moov/models/components/paymentlinkcustomamountpaymentdetailsupdate.rb +2 -0
  171. data/lib/moov/models/components/paymentlinkdisplayoptions.rb +1 -1
  172. data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +1 -1
  173. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +7 -11
  174. data/lib/moov/models/components/paymentlinkpayoutdetails.rbi +0 -2
  175. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +7 -11
  176. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rbi +0 -2
  177. data/lib/moov/models/components/paymentlinkstatus.rb +1 -3
  178. data/lib/moov/models/components/paymentlinktype.rb +1 -3
  179. data/lib/moov/models/components/paymentmethodsbankaccount.rb +3 -3
  180. data/lib/moov/models/components/paymentmethodscard.rb +4 -4
  181. data/lib/moov/models/components/paymentmethodswallet.rb +1 -2
  182. data/lib/moov/models/components/paymentmethodtype.rb +1 -3
  183. data/lib/moov/models/components/payoutdetailserror.rb +2 -6
  184. data/lib/moov/models/components/payoutdetailserror.rbi +0 -2
  185. data/lib/moov/models/components/pendinglitigation.rb +1 -3
  186. data/lib/moov/models/components/primaryregulator.rb +1 -3
  187. data/lib/moov/models/components/product.rb +2 -6
  188. data/lib/moov/models/components/product.rbi +0 -2
  189. data/lib/moov/models/components/productrequest.rb +2 -6
  190. data/lib/moov/models/components/productrequest.rbi +0 -2
  191. data/lib/moov/models/components/pushdeliveryspeed.rb +1 -3
  192. data/lib/moov/models/components/pushoptions.rb +4 -5
  193. data/lib/moov/models/components/pushoptionsupdate.rb +4 -5
  194. data/lib/moov/models/components/puttippresets.rb +1 -1
  195. data/lib/moov/models/components/refundcarddetails.rb +2 -2
  196. data/lib/moov/models/components/refundcardstatus.rb +1 -4
  197. data/lib/moov/models/components/refundpolicy.rb +1 -3
  198. data/lib/moov/models/components/refundstatus.rb +1 -3
  199. data/lib/moov/models/components/requestcard.rb +1 -1
  200. data/lib/moov/models/components/requirementerror.rb +2 -2
  201. data/lib/moov/models/components/requirementerrorcode.rb +1 -3
  202. data/lib/moov/models/components/requirementid.rb +1 -17
  203. data/lib/moov/models/components/resolutionlink.rb +1 -1
  204. data/lib/moov/models/components/resolutionlinkstatus.rb +1 -3
  205. data/lib/moov/models/components/returnpolicytype.rb +1 -3
  206. data/lib/moov/models/components/reversalamountdetails.rb +1 -3
  207. data/lib/moov/models/components/reversedwithcancellation.rb +1 -1
  208. data/lib/moov/models/components/rtprejectioncode.rb +1 -3
  209. data/lib/moov/models/components/schedulelistresponse.rb +1 -1
  210. data/lib/moov/models/components/scheduleresponse.rb +1 -1
  211. data/lib/moov/models/components/seccode.rb +1 -3
  212. data/lib/moov/models/components/sendfunds.rb +2 -6
  213. data/lib/moov/models/components/sendfunds.rbi +0 -2
  214. data/lib/moov/models/components/sendfundserror.rb +2 -6
  215. data/lib/moov/models/components/sendfundserror.rbi +0 -2
  216. data/lib/moov/models/components/sourcesystem.rb +1 -3
  217. data/lib/moov/models/components/statement.rb +2 -6
  218. data/lib/moov/models/components/statement.rbi +0 -2
  219. data/lib/moov/models/components/sweep.rb +1 -1
  220. data/lib/moov/models/components/sweepconfig.rb +3 -3
  221. data/lib/moov/models/components/sweepconfigpaymentmethod.rb +1 -1
  222. data/lib/moov/models/components/sweepconfigstatus.rb +1 -3
  223. data/lib/moov/models/components/sweepstatus.rb +1 -3
  224. data/lib/moov/models/components/sweepsubtotal.rb +1 -1
  225. data/lib/moov/models/components/terminalapplication.rb +2 -2
  226. data/lib/moov/models/components/terminalapplicationplatform.rb +1 -3
  227. data/lib/moov/models/components/terminalapplicationstatus.rb +1 -3
  228. data/lib/moov/models/components/terminalcard.rb +2 -2
  229. data/lib/moov/models/components/ticket.rb +1 -1
  230. data/lib/moov/models/components/ticketstatus.rb +1 -3
  231. data/lib/moov/models/components/tipcalculationbasis.rb +1 -3
  232. data/lib/moov/models/components/tippresets.rb +1 -1
  233. data/lib/moov/models/components/transactionsource.rb +1 -3
  234. data/lib/moov/models/components/transfer.rb +6 -14
  235. data/lib/moov/models/components/transfer.rbi +0 -2
  236. data/lib/moov/models/components/transferdestination.rb +1 -1
  237. data/lib/moov/models/components/transferfailurereason.rb +1 -3
  238. data/lib/moov/models/components/transferparty.rb +1 -3
  239. data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +3 -3
  240. data/lib/moov/models/components/transferpaymentmethodscard.rb +4 -4
  241. data/lib/moov/models/components/transferpaymentmethodswallet.rb +1 -2
  242. data/lib/moov/models/components/transferpaymentmethodtype.rb +1 -3
  243. data/lib/moov/models/components/transfersource.rb +1 -1
  244. data/lib/moov/models/components/transferstatus.rb +1 -3
  245. data/lib/moov/models/components/transferterminalcard.rb +2 -2
  246. data/lib/moov/models/components/underwriting.rb +4 -4
  247. data/lib/moov/models/components/underwritingstatus.rb +1 -3
  248. data/lib/moov/models/components/updateevidence.rb +1 -1
  249. data/lib/moov/models/components/updateinvoice.rb +3 -7
  250. data/lib/moov/models/components/updateinvoice.rbi +0 -2
  251. data/lib/moov/models/components/updateissuedcard.rb +2 -8
  252. data/lib/moov/models/components/updateissuedcard.rbi +0 -2
  253. data/lib/moov/models/components/updateissuedcardstate.rb +0 -4
  254. data/lib/moov/models/components/updatepaymentlink.rb +1 -1
  255. data/lib/moov/models/components/updatewebhook.rb +1 -1
  256. data/lib/moov/models/components/upsertunderwriting.rb +3 -3
  257. data/lib/moov/models/components/use.rb +1 -3
  258. data/lib/moov/models/components/verification.rb +3 -3
  259. data/lib/moov/models/components/verificationstatus.rb +1 -3
  260. data/lib/moov/models/components/verificationstatusdetail.rb +1 -3
  261. data/lib/moov/models/components/wallet.rb +2 -3
  262. data/lib/moov/models/components/walletstatus.rb +1 -3
  263. data/lib/moov/models/components/wallettransaction.rb +3 -3
  264. data/lib/moov/models/components/wallettransactionsourcetype.rb +1 -3
  265. data/lib/moov/models/components/wallettransactionstatus.rb +1 -3
  266. data/lib/moov/models/components/wallettransactiontype.rb +1 -3
  267. data/lib/moov/models/components/wallettype.rb +1 -5
  268. data/lib/moov/models/components/webhook.rb +1 -1
  269. data/lib/moov/models/components/webhookdatabankaccountcreated.rb +1 -1
  270. data/lib/moov/models/components/webhookdatabankaccountdeleted.rb +1 -1
  271. data/lib/moov/models/components/webhookdatabankaccountupdated.rb +2 -2
  272. data/lib/moov/models/components/webhookdatacancellationcreated.rb +1 -1
  273. data/lib/moov/models/components/webhookdatacancellationupdated.rb +1 -1
  274. data/lib/moov/models/components/webhookdatacapabilityrequested.rb +1 -1
  275. data/lib/moov/models/components/webhookdatacapabilityupdated.rb +2 -2
  276. data/lib/moov/models/components/webhookdatacardautoupdated.rb +1 -1
  277. data/lib/moov/models/components/webhookdatadisputecreated.rb +2 -2
  278. data/lib/moov/models/components/webhookdatadisputeupdated.rb +2 -2
  279. data/lib/moov/models/components/webhookdatainvoiceupdated.rb +1 -1
  280. data/lib/moov/models/components/webhookdatarefundupdated.rb +1 -1
  281. data/lib/moov/models/components/webhookdatasweepupdated.rb +1 -1
  282. data/lib/moov/models/components/webhookdataterminalapplicationcreated.rb +1 -1
  283. data/lib/moov/models/components/webhookdataterminalapplicationupdated.rb +1 -1
  284. data/lib/moov/models/components/webhookdataticketupdated.rb +1 -1
  285. data/lib/moov/models/components/webhookdatatransferstatus.rb +0 -4
  286. data/lib/moov/models/components/webhookdatawallettransactionupdated.rb +1 -1
  287. data/lib/moov/models/components/webhookdatawalletupdated.rb +1 -1
  288. data/lib/moov/models/components/webhookevent.rb +3 -3
  289. data/lib/moov/models/components/webhookeventtype.rb +1 -4
  290. data/lib/moov/models/components/webhookstatus.rb +1 -3
  291. data/lib/moov/models/components.rb +3 -46
  292. data/lib/moov/models/errors/cardacquiringrefund_error.rb +1 -1
  293. data/lib/moov/models/errors/createinvoiceerror.rb +2 -14
  294. data/lib/moov/models/errors/createinvoiceerror.rbi +0 -6
  295. data/lib/moov/models/errors/productrequestvalidationerror.rb +2 -6
  296. data/lib/moov/models/errors/productrequestvalidationerror.rbi +0 -2
  297. data/lib/moov/models/errors/transfer_error.rb +6 -14
  298. data/lib/moov/models/errors/transfer_error.rbi +0 -2
  299. data/lib/moov/models/errors/updateinvoiceerror.rb +2 -6
  300. data/lib/moov/models/errors/updateinvoiceerror.rbi +0 -2
  301. data/lib/moov/models/errors/updateissuedcarderror.rb +2 -6
  302. data/lib/moov/models/errors/updateissuedcarderror.rbi +0 -2
  303. data/lib/moov/models/errors.rb +0 -2
  304. data/lib/moov/models/operations/createcancellation_request.rb +2 -7
  305. data/lib/moov/models/operations/createcancellation_request.rbi +0 -2
  306. data/lib/moov/models/operations/gettransferriskoutcomes_request.rb +37 -0
  307. data/lib/moov/models/operations/gettransferriskoutcomes_request.rbi +15 -0
  308. data/lib/moov/models/operations/{listproductcategories_response.rb → gettransferriskoutcomes_response.rb} +6 -6
  309. data/lib/moov/models/operations/{listissuingmerchantcategories_response.rbi → gettransferriskoutcomes_response.rbi} +4 -4
  310. data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
  311. data/lib/moov/models/operations/listaccounts_request.rb +1 -1
  312. data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +1 -1
  313. data/lib/moov/models/operations/listdisputes_request.rb +1 -1
  314. data/lib/moov/models/operations/listfeeplanagreements_request.rb +1 -1
  315. data/lib/moov/models/operations/listfeerevenue_request.rb +1 -1
  316. data/lib/moov/models/operations/listinvoices_request.rb +1 -1
  317. data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +1 -1
  318. data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +1 -1
  319. data/lib/moov/models/operations/listissuedcards_request.rb +1 -1
  320. data/lib/moov/models/operations/listissuedcardtransactions_request.rb +3 -7
  321. data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +0 -2
  322. data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +1 -1
  323. data/lib/moov/models/operations/listpaymentlinks_request.rb +1 -1
  324. data/lib/moov/models/operations/listproducts_request.rb +3 -9
  325. data/lib/moov/models/operations/listproducts_request.rbi +0 -2
  326. data/lib/moov/models/operations/listresidualfees_request.rb +1 -1
  327. data/lib/moov/models/operations/listresiduals_request.rb +1 -1
  328. data/lib/moov/models/operations/listschedules_request.rb +1 -1
  329. data/lib/moov/models/operations/liststatements_request.rb +1 -1
  330. data/lib/moov/models/operations/listsweeps_request.rb +1 -1
  331. data/lib/moov/models/operations/listtickets_request.rb +1 -1
  332. data/lib/moov/models/operations/listtransfers_request.rb +3 -15
  333. data/lib/moov/models/operations/listtransfers_request.rbi +0 -6
  334. data/lib/moov/models/operations/listwallets_request.rb +1 -1
  335. data/lib/moov/models/operations/listwallettransactions_request.rb +1 -1
  336. data/lib/moov/models/operations/retrievefees_request.rb +1 -1
  337. data/lib/moov/models/operations.rb +2 -10
  338. data/lib/moov/products.rb +8 -113
  339. data/lib/moov/sdk_hooks/hooks.rb +0 -6
  340. data/lib/moov/sdkconfiguration.rb +4 -4
  341. data/lib/moov/transfers.rb +134 -17
  342. data/lib/moov/utils/retries.rb +2 -41
  343. data/lib/moov/utils/utils.rb +2 -6
  344. data/lib/moov_ruby.rb +1 -1
  345. metadata +12 -120
  346. data/lib/moov/models/components/allowedscheduleerror.rb +0 -36
  347. data/lib/moov/models/components/allowedscheduleerror.rbi +0 -15
  348. data/lib/moov/models/components/avataruploadrequest.rb +0 -32
  349. data/lib/moov/models/components/avataruploadrequest.rbi +0 -13
  350. data/lib/moov/models/components/avataruploadrequest_file.rb +0 -36
  351. data/lib/moov/models/components/avataruploadrequest_file.rbi +0 -15
  352. data/lib/moov/models/components/billingadjustment.rb +0 -40
  353. data/lib/moov/models/components/billingadjustment.rbi +0 -17
  354. data/lib/moov/models/components/billingsummary_adjustmentfees.rb +0 -40
  355. data/lib/moov/models/components/billingsummary_adjustmentfees.rbi +0 -15
  356. data/lib/moov/models/components/createinvoicenotification.rb +0 -32
  357. data/lib/moov/models/components/createinvoicenotification.rbi +0 -13
  358. data/lib/moov/models/components/feepaidby.rb +0 -21
  359. data/lib/moov/models/components/feepaidby.rbi +0 -11
  360. data/lib/moov/models/components/invoicenotificationlimitedchannel.rb +0 -36
  361. data/lib/moov/models/components/invoicenotificationlimitedchannel.rbi +0 -15
  362. data/lib/moov/models/components/invoicepaymentoptions.rb +0 -40
  363. data/lib/moov/models/components/invoicepaymentoptions.rbi +0 -17
  364. data/lib/moov/models/components/invoicepaymentoptionserror.rb +0 -40
  365. data/lib/moov/models/components/invoicepaymentoptionserror.rbi +0 -17
  366. data/lib/moov/models/components/invoicepaymentoptionsupdate.rb +0 -40
  367. data/lib/moov/models/components/invoicepaymentoptionsupdate.rbi +0 -17
  368. data/lib/moov/models/components/issuedcontrols.rb +0 -52
  369. data/lib/moov/models/components/issuedcontrols.rbi +0 -23
  370. data/lib/moov/models/components/issuedcontrols_allowedschedule.rb +0 -36
  371. data/lib/moov/models/components/issuedcontrols_allowedschedule.rbi +0 -15
  372. data/lib/moov/models/components/issuedvelocitylimit.rb +0 -60
  373. data/lib/moov/models/components/issuedvelocitylimit.rbi +0 -27
  374. data/lib/moov/models/components/issuingcontrols_allowedschedule.rb +0 -36
  375. data/lib/moov/models/components/issuingcontrols_allowedschedule.rbi +0 -15
  376. data/lib/moov/models/components/issuingcontrolsrestrictionmode.rb +0 -21
  377. data/lib/moov/models/components/issuingcontrolsrestrictionmode.rbi +0 -11
  378. data/lib/moov/models/components/issuingdeclinereason.rb +0 -35
  379. data/lib/moov/models/components/issuingdeclinereason.rbi +0 -11
  380. data/lib/moov/models/components/issuingmerchantcategory.rb +0 -45
  381. data/lib/moov/models/components/issuingmerchantcategory.rbi +0 -11
  382. data/lib/moov/models/components/issuingscheduleday.rb +0 -24
  383. data/lib/moov/models/components/issuingscheduleday.rbi +0 -11
  384. data/lib/moov/models/components/merchantcategories.rb +0 -32
  385. data/lib/moov/models/components/merchantcategories.rbi +0 -13
  386. data/lib/moov/models/components/merchantcategory.rb +0 -37
  387. data/lib/moov/models/components/merchantcategory.rbi +0 -15
  388. data/lib/moov/models/components/merchantcategoryrestrictions.rb +0 -44
  389. data/lib/moov/models/components/merchantcategoryrestrictions.rbi +0 -19
  390. data/lib/moov/models/components/merchantcategoryrestrictionserror.rb +0 -44
  391. data/lib/moov/models/components/merchantcategoryrestrictionserror.rbi +0 -19
  392. data/lib/moov/models/components/merchantentry.rb +0 -40
  393. data/lib/moov/models/components/merchantentry.rbi +0 -17
  394. data/lib/moov/models/components/merchantentryerror.rb +0 -36
  395. data/lib/moov/models/components/merchantentryerror.rbi +0 -15
  396. data/lib/moov/models/components/merchantrestrictions.rb +0 -36
  397. data/lib/moov/models/components/merchantrestrictions.rbi +0 -15
  398. data/lib/moov/models/components/merchantrestrictionserror.rb +0 -36
  399. data/lib/moov/models/components/merchantrestrictionserror.rbi +0 -15
  400. data/lib/moov/models/components/notificationchannel.rb +0 -18
  401. data/lib/moov/models/components/notificationchannel.rbi +0 -11
  402. data/lib/moov/models/components/oauth2clienttype.rb +0 -23
  403. data/lib/moov/models/components/oauth2clienttype.rbi +0 -11
  404. data/lib/moov/models/components/productcategories.rb +0 -32
  405. data/lib/moov/models/components/productcategories.rbi +0 -13
  406. data/lib/moov/models/components/productcategory.rb +0 -48
  407. data/lib/moov/models/components/productcategory.rbi +0 -21
  408. data/lib/moov/models/components/schedulewindow.rb +0 -40
  409. data/lib/moov/models/components/schedulewindow.rbi +0 -17
  410. data/lib/moov/models/components/schedulewindowerror.rb +0 -40
  411. data/lib/moov/models/components/schedulewindowerror.rbi +0 -17
  412. data/lib/moov/models/components/schemebasicauth.rb +0 -36
  413. data/lib/moov/models/components/schemebasicauth.rbi +0 -15
  414. data/lib/moov/models/components/schemeoauth2auth.rb +0 -40
  415. data/lib/moov/models/components/schemeoauth2auth.rbi +0 -17
  416. data/lib/moov/models/components/sendfundswire.rb +0 -32
  417. data/lib/moov/models/components/sendfundswire.rbi +0 -13
  418. data/lib/moov/models/components/sendfundswireerror.rb +0 -32
  419. data/lib/moov/models/components/sendfundswireerror.rbi +0 -13
  420. data/lib/moov/models/components/transfercapture.rb +0 -36
  421. data/lib/moov/models/components/transfercapture.rbi +0 -15
  422. data/lib/moov/models/components/transferfeepaidby.rb +0 -32
  423. data/lib/moov/models/components/transferfeepaidby.rbi +0 -13
  424. data/lib/moov/models/components/updateissuingcontrols.rb +0 -48
  425. data/lib/moov/models/components/updateissuingcontrols.rbi +0 -21
  426. data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rb +0 -36
  427. data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rbi +0 -15
  428. data/lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rb +0 -44
  429. data/lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rbi +0 -19
  430. data/lib/moov/models/components/updateissuingcontrols_merchantrestrictions.rb +0 -36
  431. data/lib/moov/models/components/updateissuingcontrols_merchantrestrictions.rbi +0 -15
  432. data/lib/moov/models/components/updateissuingcontrolserror.rb +0 -48
  433. data/lib/moov/models/components/updateissuingcontrolserror.rbi +0 -21
  434. data/lib/moov/models/components/webhookdataeventtest.rbi +0 -13
  435. data/lib/moov/models/errors/invoicenotificationerror.rb +0 -36
  436. data/lib/moov/models/errors/invoicenotificationerror.rbi +0 -15
  437. data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +0 -44
  438. data/lib/moov/models/errors/invoicenotificationratelimitederror.rbi +0 -19
  439. data/lib/moov/models/operations/createinvoicenotification_request.rb +0 -40
  440. data/lib/moov/models/operations/createinvoicenotification_request.rbi +0 -17
  441. data/lib/moov/models/operations/createinvoicenotification_response.rb +0 -44
  442. data/lib/moov/models/operations/createinvoicenotification_response.rbi +0 -19
  443. data/lib/moov/models/operations/deleteavatar_request.rb +0 -32
  444. data/lib/moov/models/operations/deleteavatar_request.rbi +0 -13
  445. data/lib/moov/models/operations/deleteavatar_response.rb +0 -44
  446. data/lib/moov/models/operations/deleteavatar_response.rbi +0 -19
  447. data/lib/moov/models/operations/deleteavatar_security.rb +0 -36
  448. data/lib/moov/models/operations/deleteavatar_security.rbi +0 -15
  449. data/lib/moov/models/operations/listissuingmerchantcategories_response.rb +0 -48
  450. data/lib/moov/models/operations/listproductcategories_response.rbi +0 -21
  451. data/lib/moov/models/operations/uploadavatar_request.rb +0 -36
  452. data/lib/moov/models/operations/uploadavatar_request.rbi +0 -15
  453. data/lib/moov/models/operations/uploadavatar_response.rb +0 -44
  454. data/lib/moov/models/operations/uploadavatar_response.rbi +0 -19
  455. data/lib/moov/models/operations/uploadavatar_security.rb +0 -36
  456. data/lib/moov/models/operations/uploadavatar_security.rbi +0 -15
  457. data/lib/moov/sdk_hooks/clientcredentials.rb +0 -386
  458. data/lib/moov/sdk_hooks/oauth2scopes.rb +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '056404601592483f61cd96209f30f7fa2e6678857334b8ddb1e2031a5ebaad19'
4
- data.tar.gz: aa948b716cdf93fdcaf5ab6c38fb4bd8fd2a1ca27210c46f00c6012d44248597
3
+ metadata.gz: c77bbc725f68cede57f1adda1d48f0f6f4c1ab78645734966d6fd09845a7d7c4
4
+ data.tar.gz: a93a955ff6d05c724042a966f86e8059676efdfcd666e8be6e7d1bef2e8afd4a
5
5
  SHA512:
6
- metadata.gz: eb4103b1ab602aa2ec46013374683d53b567154e20ac375592c6b81d28bd9d0be72ec9f6447be0cb60063800613c2311523500ca0a5c6fcda84ac65ff00589a3
7
- data.tar.gz: c18153fa936791c5420e0810f7db97347b3b4200f964d60615cad84f8e3ff3b5126647a9db414376e36a12765ee20b8c9020a6d9944e97874e780afcbd4b67bd
6
+ metadata.gz: 9aedc88867bbbd6d40de65e27b7d7b8dbdf8af12bd9dafa94b46a2903e60c21b8171bd62ec8156497e666d8ae9ce3f821de00cc60824020aff88ac1c1a717485
7
+ data.tar.gz: 88cc77ac6ceeabe19385945a5423ca7b0c6809e77d6410046efc1c0d0af6c2363e14bd1f94c7fecd00b4fb4a94ed858323402b33755b83847ce11c4b4568b6a3
@@ -4,7 +4,7 @@
4
4
  # frozen_string_literal: true
5
5
 
6
6
  module Crystalline
7
- @union_strategy = :populated_fields
7
+ @union_strategy = :left_to_right
8
8
 
9
9
  class << self
10
10
  attr_accessor :union_strategy
data/lib/moov/avatars.rb CHANGED
@@ -45,7 +45,7 @@ module Moov
45
45
  def get(unique_id:, timeout_ms: nil, http_headers: nil)
46
46
  # get - Get avatar image for an account using a unique ID.
47
47
  #
48
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
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 `/profile-enrichment.read` scope.
50
50
  request = Models::Operations::GetAvatarRequest.new(
51
51
  unique_id: unique_id
@@ -159,280 +159,5 @@ module Moov
159
159
 
160
160
  end
161
161
  end
162
-
163
-
164
- sig { params(security: Models::Operations::UploadAvatarSecurity, avatar_upload_request: Models::Components::AvatarUploadRequest, unique_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UploadAvatarResponse) }
165
- def upload(security:, avatar_upload_request:, unique_id:, timeout_ms: nil, http_headers: nil)
166
- # upload - Upload a user avatar image for an account.
167
- #
168
- # The image will be normalized to 512x512 PNG format and stored separately from
169
- # automatically discovered logos. User-uploaded avatars take precedence over enriched avatars at read time.
170
- #
171
- # This endpoint only accepts accountID values for the uniqueID parameter.
172
- #
173
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
174
- # you'll need to specify the `/accounts.write` scope.
175
- request = Models::Operations::UploadAvatarRequest.new(
176
- unique_id: unique_id,
177
- avatar_upload_request: avatar_upload_request
178
- )
179
- url, params = @sdk_configuration.get_server_details
180
- base_url = Utils.template_url(url, params)
181
- url = Utils.generate_url(
182
- Models::Operations::UploadAvatarRequest,
183
- base_url,
184
- '/avatars/{uniqueID}',
185
- request
186
- )
187
- headers = {}
188
- headers = T.cast(headers, T::Hash[String, String])
189
- req_content_type, data, form = Utils.serialize_request_body(request, false, false, :avatar_upload_request, :multipart)
190
- headers['content-type'] = req_content_type
191
- raise StandardError, 'request body is required' if data.nil? && form.nil?
192
-
193
- if form && !form.empty?
194
- body = Utils.encode_form(form)
195
- elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
196
- body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
197
- else
198
- body = data
199
- end
200
- headers['Accept'] = 'application/json'
201
- headers['user-agent'] = @sdk_configuration.user_agent
202
-
203
- timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
204
- timeout ||= @sdk_configuration.timeout
205
-
206
-
207
- connection = @sdk_configuration.client
208
-
209
- hook_ctx = SDKHooks::HookContext.new(
210
- config: @sdk_configuration,
211
- base_url: base_url,
212
- oauth2_scopes: ['/accounts.write'],
213
- operation_id: 'uploadAvatar',
214
- security_source: -> { security }
215
- )
216
-
217
- error = T.let(nil, T.nilable(StandardError))
218
- http_response = T.let(nil, T.nilable(Faraday::Response))
219
-
220
-
221
- begin
222
- http_response = T.must(connection).put(url) do |req|
223
- req.body = body
224
- req.headers.merge!(headers)
225
- req.options.timeout = timeout unless timeout.nil?
226
- Utils.configure_request_security(req, security)
227
- http_headers&.each do |key, value|
228
- req.headers[key.to_s] = value
229
- end
230
-
231
- @sdk_configuration.hooks.before_request(
232
- hook_ctx: SDKHooks::BeforeRequestHookContext.new(
233
- hook_ctx: hook_ctx
234
- ),
235
- request: req
236
- )
237
- end
238
- rescue StandardError => e
239
- error = e
240
- ensure
241
- if http_response.nil? || Utils.error_status?(http_response.status)
242
- http_response = @sdk_configuration.hooks.after_error(
243
- error: error,
244
- hook_ctx: SDKHooks::AfterErrorHookContext.new(
245
- hook_ctx: hook_ctx
246
- ),
247
- response: http_response
248
- )
249
- else
250
- http_response = @sdk_configuration.hooks.after_success(
251
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
252
- hook_ctx: hook_ctx
253
- ),
254
- response: http_response
255
- )
256
- end
257
-
258
- if http_response.nil?
259
- raise error if !error.nil?
260
- raise 'no response'
261
- end
262
- end
263
-
264
- content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
265
- if Utils.match_status_code(http_response.status, ['204'])
266
- http_response = @sdk_configuration.hooks.after_success(
267
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
268
- hook_ctx: hook_ctx
269
- ),
270
- response: http_response
271
- )
272
- return Models::Operations::UploadAvatarResponse.new(
273
- status_code: http_response.status,
274
- content_type: content_type,
275
- raw_response: http_response,
276
- headers: {}
277
- )
278
- elsif Utils.match_status_code(http_response.status, ['400'])
279
- if Utils.match_content_type(content_type, 'application/json')
280
- http_response = @sdk_configuration.hooks.after_success(
281
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
282
- hook_ctx: hook_ctx
283
- ),
284
- response: http_response
285
- )
286
- response_data = http_response.env.response_body
287
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
288
- obj.raw_response = http_response
289
- raise obj
290
- else
291
- 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'
292
- end
293
- elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '413', '415', '429'])
294
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
295
- elsif Utils.match_status_code(http_response.status, ['500', '504'])
296
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
297
- elsif Utils.match_status_code(http_response.status, ['4XX'])
298
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
299
- elsif Utils.match_status_code(http_response.status, ['5XX'])
300
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
301
- else
302
- 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'
303
-
304
- end
305
- end
306
-
307
-
308
- sig { params(security: Models::Operations::DeleteAvatarSecurity, unique_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DeleteAvatarResponse) }
309
- def delete(security:, unique_id:, timeout_ms: nil, http_headers: nil)
310
- # delete - Delete a user-uploaded avatar for an account.
311
- #
312
- # After deletion, the avatar endpoint will fall back to the enriched avatar
313
- # or an account-type-aware fallback icon.
314
- #
315
- # This endpoint only accepts accountID values for the uniqueID parameter.
316
- #
317
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
318
- # you'll need to specify the `/accounts.write` scope.
319
- request = Models::Operations::DeleteAvatarRequest.new(
320
- unique_id: unique_id
321
- )
322
- url, params = @sdk_configuration.get_server_details
323
- base_url = Utils.template_url(url, params)
324
- url = Utils.generate_url(
325
- Models::Operations::DeleteAvatarRequest,
326
- base_url,
327
- '/avatars/{uniqueID}',
328
- request
329
- )
330
- headers = {}
331
- headers = T.cast(headers, T::Hash[String, String])
332
- headers['Accept'] = 'application/json'
333
- headers['user-agent'] = @sdk_configuration.user_agent
334
-
335
- timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
336
- timeout ||= @sdk_configuration.timeout
337
-
338
-
339
- connection = @sdk_configuration.client
340
-
341
- hook_ctx = SDKHooks::HookContext.new(
342
- config: @sdk_configuration,
343
- base_url: base_url,
344
- oauth2_scopes: ['/accounts.write'],
345
- operation_id: 'deleteAvatar',
346
- security_source: -> { security }
347
- )
348
-
349
- error = T.let(nil, T.nilable(StandardError))
350
- http_response = T.let(nil, T.nilable(Faraday::Response))
351
-
352
-
353
- begin
354
- http_response = T.must(connection).delete(url) do |req|
355
- req.headers.merge!(headers)
356
- req.options.timeout = timeout unless timeout.nil?
357
- Utils.configure_request_security(req, security)
358
- http_headers&.each do |key, value|
359
- req.headers[key.to_s] = value
360
- end
361
-
362
- @sdk_configuration.hooks.before_request(
363
- hook_ctx: SDKHooks::BeforeRequestHookContext.new(
364
- hook_ctx: hook_ctx
365
- ),
366
- request: req
367
- )
368
- end
369
- rescue StandardError => e
370
- error = e
371
- ensure
372
- if http_response.nil? || Utils.error_status?(http_response.status)
373
- http_response = @sdk_configuration.hooks.after_error(
374
- error: error,
375
- hook_ctx: SDKHooks::AfterErrorHookContext.new(
376
- hook_ctx: hook_ctx
377
- ),
378
- response: http_response
379
- )
380
- else
381
- http_response = @sdk_configuration.hooks.after_success(
382
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
383
- hook_ctx: hook_ctx
384
- ),
385
- response: http_response
386
- )
387
- end
388
-
389
- if http_response.nil?
390
- raise error if !error.nil?
391
- raise 'no response'
392
- end
393
- end
394
-
395
- content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
396
- if Utils.match_status_code(http_response.status, ['204'])
397
- http_response = @sdk_configuration.hooks.after_success(
398
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
399
- hook_ctx: hook_ctx
400
- ),
401
- response: http_response
402
- )
403
- return Models::Operations::DeleteAvatarResponse.new(
404
- status_code: http_response.status,
405
- content_type: content_type,
406
- raw_response: http_response,
407
- headers: {}
408
- )
409
- elsif Utils.match_status_code(http_response.status, ['400'])
410
- if Utils.match_content_type(content_type, 'application/json')
411
- http_response = @sdk_configuration.hooks.after_success(
412
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
413
- hook_ctx: hook_ctx
414
- ),
415
- response: http_response
416
- )
417
- response_data = http_response.env.response_body
418
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
419
- obj.raw_response = http_response
420
- raise obj
421
- else
422
- 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'
423
- end
424
- elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
425
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
426
- elsif Utils.match_status_code(http_response.status, ['500', '504'])
427
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
428
- elsif Utils.match_status_code(http_response.status, ['4XX'])
429
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
430
- elsif Utils.match_status_code(http_response.status, ['5XX'])
431
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
432
- else
433
- 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'
434
-
435
- end
436
- end
437
162
  end
438
163
  end
@@ -41,122 +41,6 @@ module Moov
41
41
 
42
42
 
43
43
 
44
- sig { params(timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListIssuingMerchantCategoriesResponse) }
45
- def list_merchant_categories(timeout_ms: nil, http_headers: nil)
46
- # list_merchant_categories - List the predefined merchant category groups available for issued card spend controls, along with
47
- # the merchant category codes (MCCs) each group covers. Use these category names in an issued card's
48
- # `merchantCategoryRestrictions`.
49
- #
50
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
51
- # you'll need to specify the `/issued-cards.read` scope.
52
- url, params = @sdk_configuration.get_server_details
53
- base_url = Utils.template_url(url, params)
54
- url = "#{base_url}/issuing/merchant-categories"
55
- headers = {}
56
- headers = T.cast(headers, T::Hash[String, String])
57
- headers['Accept'] = 'application/json'
58
- headers['user-agent'] = @sdk_configuration.user_agent
59
-
60
- security = @sdk_configuration.security_source&.call
61
-
62
- timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
63
- timeout ||= @sdk_configuration.timeout
64
-
65
-
66
- connection = @sdk_configuration.client
67
-
68
- hook_ctx = SDKHooks::HookContext.new(
69
- config: @sdk_configuration,
70
- base_url: base_url,
71
- oauth2_scopes: nil,
72
- operation_id: 'listIssuingMerchantCategories',
73
- security_source: @sdk_configuration.security_source
74
- )
75
-
76
- error = T.let(nil, T.nilable(StandardError))
77
- http_response = T.let(nil, T.nilable(Faraday::Response))
78
-
79
-
80
- begin
81
- http_response = T.must(connection).get(url) do |req|
82
- req.headers.merge!(headers)
83
- req.options.timeout = timeout unless timeout.nil?
84
- Utils.configure_request_security(req, security)
85
- http_headers&.each do |key, value|
86
- req.headers[key.to_s] = value
87
- end
88
-
89
- @sdk_configuration.hooks.before_request(
90
- hook_ctx: SDKHooks::BeforeRequestHookContext.new(
91
- hook_ctx: hook_ctx
92
- ),
93
- request: req
94
- )
95
- end
96
- rescue StandardError => e
97
- error = e
98
- ensure
99
- if http_response.nil? || Utils.error_status?(http_response.status)
100
- http_response = @sdk_configuration.hooks.after_error(
101
- error: error,
102
- hook_ctx: SDKHooks::AfterErrorHookContext.new(
103
- hook_ctx: hook_ctx
104
- ),
105
- response: http_response
106
- )
107
- else
108
- http_response = @sdk_configuration.hooks.after_success(
109
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
110
- hook_ctx: hook_ctx
111
- ),
112
- response: http_response
113
- )
114
- end
115
-
116
- if http_response.nil?
117
- raise error if !error.nil?
118
- raise 'no response'
119
- end
120
- end
121
-
122
- content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
123
- if Utils.match_status_code(http_response.status, ['200'])
124
- if Utils.match_content_type(content_type, 'application/json')
125
- http_response = @sdk_configuration.hooks.after_success(
126
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
127
- hook_ctx: hook_ctx
128
- ),
129
- response: http_response
130
- )
131
- response_data = http_response.env.response_body
132
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::MerchantCategories)
133
- response = Models::Operations::ListIssuingMerchantCategoriesResponse.new(
134
- status_code: http_response.status,
135
- content_type: content_type,
136
- raw_response: http_response,
137
- headers: http_response.headers,
138
- merchant_categories: T.unsafe(obj)
139
- )
140
-
141
- return response
142
- else
143
- 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'
144
- end
145
- elsif Utils.match_status_code(http_response.status, ['401', '403', '429'])
146
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
147
- elsif Utils.match_status_code(http_response.status, ['500', '504'])
148
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
149
- elsif Utils.match_status_code(http_response.status, ['4XX'])
150
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
151
- elsif Utils.match_status_code(http_response.status, ['5XX'])
152
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
153
- else
154
- 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'
155
-
156
- end
157
- end
158
-
159
-
160
44
  sig { params(request_card: Models::Components::RequestCard, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::RequestCardResponse) }
161
45
  def request(request_card:, account_id:, timeout_ms: nil, http_headers: nil)
162
46
  # request - Request a virtual card be issued.
@@ -745,7 +629,7 @@ module Moov
745
629
  # Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
746
630
  #
747
631
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
748
- # you'll need to specify the `/accounts/{accountID}/issued-cards.read-private` scope.
632
+ # you'll need to specify the `/accounts/{accountID}/issued-cards.read-secure` scope.
749
633
  request = Models::Operations::GetFullIssuedCardRequest.new(
750
634
  account_id: account_id,
751
635
  issued_card_id: issued_card_id
data/lib/moov/client.rb CHANGED
@@ -16,7 +16,7 @@ module Moov
16
16
  class Client
17
17
  extend T::Sig
18
18
 
19
- attr_accessor :accounts, :adjustments, :apple_pay, :bank_accounts, :branding, :capabilities, :cards, :disputes, :fee_plans, :files, :google_pay, :images, :invoices, :payment_links, :payment_methods, :products, :representatives, :resolution_links, :scheduling, :statements, :sweeps, :account_terminal_applications, :support, :transfer_config, :transfers, :underwriting, :wallets, :wallet_transactions, :avatars, :end_to_end_encryption, :enriched_address, :enriched_profile, :webhooks, :industries, :institutions, :card_issuing, :issuing_transactions, :authentication, :onboarding, :ping, :receipts, :terminal_applications, :deposit_view
19
+ attr_accessor :accounts, :adjustments, :apple_pay, :bank_accounts, :branding, :capabilities, :cards, :disputes, :fee_plans, :files, :google_pay, :images, :invoices, :payment_links, :payment_methods, :products, :representatives, :resolution_links, :scheduling, :statements, :sweeps, :account_terminal_applications, :support, :transfer_config, :transfers, :underwriting, :wallets, :wallet_transactions, :avatars, :end_to_end_encryption, :enriched_address, :enriched_profile, :webhooks, :industries, :institutions, :issuing_transactions, :card_issuing, :authentication, :onboarding, :ping, :receipts, :terminal_applications, :deposit_view
20
20
 
21
21
  # Instantiates the SDK, configuring it with the provided parameters.
22
22
  #
@@ -113,8 +113,8 @@ module Moov
113
113
  @webhooks = Webhooks.new(@sdk_configuration)
114
114
  @industries = Industries.new(@sdk_configuration)
115
115
  @institutions = Institutions.new(@sdk_configuration)
116
- @card_issuing = CardIssuing.new(@sdk_configuration)
117
116
  @issuing_transactions = IssuingTransactions.new(@sdk_configuration)
117
+ @card_issuing = CardIssuing.new(@sdk_configuration)
118
118
  @authentication = Authentication.new(@sdk_configuration)
119
119
  @onboarding = Onboarding.new(@sdk_configuration)
120
120
  @ping = Ping.new(@sdk_configuration)
@@ -45,7 +45,7 @@ module Moov
45
45
  def get(request:, timeout_ms: nil, http_headers: nil)
46
46
  # get - Fetch enriched address suggestions. Requires a partial address.
47
47
  #
48
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
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 `/profile-enrichment.read` scope.
50
50
  url, params = @sdk_configuration.get_server_details
51
51
  base_url = Utils.template_url(url, params)
@@ -45,7 +45,7 @@ module Moov
45
45
  def get(email:, timeout_ms: nil, http_headers: nil)
46
46
  # get - Fetch enriched profile data. Requires a valid email address. This service is offered in collaboration with Clearbit.
47
47
  #
48
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
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 `/profile-enrichment.read` scope.
50
50
  request = Models::Operations::GetEnrichmentProfileRequest.new(
51
51
  email: email
data/lib/moov/images.rb CHANGED
@@ -167,7 +167,7 @@ module Moov
167
167
  sig { params(image_upload_request_multi_part: Models::Components::ImageUploadRequestMultiPart, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UploadImageResponse) }
168
168
  def upload(image_upload_request_multi_part:, account_id:, timeout_ms: nil, http_headers: nil)
169
169
  # upload - Upload a new PNG, JPEG, or WebP image with optional metadata.
170
- # Duplicate images return the existing image's metadata with a 409 status. Requests larger than 16MB will be rejected.
170
+ # Duplicate images, and requests larger than 16MB will be rejected.
171
171
  request = Models::Operations::UploadImageRequest.new(
172
172
  account_id: account_id,
173
173
  image_upload_request_multi_part: image_upload_request_multi_part
@@ -168,11 +168,11 @@ module Moov
168
168
 
169
169
  sig { params(name: T.nilable(::String), routing_number: T.nilable(::String), state: T.nilable(::String), limit: T.nilable(::Integer), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListInstitutionsResponse) }
170
170
  def search(name: nil, routing_number: nil, state: nil, limit: nil, timeout_ms: nil, http_headers: nil)
171
- # search - This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/institutions/get/).
171
+ # search - This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/form-shortening/institutions/get/).
172
172
  #
173
173
  # Search for institutions by either their name or routing number.
174
174
  #
175
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
175
+ # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
176
176
  # you'll need to specify the `/fed.read` scope.
177
177
  #
178
178
  # @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.