moov_ruby 26.10.0.pre.dev.10 → 26.10.0.pre.dev.11

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 (430) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moov/account_terminal_applications.rb +25 -25
  3. data/lib/moov/accounts.rb +70 -70
  4. data/lib/moov/adjustments.rb +11 -11
  5. data/lib/moov/apple_pay.rb +38 -38
  6. data/lib/moov/authentication.rb +18 -18
  7. data/lib/moov/avatars.rb +17 -17
  8. data/lib/moov/bank_accounts.rb +78 -78
  9. data/lib/moov/branding.rb +24 -24
  10. data/lib/moov/capabilities.rb +25 -25
  11. data/lib/moov/card_issuing.rb +66 -66
  12. data/lib/moov/cards.rb +44 -44
  13. data/lib/moov/client.rb +5 -5
  14. data/lib/moov/deposit_view.rb +10 -10
  15. data/lib/moov/disputes.rb +68 -68
  16. data/lib/moov/end_to_end_encryption.rb +13 -13
  17. data/lib/moov/enriched_address.rb +6 -6
  18. data/lib/moov/enriched_profile.rb +6 -6
  19. data/lib/moov/fee_plans.rb +56 -56
  20. data/lib/moov/files.rb +24 -24
  21. data/lib/moov/google_pay.rb +10 -10
  22. data/lib/moov/images.rb +48 -48
  23. data/lib/moov/industries.rb +6 -6
  24. data/lib/moov/institutions.rb +12 -12
  25. data/lib/moov/invoices.rb +78 -60
  26. data/lib/moov/issuing_transactions.rb +36 -36
  27. data/lib/moov/models/components/account.rb +2 -2
  28. data/lib/moov/models/components/achfees.rb +6 -2
  29. data/lib/moov/models/components/achfees.rbi +2 -0
  30. data/lib/moov/models/components/allowedscheduleerror.rb +2 -2
  31. data/lib/moov/models/components/billablefee.rb +2 -2
  32. data/lib/moov/models/components/capture.rb +2 -2
  33. data/lib/moov/models/components/capturemethod.rb +21 -0
  34. data/lib/moov/models/components/capturemethod.rbi +11 -0
  35. data/lib/moov/models/components/cardpaymentoptions.rb +14 -2
  36. data/lib/moov/models/components/cardpaymentoptions.rbi +6 -0
  37. data/lib/moov/models/components/createaccount.rb +2 -2
  38. data/lib/moov/models/components/createcapture.rb +2 -2
  39. data/lib/moov/models/components/createcardpaymentoptions.rb +55 -0
  40. data/lib/moov/models/components/createcardpaymentoptions.rbi +21 -0
  41. data/lib/moov/models/components/createcardpaymentoptions_capturemethod.rb +20 -0
  42. data/lib/moov/models/components/createcardpaymentoptions_capturemethod.rbi +11 -0
  43. data/lib/moov/models/components/createdtransfer.rb +2 -2
  44. data/lib/moov/models/components/createinvoicelineitemsvalidationerror.rb +2 -2
  45. data/lib/moov/models/components/createinvoicelineitemvalidationerror.rb +2 -2
  46. data/lib/moov/models/components/createpaymentlinklineitemsvalidationerror.rb +2 -2
  47. data/lib/moov/models/components/createpaymentlinklineitemvalidationerror.rb +2 -2
  48. data/lib/moov/models/components/createreversal.rb +4 -4
  49. data/lib/moov/models/components/createtransfer.rb +3 -3
  50. data/lib/moov/models/components/createtransferachaddendarecord.rb +1 -1
  51. data/lib/moov/models/components/createtransferlineitemsvalidationerror.rb +2 -2
  52. data/lib/moov/models/components/createtransferlineitemvalidationerror.rb +2 -2
  53. data/lib/moov/models/components/createtransferrailoptions.rb +3 -3
  54. data/lib/moov/models/components/createtransfersource.rb +1 -1
  55. data/lib/moov/models/components/createwallet.rb +2 -2
  56. data/lib/moov/models/components/fullissuedcard.rb +2 -2
  57. data/lib/moov/models/components/invoicelineitemsvalidationerror.rb +2 -2
  58. data/lib/moov/models/components/invoicelineitemvalidationerror.rb +2 -2
  59. data/lib/moov/models/components/issuedcard.rb +2 -2
  60. data/lib/moov/models/components/issuingcontrolserror.rb +2 -2
  61. data/lib/moov/models/components/merchantcategoryrestrictionserror.rb +4 -4
  62. data/lib/moov/models/components/merchantrestrictionserror.rb +2 -2
  63. data/lib/moov/models/components/patchaccount.rb +2 -2
  64. data/lib/moov/models/components/patchtransfer.rb +2 -2
  65. data/lib/moov/models/components/patchwallet.rb +2 -2
  66. data/lib/moov/models/components/paymentlinkcustomamountpaymentdetails.rb +2 -2
  67. data/lib/moov/models/components/paymentlinkcustomamountpaymentdetailsupdate.rb +2 -2
  68. data/lib/moov/models/components/paymentlinkcustomeroptions.rb +2 -2
  69. data/lib/moov/models/components/paymentlinkpaymentdetails.rb +2 -2
  70. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb +2 -2
  71. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +3 -3
  72. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +3 -3
  73. data/lib/moov/models/components/pingresponse.rb +2 -2
  74. data/lib/moov/models/components/productoptiongroupvalidationerror.rb +2 -2
  75. data/lib/moov/models/components/productoptionvalidationerror.rb +2 -2
  76. data/lib/moov/models/components/requestcard.rb +2 -2
  77. data/lib/moov/models/components/transfer.rb +2 -2
  78. data/lib/moov/models/components/transferauthorization.rb +6 -2
  79. data/lib/moov/models/components/transferauthorization.rbi +2 -0
  80. data/lib/moov/models/components/transferevent.rb +48 -0
  81. data/lib/moov/models/components/transferevent.rbi +21 -0
  82. data/lib/moov/models/components/transfereventachdetails.rb +40 -0
  83. data/lib/moov/models/components/transfereventachdetails.rbi +17 -0
  84. data/lib/moov/models/components/transfereventauthorizationdetails.rb +40 -0
  85. data/lib/moov/models/components/transfereventauthorizationdetails.rbi +17 -0
  86. data/lib/moov/models/components/transfereventauthorizationstatus.rb +22 -0
  87. data/lib/moov/models/components/transfereventauthorizationstatus.rbi +11 -0
  88. data/lib/moov/models/components/transfereventcancellationdetails.rb +36 -0
  89. data/lib/moov/models/components/transfereventcancellationdetails.rbi +15 -0
  90. data/lib/moov/models/components/transfereventcapturedetails.rb +40 -0
  91. data/lib/moov/models/components/transfereventcapturedetails.rbi +17 -0
  92. data/lib/moov/models/components/transfereventcardpaymentdetails.rb +36 -0
  93. data/lib/moov/models/components/transfereventcardpaymentdetails.rbi +15 -0
  94. data/lib/moov/models/components/transfereventdetails.rb +84 -0
  95. data/lib/moov/models/components/transfereventdetails.rbi +39 -0
  96. data/lib/moov/models/components/transfereventdisputedetails.rb +46 -0
  97. data/lib/moov/models/components/transfereventdisputedetails.rbi +19 -0
  98. data/lib/moov/models/components/transfereventinstantbankcreditdetails.rb +36 -0
  99. data/lib/moov/models/components/transfereventinstantbankcreditdetails.rbi +15 -0
  100. data/lib/moov/models/components/transfereventpullfromcarddetails.rb +36 -0
  101. data/lib/moov/models/components/transfereventpullfromcarddetails.rbi +15 -0
  102. data/lib/moov/models/components/transfereventpushtocarddetails.rb +36 -0
  103. data/lib/moov/models/components/transfereventpushtocarddetails.rbi +15 -0
  104. data/lib/moov/models/components/transfereventrefunddetails.rb +44 -0
  105. data/lib/moov/models/components/transfereventrefunddetails.rbi +19 -0
  106. data/lib/moov/models/components/transfereventtransferdetails.rb +32 -0
  107. data/lib/moov/models/components/transfereventtransferdetails.rbi +13 -0
  108. data/lib/moov/models/components/transfereventtype.rb +33 -0
  109. data/lib/moov/models/components/transfereventtype.rbi +11 -0
  110. data/lib/moov/models/components/transfereventwallettransactiondetails.rb +48 -0
  111. data/lib/moov/models/components/transfereventwallettransactiondetails.rbi +21 -0
  112. data/lib/moov/models/components/updateinvoice.rb +2 -2
  113. data/lib/moov/models/components/updateinvoicestatus.rb +19 -0
  114. data/lib/moov/models/components/updateinvoicestatus.rbi +11 -0
  115. data/lib/moov/models/components/updateissuedcard.rb +2 -2
  116. data/lib/moov/models/components/updateissuingcontrolserror.rb +2 -2
  117. data/lib/moov/models/components/wallet.rb +2 -2
  118. data/lib/moov/models/components.rb +20 -0
  119. data/lib/moov/models/errors/accountterminalapplicationerror.rb +1 -1
  120. data/lib/moov/models/errors/addcapabilitieserror.rb +3 -3
  121. data/lib/moov/models/errors/apierror.rb +1 -1
  122. data/lib/moov/models/errors/assigncountrieserror.rb +3 -3
  123. data/lib/moov/models/errors/authorizationsimulationvalidationerror.rb +1 -1
  124. data/lib/moov/models/errors/authtokenrequesterror.rb +1 -1
  125. data/lib/moov/models/errors/bankaccountattestationvalidationerror.rb +1 -1
  126. data/lib/moov/models/errors/bankaccountvalidationerror.rb +1 -1
  127. data/lib/moov/models/errors/brandvalidationerror.rb +1 -1
  128. data/lib/moov/models/errors/capturevalidationerror.rb +1 -1
  129. data/lib/moov/models/errors/cardacquiringrefund_error.rb +1 -1
  130. data/lib/moov/models/errors/cardmetadatarequesterror.rb +1 -1
  131. data/lib/moov/models/errors/clearingsimulationvalidationerror.rb +1 -1
  132. data/lib/moov/models/errors/connectaccountrequestvalidationerror.rb +3 -3
  133. data/lib/moov/models/errors/createaccounterror.rb +3 -3
  134. data/lib/moov/models/errors/createinvoiceerror.rb +1 -1
  135. data/lib/moov/models/errors/createinvoicepaymenterror.rb +1 -1
  136. data/lib/moov/models/errors/createpaymentlinkerror.rb +1 -1
  137. data/lib/moov/models/errors/createresolutionlinkerror.rb +1 -1
  138. data/lib/moov/models/errors/createsweepconfigerror.rb +1 -1
  139. data/lib/moov/models/errors/createticketerror.rb +1 -1
  140. data/lib/moov/models/errors/createwalletvalidationerror.rb +1 -1
  141. data/lib/moov/models/errors/createwebhookvalidationerror.rb +1 -1
  142. data/lib/moov/models/errors/depositaccountvalidationerror.rb +1 -1
  143. data/lib/moov/models/errors/duplicatecarderror.rb +1 -1
  144. data/lib/moov/models/errors/feeplanagreementerror.rb +1 -1
  145. data/lib/moov/models/errors/fileuploadvalidationerror.rb +1 -1
  146. data/lib/moov/models/errors/filevalidationerror.rb +1 -1
  147. data/lib/moov/models/errors/genericerror.rb +1 -1
  148. data/lib/moov/models/errors/imagemetadata_error.rb +1 -1
  149. data/lib/moov/models/errors/imagemetadatavalidationerror.rb +1 -1
  150. data/lib/moov/models/errors/imagerequestvalidationerror.rb +1 -1
  151. data/lib/moov/models/errors/invoicenotificationerror.rb +1 -1
  152. data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +1 -1
  153. data/lib/moov/models/errors/linkapplepayerror.rb +1 -1
  154. data/lib/moov/models/errors/linkcarderror.rb +1 -1
  155. data/lib/moov/models/errors/linkgooglepayerror.rb +1 -1
  156. data/lib/moov/models/errors/listinvoicesvalidationerror.rb +1 -1
  157. data/lib/moov/models/errors/listtransfersvalidationerror.rb +1 -1
  158. data/lib/moov/models/errors/listwalletsvalidationerror.rb +1 -1
  159. data/lib/moov/models/errors/listwallettransactionsvalidationerror.rb +1 -1
  160. data/lib/moov/models/errors/microdepositvalidationerror.rb +1 -1
  161. data/lib/moov/models/errors/onboardinginviteerror.rb +5 -5
  162. data/lib/moov/models/errors/patchaccounterror.rb +1 -1
  163. data/lib/moov/models/errors/patchsweepconfigerror.rb +1 -1
  164. data/lib/moov/models/errors/patchtransfervalidationerror.rb +1 -1
  165. data/lib/moov/models/errors/patchwalletvalidationerror.rb +1 -1
  166. data/lib/moov/models/errors/productrequestvalidationerror.rb +4 -4
  167. data/lib/moov/models/errors/refundvalidationerror.rb +1 -1
  168. data/lib/moov/models/errors/representativevalidationerror.rb +1 -1
  169. data/lib/moov/models/errors/requestcarderror.rb +1 -1
  170. data/lib/moov/models/errors/reversalvalidationerror.rb +1 -1
  171. data/lib/moov/models/errors/revoketokenrequesterror.rb +1 -1
  172. data/lib/moov/models/errors/schedulevalidationerror.rb +3 -3
  173. data/lib/moov/models/errors/terminalapplicationerror.rb +1 -1
  174. data/lib/moov/models/errors/transfer_error.rb +3 -3
  175. data/lib/moov/models/errors/transferconfigvalidationerror.rb +4 -4
  176. data/lib/moov/models/errors/transferoptionsvalidationerror.rb +1 -1
  177. data/lib/moov/models/errors/transfervalidationerror.rb +1 -1
  178. data/lib/moov/models/errors/updatecarderror.rb +1 -1
  179. data/lib/moov/models/errors/updateinvoiceerror.rb +1 -1
  180. data/lib/moov/models/errors/updateissuedcarderror.rb +1 -1
  181. data/lib/moov/models/errors/updatepaymentlinkerror.rb +1 -1
  182. data/lib/moov/models/errors/updateticketerror.rb +1 -1
  183. data/lib/moov/models/errors/updateunderwritingerror.rb +1 -1
  184. data/lib/moov/models/errors/updatewebhookvalidationerror.rb +1 -1
  185. data/lib/moov/models/errors/upsertunderwritingerror.rb +1 -1
  186. data/lib/moov/models/operations/acceptdispute_response.rb +2 -2
  187. data/lib/moov/models/operations/assignaccountcountries_response.rb +2 -2
  188. data/lib/moov/models/operations/batchgettransfers_response.rb +3 -3
  189. data/lib/moov/models/operations/cancelschedule_response.rb +2 -2
  190. data/lib/moov/models/operations/completebankaccountverification_response.rb +2 -2
  191. data/lib/moov/models/operations/completemicrodeposits_response.rb +2 -2
  192. data/lib/moov/models/operations/connectaccount_response.rb +2 -2
  193. data/lib/moov/models/operations/createaccesstoken_response.rb +2 -2
  194. data/lib/moov/models/operations/createaccount_response.rb +2 -2
  195. data/lib/moov/models/operations/createapplepaysession_response.rb +2 -2
  196. data/lib/moov/models/operations/createauthorizationsimulation_response.rb +2 -2
  197. data/lib/moov/models/operations/createbankaccountattestation_response.rb +2 -2
  198. data/lib/moov/models/operations/createbrand_response.rb +2 -2
  199. data/lib/moov/models/operations/createcapture_response.rb +2 -2
  200. data/lib/moov/models/operations/createclearingsimulation_response.rb +2 -2
  201. data/lib/moov/models/operations/createdepositaccount_response.rb +2 -2
  202. data/lib/moov/models/operations/createfeeplanagreements_response.rb +2 -2
  203. data/lib/moov/models/operations/createinvoice_response.rb +2 -2
  204. data/lib/moov/models/operations/createinvoicenotification_response.rb +2 -2
  205. data/lib/moov/models/operations/createinvoicepayment_response.rb +2 -2
  206. data/lib/moov/models/operations/createonboardinginvite_response.rb +2 -2
  207. data/lib/moov/models/operations/createpaymentlink_response.rb +2 -2
  208. data/lib/moov/models/operations/createproduct_response.rb +2 -2
  209. data/lib/moov/models/operations/createreceipts_response.rb +2 -2
  210. data/lib/moov/models/operations/createrepresentative_response.rb +2 -2
  211. data/lib/moov/models/operations/createresolutionlink_response.rb +2 -2
  212. data/lib/moov/models/operations/createreversal_response.rb +2 -2
  213. data/lib/moov/models/operations/createreversalsimulation_response.rb +2 -2
  214. data/lib/moov/models/operations/createschedule_response.rb +2 -2
  215. data/lib/moov/models/operations/createsweepconfig_response.rb +2 -2
  216. data/lib/moov/models/operations/createterminalapplication_response.rb +2 -2
  217. data/lib/moov/models/operations/createterminalapplicationversion_response.rb +2 -2
  218. data/lib/moov/models/operations/createticket_response.rb +2 -2
  219. data/lib/moov/models/operations/createtransfer_response.rb +2 -2
  220. data/lib/moov/models/operations/createtransferconfig_response.rb +2 -2
  221. data/lib/moov/models/operations/createtransferoptions_response.rb +2 -2
  222. data/lib/moov/models/operations/createwallet_response.rb +2 -2
  223. data/lib/moov/models/operations/createwebhook_response.rb +2 -2
  224. data/lib/moov/models/operations/deleteavatar_response.rb +2 -2
  225. data/lib/moov/models/operations/deletedisputeevidencefile_response.rb +2 -2
  226. data/lib/moov/models/operations/deleteimage_response.rb +2 -2
  227. data/lib/moov/models/operations/deleteinvoice_response.rb +2 -2
  228. data/lib/moov/models/operations/deleterepresentative_response.rb +2 -2
  229. data/lib/moov/models/operations/deleteterminalapplication_response.rb +2 -2
  230. data/lib/moov/models/operations/disablebankaccount_response.rb +2 -2
  231. data/lib/moov/models/operations/disablecapability_response.rb +2 -2
  232. data/lib/moov/models/operations/disablecard_response.rb +2 -2
  233. data/lib/moov/models/operations/disablepaymentlink_response.rb +2 -2
  234. data/lib/moov/models/operations/disableproduct_response.rb +2 -2
  235. data/lib/moov/models/operations/disableresolutionlink_response.rb +2 -2
  236. data/lib/moov/models/operations/disablewebhook_response.rb +2 -2
  237. data/lib/moov/models/operations/disconnectaccount_response.rb +2 -2
  238. data/lib/moov/models/operations/downloadfile_response.rb +2 -2
  239. data/lib/moov/models/operations/generateendtoendkey_response.rb +2 -2
  240. data/lib/moov/models/operations/getaccount_response.rb +2 -2
  241. data/lib/moov/models/operations/getaccountcountries_response.rb +2 -2
  242. data/lib/moov/models/operations/getaccountterminalapplication_response.rb +2 -2
  243. data/lib/moov/models/operations/getadjustment_response.rb +2 -2
  244. data/lib/moov/models/operations/getapplepaymerchantdomains_response.rb +2 -2
  245. data/lib/moov/models/operations/getavatar_response.rb +2 -2
  246. data/lib/moov/models/operations/getbankaccount_response.rb +2 -2
  247. data/lib/moov/models/operations/getbankaccountattestationeligibility_response.rb +2 -2
  248. data/lib/moov/models/operations/getbankaccountverification_response.rb +2 -2
  249. data/lib/moov/models/operations/getbrand_response.rb +2 -2
  250. data/lib/moov/models/operations/getcancellation_response.rb +2 -2
  251. data/lib/moov/models/operations/getcapability_response.rb +2 -2
  252. data/lib/moov/models/operations/getcapture_response.rb +2 -2
  253. data/lib/moov/models/operations/getcard_response.rb +2 -2
  254. data/lib/moov/models/operations/getcardmetadata_response.rb +2 -2
  255. data/lib/moov/models/operations/getdispute_response.rb +2 -2
  256. data/lib/moov/models/operations/getdisputeevidence_response.rb +2 -2
  257. data/lib/moov/models/operations/getdisputeevidencedata_response.rb +2 -2
  258. data/lib/moov/models/operations/getenrichmentaddress_response.rb +2 -2
  259. data/lib/moov/models/operations/getenrichmentprofile_response.rb +2 -2
  260. data/lib/moov/models/operations/getfiledetails_response.rb +2 -2
  261. data/lib/moov/models/operations/getfullissuedcard_response.rb +2 -2
  262. data/lib/moov/models/operations/getimagemetadata_response.rb +2 -2
  263. data/lib/moov/models/operations/getinvoice_response.rb +8 -4
  264. data/lib/moov/models/operations/getinvoice_response.rbi +2 -0
  265. data/lib/moov/models/operations/getissuedcard_response.rb +2 -2
  266. data/lib/moov/models/operations/getissuedcardactivity_response.rb +2 -2
  267. data/lib/moov/models/operations/getissuedcardauthorization_response.rb +2 -2
  268. data/lib/moov/models/operations/getissuedcardtransaction_response.rb +2 -2
  269. data/lib/moov/models/operations/getmerchantprocessingagreement_response.rb +2 -2
  270. data/lib/moov/models/operations/getonboardinginvite_response.rb +2 -2
  271. data/lib/moov/models/operations/getpaymentlink_response.rb +2 -2
  272. data/lib/moov/models/operations/getpaymentlinkqrcode_response.rb +2 -2
  273. data/lib/moov/models/operations/getpaymentmethod_response.rb +2 -2
  274. data/lib/moov/models/operations/getproduct_response.rb +2 -2
  275. data/lib/moov/models/operations/getpublicimage_response.rb +2 -2
  276. data/lib/moov/models/operations/getrefund_response.rb +2 -2
  277. data/lib/moov/models/operations/getrepresentative_response.rb +2 -2
  278. data/lib/moov/models/operations/getresidual_response.rb +2 -2
  279. data/lib/moov/models/operations/getresolutionlink_response.rb +2 -2
  280. data/lib/moov/models/operations/getscheduledoccurrence_response.rb +2 -2
  281. data/lib/moov/models/operations/getschedules_response.rb +2 -2
  282. data/lib/moov/models/operations/getstatement_response.rb +2 -2
  283. data/lib/moov/models/operations/getsweep_response.rb +2 -2
  284. data/lib/moov/models/operations/getsweepconfig_response.rb +2 -2
  285. data/lib/moov/models/operations/getterminalapplication_response.rb +2 -2
  286. data/lib/moov/models/operations/getterminalconfiguration_response.rb +2 -2
  287. data/lib/moov/models/operations/gettermsofservicetoken_response.rb +2 -2
  288. data/lib/moov/models/operations/getticket_response.rb +2 -2
  289. data/lib/moov/models/operations/gettransfer_response.rb +2 -2
  290. data/lib/moov/models/operations/gettransferconfig_response.rb +2 -2
  291. data/lib/moov/models/operations/gettransferriskoutcomes_response.rb +2 -2
  292. data/lib/moov/models/operations/getunderwriting_response.rb +2 -2
  293. data/lib/moov/models/operations/getwallet_response.rb +2 -2
  294. data/lib/moov/models/operations/getwallettransaction_response.rb +2 -2
  295. data/lib/moov/models/operations/getwebhook_response.rb +2 -2
  296. data/lib/moov/models/operations/getwebhooksecret_response.rb +2 -2
  297. data/lib/moov/models/operations/initiatebankaccountverification_response.rb +2 -2
  298. data/lib/moov/models/operations/initiatemicrodeposits_response.rb +2 -2
  299. data/lib/moov/models/operations/initiaterefund_response.rb +2 -2
  300. data/lib/moov/models/operations/linkaccountterminalapplication_response.rb +2 -2
  301. data/lib/moov/models/operations/linkapplepaytoken_response.rb +2 -2
  302. data/lib/moov/models/operations/linkbankaccount_response.rb +2 -2
  303. data/lib/moov/models/operations/linkcard_response.rb +2 -2
  304. data/lib/moov/models/operations/linkgooglepaytoken_response.rb +2 -2
  305. data/lib/moov/models/operations/listaccounts_response.rb +2 -2
  306. data/lib/moov/models/operations/listaccountterminalapplications_response.rb +2 -2
  307. data/lib/moov/models/operations/listadjustments_response.rb +2 -2
  308. data/lib/moov/models/operations/listbankaccountattestations_response.rb +2 -2
  309. data/lib/moov/models/operations/listbankaccounts_response.rb +2 -2
  310. data/lib/moov/models/operations/listcancellations_response.rb +2 -2
  311. data/lib/moov/models/operations/listcapabilities_response.rb +2 -2
  312. data/lib/moov/models/operations/listcaptures_response.rb +2 -2
  313. data/lib/moov/models/operations/listcards_response.rb +2 -2
  314. data/lib/moov/models/operations/listconnectedaccountsforaccount_response.rb +2 -2
  315. data/lib/moov/models/operations/listdisputeevidence_response.rb +2 -2
  316. data/lib/moov/models/operations/listdisputes_response.rb +2 -2
  317. data/lib/moov/models/operations/listeventtypes_response.rb +2 -2
  318. data/lib/moov/models/operations/listfeeplanagreements_response.rb +2 -2
  319. data/lib/moov/models/operations/listfeeplans_response.rb +2 -2
  320. data/lib/moov/models/operations/listfeerevenue_response.rb +2 -2
  321. data/lib/moov/models/operations/listfeesfetch_response.rb +2 -2
  322. data/lib/moov/models/operations/listfiles_response.rb +2 -2
  323. data/lib/moov/models/operations/listimagemetadata_response.rb +2 -2
  324. data/lib/moov/models/operations/listindustries_response.rb +2 -2
  325. data/lib/moov/models/operations/listinstitutions_response.rb +2 -2
  326. data/lib/moov/models/operations/listinvoicepayments_response.rb +2 -2
  327. data/lib/moov/models/operations/listinvoices_response.rb +2 -2
  328. data/lib/moov/models/operations/listissuedcardactivity_response.rb +2 -2
  329. data/lib/moov/models/operations/listissuedcardauthorizationevents_response.rb +2 -2
  330. data/lib/moov/models/operations/listissuedcardauthorizations_response.rb +2 -2
  331. data/lib/moov/models/operations/listissuedcards_response.rb +2 -2
  332. data/lib/moov/models/operations/listissuedcardtransactions_response.rb +2 -2
  333. data/lib/moov/models/operations/listissuingmerchantcategories_response.rb +2 -2
  334. data/lib/moov/models/operations/listonboardinginvites_response.rb +2 -2
  335. data/lib/moov/models/operations/listpartnerpricingagreements_response.rb +2 -2
  336. data/lib/moov/models/operations/listpaymentlinks_response.rb +2 -2
  337. data/lib/moov/models/operations/listpaymentmethods_response.rb +2 -2
  338. data/lib/moov/models/operations/listproductcategories_response.rb +2 -2
  339. data/lib/moov/models/operations/listproducts_response.rb +2 -2
  340. data/lib/moov/models/operations/listreceipts_response.rb +2 -2
  341. data/lib/moov/models/operations/listrefunds_response.rb +2 -2
  342. data/lib/moov/models/operations/listrepresentatives_response.rb +2 -2
  343. data/lib/moov/models/operations/listresidualfees_response.rb +2 -2
  344. data/lib/moov/models/operations/listresiduals_response.rb +2 -2
  345. data/lib/moov/models/operations/listresolutionlinks_response.rb +2 -2
  346. data/lib/moov/models/operations/listschedules_response.rb +2 -2
  347. data/lib/moov/models/operations/liststatements_response.rb +2 -2
  348. data/lib/moov/models/operations/listsweepconfigs_response.rb +2 -2
  349. data/lib/moov/models/operations/listsweeps_response.rb +2 -2
  350. data/lib/moov/models/operations/listterminalapplications_response.rb +2 -2
  351. data/lib/moov/models/operations/listticketmessages_response.rb +2 -2
  352. data/lib/moov/models/operations/listtickets_response.rb +2 -2
  353. data/lib/moov/models/operations/listtransferevents_request.rb +36 -0
  354. data/lib/moov/models/operations/listtransferevents_request.rbi +15 -0
  355. data/lib/moov/models/operations/listtransferevents_response.rb +48 -0
  356. data/lib/moov/models/operations/listtransferevents_response.rbi +21 -0
  357. data/lib/moov/models/operations/listtransfers_response.rb +2 -2
  358. data/lib/moov/models/operations/listwallets_response.rb +2 -2
  359. data/lib/moov/models/operations/listwallettransactions_response.rb +2 -2
  360. data/lib/moov/models/operations/listwebhooks_response.rb +2 -2
  361. data/lib/moov/models/operations/ping_response.rb +2 -2
  362. data/lib/moov/models/operations/pingwebhook_response.rb +2 -2
  363. data/lib/moov/models/operations/registerapplepaymerchantdomains_response.rb +2 -2
  364. data/lib/moov/models/operations/requestcapabilities_response.rb +2 -2
  365. data/lib/moov/models/operations/requestcard_response.rb +2 -2
  366. data/lib/moov/models/operations/retrievefees_response.rb +2 -2
  367. data/lib/moov/models/operations/revokeaccesstoken_response.rb +2 -2
  368. data/lib/moov/models/operations/revokeonboardinginvite_response.rb +2 -2
  369. data/lib/moov/models/operations/saveunderwriting_response.rb +2 -2
  370. data/lib/moov/models/operations/searchinstitutions_response.rb +2 -2
  371. data/lib/moov/models/operations/submitdisputeevidence_response.rb +2 -2
  372. data/lib/moov/models/operations/testendtoendtoken_response.rb +2 -2
  373. data/lib/moov/models/operations/updateaccount_response.rb +2 -2
  374. data/lib/moov/models/operations/updateapplepaymerchantdomains_response.rb +2 -2
  375. data/lib/moov/models/operations/updatecard_response.rb +2 -2
  376. data/lib/moov/models/operations/updatedisputeevidence_response.rb +2 -2
  377. data/lib/moov/models/operations/updateimage_response.rb +2 -2
  378. data/lib/moov/models/operations/updateimagemetadata_response.rb +2 -2
  379. data/lib/moov/models/operations/updateinvoice_response.rb +2 -2
  380. data/lib/moov/models/operations/updateissuedcard_response.rb +2 -2
  381. data/lib/moov/models/operations/updatepaymentlink_response.rb +2 -2
  382. data/lib/moov/models/operations/updateproduct_response.rb +2 -2
  383. data/lib/moov/models/operations/updaterepresentative_response.rb +2 -2
  384. data/lib/moov/models/operations/updateschedule_response.rb +2 -2
  385. data/lib/moov/models/operations/updatesweepconfig_response.rb +2 -2
  386. data/lib/moov/models/operations/updateticket_response.rb +2 -2
  387. data/lib/moov/models/operations/updatetransfer_response.rb +2 -2
  388. data/lib/moov/models/operations/updatetransferconfig_response.rb +2 -2
  389. data/lib/moov/models/operations/updatewallet_response.rb +2 -2
  390. data/lib/moov/models/operations/updatewebhook_response.rb +2 -2
  391. data/lib/moov/models/operations/uploadavatar_response.rb +2 -2
  392. data/lib/moov/models/operations/uploaddisputeevidencefile_response.rb +2 -2
  393. data/lib/moov/models/operations/uploaddisputeevidencetext_response.rb +2 -2
  394. data/lib/moov/models/operations/uploadfile_response.rb +2 -2
  395. data/lib/moov/models/operations/uploadimage_response.rb +2 -2
  396. data/lib/moov/models/operations/upsertbrand_response.rb +2 -2
  397. data/lib/moov/models/operations/upsertunderwriting_response.rb +2 -2
  398. data/lib/moov/models/operations.rb +2 -0
  399. data/lib/moov/onboarding.rb +24 -24
  400. data/lib/moov/payment_links.rb +38 -38
  401. data/lib/moov/payment_methods.rb +11 -11
  402. data/lib/moov/ping.rb +5 -5
  403. data/lib/moov/products.rb +39 -39
  404. data/lib/moov/receipts.rb +14 -14
  405. data/lib/moov/representatives.rb +33 -33
  406. data/lib/moov/resolution_links.rb +25 -25
  407. data/lib/moov/scheduling.rb +39 -39
  408. data/lib/moov/sdk_hooks/clientcredentials.rb +37 -37
  409. data/lib/moov/sdk_hooks/hooks.rb +1 -1
  410. data/lib/moov/sdk_hooks/types.rb +14 -14
  411. data/lib/moov/sdkconfiguration.rb +17 -17
  412. data/lib/moov/statements.rb +12 -12
  413. data/lib/moov/support.rb +34 -34
  414. data/lib/moov/sweeps.rb +39 -39
  415. data/lib/moov/terminal_applications.rb +34 -34
  416. data/lib/moov/transfer_config.rb +24 -24
  417. data/lib/moov/transfers.rb +237 -112
  418. data/lib/moov/underwriting.rb +24 -24
  419. data/lib/moov/utils/forms.rb +23 -23
  420. data/lib/moov/utils/headers.rb +4 -4
  421. data/lib/moov/utils/query_params.rb +14 -14
  422. data/lib/moov/utils/request_bodies.rb +7 -7
  423. data/lib/moov/utils/retries.rb +5 -5
  424. data/lib/moov/utils/security.rb +16 -16
  425. data/lib/moov/utils/url.rb +6 -6
  426. data/lib/moov/utils/utils.rb +31 -31
  427. data/lib/moov/wallet_transactions.rb +12 -12
  428. data/lib/moov/wallets.rb +30 -30
  429. data/lib/moov/webhooks.rb +49 -49
  430. metadata +46 -2
@@ -23,7 +23,7 @@ module Moov
23
23
 
24
24
  end
25
25
 
26
- sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
26
+ sig { params(base_url: ::String, url_variables: T.nilable(T::Hash[::Symbol, T.any(::String, T::Enum)])).returns(::String) }
27
27
  def get_url(base_url:, url_variables: nil)
28
28
  sd_base_url, sd_options = @sdk_configuration.get_server_details
29
29
 
@@ -41,7 +41,7 @@ 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::ListIndustriesResponse) }
44
+ sig { params(timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListIndustriesResponse) }
45
45
  def list(timeout_ms: nil, http_headers: nil)
46
46
  # list - Returns a list of industries relevant to merchant profile enrichment. Results are ordered by industry name.
47
47
  #
@@ -51,7 +51,7 @@ module Moov
51
51
  base_url = Utils.template_url(url, params)
52
52
  url = "#{base_url}/industries"
53
53
  headers = {}
54
- headers = T.cast(headers, T::Hash[String, String])
54
+ headers = T.cast(headers, T::Hash[::String, ::String])
55
55
  headers['Accept'] = 'application/json'
56
56
  headers['user-agent'] = @sdk_configuration.user_agent
57
57
 
@@ -71,7 +71,7 @@ module Moov
71
71
  security_source: @sdk_configuration.security_source
72
72
  )
73
73
 
74
- error = T.let(nil, T.nilable(StandardError))
74
+ error = T.let(nil, T.nilable(::StandardError))
75
75
  http_response = T.let(nil, T.nilable(Faraday::Response))
76
76
 
77
77
 
@@ -91,7 +91,7 @@ module Moov
91
91
  request: req
92
92
  )
93
93
  end
94
- rescue StandardError => e
94
+ rescue ::StandardError => e
95
95
  error = e
96
96
  ensure
97
97
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -127,7 +127,7 @@ module Moov
127
127
  response: http_response
128
128
  )
129
129
  response_data = http_response.env.response_body
130
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::EnrichedIndustries)
130
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::EnrichedIndustries)
131
131
  response = Models::Operations::ListIndustriesResponse.new(
132
132
  status_code: http_response.status,
133
133
  content_type: content_type,
@@ -23,7 +23,7 @@ module Moov
23
23
 
24
24
  end
25
25
 
26
- sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
26
+ sig { params(base_url: ::String, url_variables: T.nilable(T::Hash[::Symbol, T.any(::String, T::Enum)])).returns(::String) }
27
27
  def get_url(base_url:, url_variables: nil)
28
28
  sd_base_url, sd_options = @sdk_configuration.get_server_details
29
29
 
@@ -41,7 +41,7 @@ module Moov
41
41
 
42
42
 
43
43
 
44
- sig { params(name: T.nilable(::String), routing_number: 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::SearchInstitutionsResponse) }
44
+ sig { params(name: T.nilable(::String), routing_number: 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::SearchInstitutionsResponse) }
45
45
  def search_institutions(name: nil, routing_number: nil, limit: nil, timeout_ms: nil, http_headers: nil)
46
46
  # search_institutions - Search for financial institutions by name or routing number.
47
47
  #
@@ -60,7 +60,7 @@ module Moov
60
60
  base_url = Utils.template_url(url, params)
61
61
  url = "#{base_url}/institutions"
62
62
  headers = {}
63
- headers = T.cast(headers, T::Hash[String, String])
63
+ headers = T.cast(headers, T::Hash[::String, ::String])
64
64
  query_params = Utils.get_query_params(Models::Operations::SearchInstitutionsRequest, request, nil)
65
65
  headers['Accept'] = 'application/json'
66
66
  headers['user-agent'] = @sdk_configuration.user_agent
@@ -81,7 +81,7 @@ module Moov
81
81
  security_source: @sdk_configuration.security_source
82
82
  )
83
83
 
84
- error = T.let(nil, T.nilable(StandardError))
84
+ error = T.let(nil, T.nilable(::StandardError))
85
85
  http_response = T.let(nil, T.nilable(Faraday::Response))
86
86
 
87
87
 
@@ -102,7 +102,7 @@ module Moov
102
102
  request: req
103
103
  )
104
104
  end
105
- rescue StandardError => e
105
+ rescue ::StandardError => e
106
106
  error = e
107
107
  ensure
108
108
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -138,7 +138,7 @@ module Moov
138
138
  response: http_response
139
139
  )
140
140
  response_data = http_response.env.response_body
141
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::InstitutionsSearchResponse)
141
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::InstitutionsSearchResponse)
142
142
  response = Models::Operations::SearchInstitutionsResponse.new(
143
143
  status_code: http_response.status,
144
144
  content_type: content_type,
@@ -166,7 +166,7 @@ module Moov
166
166
  end
167
167
 
168
168
 
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) }
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
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/).
172
172
  #
@@ -186,7 +186,7 @@ module Moov
186
186
  base_url = Utils.template_url(url, params)
187
187
  url = "#{base_url}/institutions/ach/search"
188
188
  headers = {}
189
- headers = T.cast(headers, T::Hash[String, String])
189
+ headers = T.cast(headers, T::Hash[::String, ::String])
190
190
  query_params = Utils.get_query_params(Models::Operations::ListInstitutionsRequest, request, nil)
191
191
  headers['Accept'] = 'application/json'
192
192
  headers['user-agent'] = @sdk_configuration.user_agent
@@ -207,7 +207,7 @@ module Moov
207
207
  security_source: @sdk_configuration.security_source
208
208
  )
209
209
 
210
- error = T.let(nil, T.nilable(StandardError))
210
+ error = T.let(nil, T.nilable(::StandardError))
211
211
  http_response = T.let(nil, T.nilable(Faraday::Response))
212
212
 
213
213
 
@@ -228,7 +228,7 @@ module Moov
228
228
  request: req
229
229
  )
230
230
  end
231
- rescue StandardError => e
231
+ rescue ::StandardError => e
232
232
  error = e
233
233
  ensure
234
234
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -264,7 +264,7 @@ module Moov
264
264
  response: http_response
265
265
  )
266
266
  response_data = http_response.env.response_body
267
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::FinancialInstitutions)
267
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::FinancialInstitutions)
268
268
  response = Models::Operations::ListInstitutionsResponse.new(
269
269
  status_code: http_response.status,
270
270
  content_type: content_type,
@@ -286,7 +286,7 @@ module Moov
286
286
  response: http_response
287
287
  )
288
288
  response_data = http_response.env.response_body
289
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
289
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
290
290
  obj.raw_response = http_response
291
291
  raise obj
292
292
  else
data/lib/moov/invoices.rb CHANGED
@@ -23,7 +23,7 @@ module Moov
23
23
 
24
24
  end
25
25
 
26
- sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
26
+ sig { params(base_url: ::String, url_variables: T.nilable(T::Hash[::Symbol, T.any(::String, T::Enum)])).returns(::String) }
27
27
  def get_url(base_url:, url_variables: nil)
28
28
  sd_base_url, sd_options = @sdk_configuration.get_server_details
29
29
 
@@ -41,7 +41,7 @@ module Moov
41
41
 
42
42
 
43
43
 
44
- sig { params(create_invoice: Models::Components::CreateInvoice, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateInvoiceResponse) }
44
+ sig { params(create_invoice: Models::Components::CreateInvoice, account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CreateInvoiceResponse) }
45
45
  def create_invoice(create_invoice:, account_id:, timeout_ms: nil, http_headers: nil)
46
46
  # create_invoice - Create an invoice for a Moov account.
47
47
  #
@@ -60,15 +60,15 @@ module Moov
60
60
  request
61
61
  )
62
62
  headers = {}
63
- headers = T.cast(headers, T::Hash[String, String])
63
+ headers = T.cast(headers, T::Hash[::String, ::String])
64
64
  req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_invoice, :json)
65
65
  headers['content-type'] = req_content_type
66
- raise StandardError, 'request body is required' if data.nil? && form.nil?
66
+ raise ::StandardError, 'request body is required' if data.nil? && form.nil?
67
67
 
68
68
  if form && !form.empty?
69
69
  body = Utils.encode_form(form)
70
70
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
71
- body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
71
+ body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
72
72
  else
73
73
  body = data
74
74
  end
@@ -91,7 +91,7 @@ module Moov
91
91
  security_source: @sdk_configuration.security_source
92
92
  )
93
93
 
94
- error = T.let(nil, T.nilable(StandardError))
94
+ error = T.let(nil, T.nilable(::StandardError))
95
95
  http_response = T.let(nil, T.nilable(Faraday::Response))
96
96
 
97
97
 
@@ -112,7 +112,7 @@ module Moov
112
112
  request: req
113
113
  )
114
114
  end
115
- rescue StandardError => e
115
+ rescue ::StandardError => e
116
116
  error = e
117
117
  ensure
118
118
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -148,7 +148,7 @@ module Moov
148
148
  response: http_response
149
149
  )
150
150
  response_data = http_response.env.response_body
151
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Invoice)
151
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Invoice)
152
152
  response = Models::Operations::CreateInvoiceResponse.new(
153
153
  status_code: http_response.status,
154
154
  content_type: content_type,
@@ -170,7 +170,7 @@ module Moov
170
170
  response: http_response
171
171
  )
172
172
  response_data = http_response.env.response_body
173
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
173
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
174
174
  obj.raw_response = http_response
175
175
  raise obj
176
176
  else
@@ -185,7 +185,7 @@ module Moov
185
185
  response: http_response
186
186
  )
187
187
  response_data = http_response.env.response_body
188
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::CreateInvoiceError)
188
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::CreateInvoiceError)
189
189
  obj.raw_response = http_response
190
190
  raise obj
191
191
  else
@@ -206,7 +206,7 @@ module Moov
206
206
  end
207
207
 
208
208
 
209
- sig { params(request: Models::Operations::ListInvoicesRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListInvoicesResponse) }
209
+ sig { params(request: Models::Operations::ListInvoicesRequest, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListInvoicesResponse) }
210
210
  def list_invoices(request:, timeout_ms: nil, http_headers: nil)
211
211
  # list_invoices - List all the invoices created under a Moov account.
212
212
  #
@@ -221,7 +221,7 @@ module Moov
221
221
  request
222
222
  )
223
223
  headers = {}
224
- headers = T.cast(headers, T::Hash[String, String])
224
+ headers = T.cast(headers, T::Hash[::String, ::String])
225
225
  query_params = Utils.get_query_params(Models::Operations::ListInvoicesRequest, request, nil)
226
226
  headers['Accept'] = 'application/json'
227
227
  headers['user-agent'] = @sdk_configuration.user_agent
@@ -242,7 +242,7 @@ module Moov
242
242
  security_source: @sdk_configuration.security_source
243
243
  )
244
244
 
245
- error = T.let(nil, T.nilable(StandardError))
245
+ error = T.let(nil, T.nilable(::StandardError))
246
246
  http_response = T.let(nil, T.nilable(Faraday::Response))
247
247
 
248
248
 
@@ -263,7 +263,7 @@ module Moov
263
263
  request: req
264
264
  )
265
265
  end
266
- rescue StandardError => e
266
+ rescue ::StandardError => e
267
267
  error = e
268
268
  ensure
269
269
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -299,7 +299,7 @@ module Moov
299
299
  response: http_response
300
300
  )
301
301
  response_data = http_response.env.response_body
302
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::Invoice))
302
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::Invoice))
303
303
  response = Models::Operations::ListInvoicesResponse.new(
304
304
  status_code: http_response.status,
305
305
  content_type: content_type,
@@ -321,7 +321,7 @@ module Moov
321
321
  response: http_response
322
322
  )
323
323
  response_data = http_response.env.response_body
324
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ListInvoicesValidationError)
324
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ListInvoicesValidationError)
325
325
  obj.raw_response = http_response
326
326
  raise obj
327
327
  else
@@ -342,10 +342,12 @@ module Moov
342
342
  end
343
343
 
344
344
 
345
- sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetInvoiceResponse) }
346
- def get_invoice(account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
345
+ sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), accept_header_override: T.nilable(::String), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetInvoiceResponse) }
346
+ def get_invoice(account_id:, invoice_id:, timeout_ms: nil, accept_header_override: nil, http_headers: nil)
347
347
  # get_invoice - Retrieve an invoice by ID.
348
348
  #
349
+ # Use the `Accept` header to specify the format of the response. Supported formats are `application/json` and `application/pdf`. The PDF does not include the payment link or QR code.
350
+ #
349
351
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
350
352
  # you'll need to specify the `/accounts/{accountID}/invoices.read` scope.
351
353
  request = Models::Operations::GetInvoiceRequest.new(
@@ -361,8 +363,8 @@ module Moov
361
363
  request
362
364
  )
363
365
  headers = {}
364
- headers = T.cast(headers, T::Hash[String, String])
365
- headers['Accept'] = 'application/json'
366
+ headers = T.cast(headers, T::Hash[::String, ::String])
367
+ headers['Accept'] = accept_header_override || 'application/json;q=1, application/pdf;q=0'
366
368
  headers['user-agent'] = @sdk_configuration.user_agent
367
369
 
368
370
  security = @sdk_configuration.security_source&.call
@@ -381,7 +383,7 @@ module Moov
381
383
  security_source: @sdk_configuration.security_source
382
384
  )
383
385
 
384
- error = T.let(nil, T.nilable(StandardError))
386
+ error = T.let(nil, T.nilable(::StandardError))
385
387
  http_response = T.let(nil, T.nilable(Faraday::Response))
386
388
 
387
389
 
@@ -401,7 +403,7 @@ module Moov
401
403
  request: req
402
404
  )
403
405
  end
404
- rescue StandardError => e
406
+ rescue ::StandardError => e
405
407
  error = e
406
408
  ensure
407
409
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -437,7 +439,7 @@ module Moov
437
439
  response: http_response
438
440
  )
439
441
  response_data = http_response.env.response_body
440
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Invoice)
442
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Invoice)
441
443
  response = Models::Operations::GetInvoiceResponse.new(
442
444
  status_code: http_response.status,
443
445
  content_type: content_type,
@@ -447,6 +449,22 @@ module Moov
447
449
  )
448
450
 
449
451
  return response
452
+ elsif Utils.match_content_type(content_type, 'application/pdf')
453
+ http_response = @sdk_configuration.hooks.after_success(
454
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
455
+ hook_ctx: hook_ctx
456
+ ),
457
+ response: http_response
458
+ )
459
+ obj = http_response.env.body.force_encoding('UTF-8')
460
+
461
+ return Models::Operations::GetInvoiceResponse.new(
462
+ status_code: http_response.status,
463
+ content_type: content_type,
464
+ raw_response: http_response,
465
+ headers: http_response.headers,
466
+ bytes: T.unsafe(obj)
467
+ )
450
468
  else
451
469
  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'
452
470
  end
@@ -465,7 +483,7 @@ module Moov
465
483
  end
466
484
 
467
485
 
468
- sig { params(update_invoice: Models::Components::UpdateInvoice, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateInvoiceResponse) }
486
+ sig { params(update_invoice: Models::Components::UpdateInvoice, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::UpdateInvoiceResponse) }
469
487
  def update_invoice(update_invoice:, account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
470
488
  # update_invoice - Updates an invoice.
471
489
  #
@@ -485,15 +503,15 @@ module Moov
485
503
  request
486
504
  )
487
505
  headers = {}
488
- headers = T.cast(headers, T::Hash[String, String])
506
+ headers = T.cast(headers, T::Hash[::String, ::String])
489
507
  req_content_type, data, form = Utils.serialize_request_body(request, false, false, :update_invoice, :json)
490
508
  headers['content-type'] = req_content_type
491
- raise StandardError, 'request body is required' if data.nil? && form.nil?
509
+ raise ::StandardError, 'request body is required' if data.nil? && form.nil?
492
510
 
493
511
  if form && !form.empty?
494
512
  body = Utils.encode_form(form)
495
513
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
496
- body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
514
+ body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
497
515
  else
498
516
  body = data
499
517
  end
@@ -516,7 +534,7 @@ module Moov
516
534
  security_source: @sdk_configuration.security_source
517
535
  )
518
536
 
519
- error = T.let(nil, T.nilable(StandardError))
537
+ error = T.let(nil, T.nilable(::StandardError))
520
538
  http_response = T.let(nil, T.nilable(Faraday::Response))
521
539
 
522
540
 
@@ -537,7 +555,7 @@ module Moov
537
555
  request: req
538
556
  )
539
557
  end
540
- rescue StandardError => e
558
+ rescue ::StandardError => e
541
559
  error = e
542
560
  ensure
543
561
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -573,7 +591,7 @@ module Moov
573
591
  response: http_response
574
592
  )
575
593
  response_data = http_response.env.response_body
576
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Invoice)
594
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Invoice)
577
595
  response = Models::Operations::UpdateInvoiceResponse.new(
578
596
  status_code: http_response.status,
579
597
  content_type: content_type,
@@ -595,7 +613,7 @@ module Moov
595
613
  response: http_response
596
614
  )
597
615
  response_data = http_response.env.response_body
598
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
616
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
599
617
  obj.raw_response = http_response
600
618
  raise obj
601
619
  else
@@ -610,7 +628,7 @@ module Moov
610
628
  response: http_response
611
629
  )
612
630
  response_data = http_response.env.response_body
613
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UpdateInvoiceError)
631
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::UpdateInvoiceError)
614
632
  obj.raw_response = http_response
615
633
  raise obj
616
634
  else
@@ -631,7 +649,7 @@ module Moov
631
649
  end
632
650
 
633
651
 
634
- sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DeleteInvoiceResponse) }
652
+ sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::DeleteInvoiceResponse) }
635
653
  def delete(account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
636
654
  # delete - Delete an invoice. Only invoices in `draft` status can be deleted.
637
655
  #
@@ -656,7 +674,7 @@ module Moov
656
674
  request
657
675
  )
658
676
  headers = {}
659
- headers = T.cast(headers, T::Hash[String, String])
677
+ headers = T.cast(headers, T::Hash[::String, ::String])
660
678
  headers['Accept'] = 'application/json'
661
679
  headers['user-agent'] = @sdk_configuration.user_agent
662
680
 
@@ -676,7 +694,7 @@ module Moov
676
694
  security_source: @sdk_configuration.security_source
677
695
  )
678
696
 
679
- error = T.let(nil, T.nilable(StandardError))
697
+ error = T.let(nil, T.nilable(::StandardError))
680
698
  http_response = T.let(nil, T.nilable(Faraday::Response))
681
699
 
682
700
 
@@ -696,7 +714,7 @@ module Moov
696
714
  request: req
697
715
  )
698
716
  end
699
- rescue StandardError => e
717
+ rescue ::StandardError => e
700
718
  error = e
701
719
  ensure
702
720
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -745,7 +763,7 @@ module Moov
745
763
  response: http_response
746
764
  )
747
765
  response_data = http_response.env.response_body
748
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
766
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
749
767
  obj.raw_response = http_response
750
768
  raise obj
751
769
  else
@@ -766,7 +784,7 @@ module Moov
766
784
  end
767
785
 
768
786
 
769
- sig { params(create_invoice_notification: Models::Components::CreateInvoiceNotification, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateInvoiceNotificationResponse) }
787
+ sig { params(create_invoice_notification: Models::Components::CreateInvoiceNotification, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CreateInvoiceNotificationResponse) }
770
788
  def create_invoice_notification(create_invoice_notification:, account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
771
789
  # create_invoice_notification - Create a notification for an invoice, which resends the invoice email to the customer. The required
772
790
  # `channels` body lists the channels to notify on; today only `email` is supported. Returns a 409
@@ -794,15 +812,15 @@ module Moov
794
812
  request
795
813
  )
796
814
  headers = {}
797
- headers = T.cast(headers, T::Hash[String, String])
815
+ headers = T.cast(headers, T::Hash[::String, ::String])
798
816
  req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_invoice_notification, :json)
799
817
  headers['content-type'] = req_content_type
800
- raise StandardError, 'request body is required' if data.nil? && form.nil?
818
+ raise ::StandardError, 'request body is required' if data.nil? && form.nil?
801
819
 
802
820
  if form && !form.empty?
803
821
  body = Utils.encode_form(form)
804
822
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
805
- body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
823
+ body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
806
824
  else
807
825
  body = data
808
826
  end
@@ -825,7 +843,7 @@ module Moov
825
843
  security_source: @sdk_configuration.security_source
826
844
  )
827
845
 
828
- error = T.let(nil, T.nilable(StandardError))
846
+ error = T.let(nil, T.nilable(::StandardError))
829
847
  http_response = T.let(nil, T.nilable(Faraday::Response))
830
848
 
831
849
 
@@ -846,7 +864,7 @@ module Moov
846
864
  request: req
847
865
  )
848
866
  end
849
- rescue StandardError => e
867
+ rescue ::StandardError => e
850
868
  error = e
851
869
  ensure
852
870
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -897,7 +915,7 @@ module Moov
897
915
  response: http_response
898
916
  )
899
917
  response_data = http_response.env.response_body
900
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
918
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
901
919
  obj.raw_response = http_response
902
920
  raise obj
903
921
  else
@@ -912,7 +930,7 @@ module Moov
912
930
  response: http_response
913
931
  )
914
932
  response_data = http_response.env.response_body
915
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InvoiceNotificationError)
933
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::InvoiceNotificationError)
916
934
  obj.raw_response = http_response
917
935
  raise obj
918
936
  else
@@ -927,7 +945,7 @@ module Moov
927
945
  response: http_response
928
946
  )
929
947
  response_data = http_response.env.response_body
930
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InvoiceNotificationRateLimitedError)
948
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::InvoiceNotificationRateLimitedError)
931
949
  obj.raw_response = http_response
932
950
  raise obj
933
951
  else
@@ -946,7 +964,7 @@ module Moov
946
964
  end
947
965
 
948
966
 
949
- sig { params(create_invoice_payment: Models::Components::CreateInvoicePayment, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateInvoicePaymentResponse) }
967
+ sig { params(create_invoice_payment: Models::Components::CreateInvoicePayment, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CreateInvoicePaymentResponse) }
950
968
  def create_invoice_payment(create_invoice_payment:, account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
951
969
  # create_invoice_payment - Creates a payment resource to represent that an invoice was paid outside of the Moov platform.
952
970
  # If a payment link was created for the invoice, the corresponding payment link is canceled, but a receipt is still sent.
@@ -967,15 +985,15 @@ module Moov
967
985
  request
968
986
  )
969
987
  headers = {}
970
- headers = T.cast(headers, T::Hash[String, String])
988
+ headers = T.cast(headers, T::Hash[::String, ::String])
971
989
  req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_invoice_payment, :json)
972
990
  headers['content-type'] = req_content_type
973
- raise StandardError, 'request body is required' if data.nil? && form.nil?
991
+ raise ::StandardError, 'request body is required' if data.nil? && form.nil?
974
992
 
975
993
  if form && !form.empty?
976
994
  body = Utils.encode_form(form)
977
995
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
978
- body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
996
+ body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
979
997
  else
980
998
  body = data
981
999
  end
@@ -998,7 +1016,7 @@ module Moov
998
1016
  security_source: @sdk_configuration.security_source
999
1017
  )
1000
1018
 
1001
- error = T.let(nil, T.nilable(StandardError))
1019
+ error = T.let(nil, T.nilable(::StandardError))
1002
1020
  http_response = T.let(nil, T.nilable(Faraday::Response))
1003
1021
 
1004
1022
 
@@ -1019,7 +1037,7 @@ module Moov
1019
1037
  request: req
1020
1038
  )
1021
1039
  end
1022
- rescue StandardError => e
1040
+ rescue ::StandardError => e
1023
1041
  error = e
1024
1042
  ensure
1025
1043
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -1055,7 +1073,7 @@ module Moov
1055
1073
  response: http_response
1056
1074
  )
1057
1075
  response_data = http_response.env.response_body
1058
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::InvoicePayment)
1076
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::InvoicePayment)
1059
1077
  response = Models::Operations::CreateInvoicePaymentResponse.new(
1060
1078
  status_code: http_response.status,
1061
1079
  content_type: content_type,
@@ -1077,7 +1095,7 @@ module Moov
1077
1095
  response: http_response
1078
1096
  )
1079
1097
  response_data = http_response.env.response_body
1080
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
1098
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
1081
1099
  obj.raw_response = http_response
1082
1100
  raise obj
1083
1101
  else
@@ -1092,7 +1110,7 @@ module Moov
1092
1110
  response: http_response
1093
1111
  )
1094
1112
  response_data = http_response.env.response_body
1095
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::CreateInvoicePaymentError)
1113
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::CreateInvoicePaymentError)
1096
1114
  obj.raw_response = http_response
1097
1115
  raise obj
1098
1116
  else
@@ -1113,7 +1131,7 @@ module Moov
1113
1131
  end
1114
1132
 
1115
1133
 
1116
- sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListInvoicePaymentsResponse) }
1134
+ sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListInvoicePaymentsResponse) }
1117
1135
  def list_invoice_payments(account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
1118
1136
  # list_invoice_payments - List all the payments made towards an invoice.
1119
1137
  #
@@ -1132,7 +1150,7 @@ module Moov
1132
1150
  request
1133
1151
  )
1134
1152
  headers = {}
1135
- headers = T.cast(headers, T::Hash[String, String])
1153
+ headers = T.cast(headers, T::Hash[::String, ::String])
1136
1154
  headers['Accept'] = 'application/json'
1137
1155
  headers['user-agent'] = @sdk_configuration.user_agent
1138
1156
 
@@ -1152,7 +1170,7 @@ module Moov
1152
1170
  security_source: @sdk_configuration.security_source
1153
1171
  )
1154
1172
 
1155
- error = T.let(nil, T.nilable(StandardError))
1173
+ error = T.let(nil, T.nilable(::StandardError))
1156
1174
  http_response = T.let(nil, T.nilable(Faraday::Response))
1157
1175
 
1158
1176
 
@@ -1172,7 +1190,7 @@ module Moov
1172
1190
  request: req
1173
1191
  )
1174
1192
  end
1175
- rescue StandardError => e
1193
+ rescue ::StandardError => e
1176
1194
  error = e
1177
1195
  ensure
1178
1196
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -1208,7 +1226,7 @@ module Moov
1208
1226
  response: http_response
1209
1227
  )
1210
1228
  response_data = http_response.env.response_body
1211
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::InvoicePayment))
1229
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::InvoicePayment))
1212
1230
  response = Models::Operations::ListInvoicePaymentsResponse.new(
1213
1231
  status_code: http_response.status,
1214
1232
  content_type: content_type,