moov_ruby 0.3.2 → 0.3.3

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 (277) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moov/models/components/createaccount.rb +2 -2
  3. data/lib/moov/models/components/createdtransfer.rb +7 -2
  4. data/lib/moov/models/components/createdtransfer.rbi +2 -0
  5. data/lib/moov/models/components/createpaymentlink.rb +7 -2
  6. data/lib/moov/models/components/createpaymentlink.rbi +2 -0
  7. data/lib/moov/models/components/createtransfer.rb +7 -2
  8. data/lib/moov/models/components/createtransfer.rbi +2 -0
  9. data/lib/moov/models/components/instantpaymentfees.rb +6 -2
  10. data/lib/moov/models/components/instantpaymentfees.rbi +2 -0
  11. data/lib/moov/models/components/patchaccount.rb +2 -2
  12. data/lib/moov/models/components/paymentdetailserror.rb +6 -2
  13. data/lib/moov/models/components/paymentdetailserror.rbi +2 -0
  14. data/lib/moov/models/components/paymentlink.rb +11 -2
  15. data/lib/moov/models/components/paymentlink.rbi +4 -0
  16. data/lib/moov/models/components/paymentlinklineitem.rb +49 -0
  17. data/lib/moov/models/components/paymentlinklineitem.rbi +21 -0
  18. data/lib/moov/models/components/paymentlinklineitemoption.rb +45 -0
  19. data/lib/moov/models/components/paymentlinklineitemoption.rbi +19 -0
  20. data/lib/moov/models/components/paymentlinklineitemoptionvalidationerror.rb +45 -0
  21. data/lib/moov/models/components/paymentlinklineitemoptionvalidationerror.rbi +19 -0
  22. data/lib/moov/models/components/paymentlinklineitems.rb +34 -0
  23. data/lib/moov/models/components/paymentlinklineitems.rbi +13 -0
  24. data/lib/moov/models/components/paymentlinklineitemsupdate.rb +34 -0
  25. data/lib/moov/models/components/paymentlinklineitemsupdate.rbi +13 -0
  26. data/lib/moov/models/components/paymentlinklineitemsvalidationerror.rb +33 -0
  27. data/lib/moov/models/components/paymentlinklineitemsvalidationerror.rbi +13 -0
  28. data/lib/moov/models/components/paymentlinklineitemvalidationerror.rb +49 -0
  29. data/lib/moov/models/components/paymentlinklineitemvalidationerror.rbi +21 -0
  30. data/lib/moov/models/components/paymentlinkpaymentdetails.rb +6 -2
  31. data/lib/moov/models/components/paymentlinkpaymentdetails.rbi +2 -0
  32. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb +6 -2
  33. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rbi +2 -0
  34. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +6 -2
  35. data/lib/moov/models/components/paymentlinkpayoutdetails.rbi +2 -0
  36. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +6 -2
  37. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rbi +2 -0
  38. data/lib/moov/models/components/paymentlinktype.rb +22 -0
  39. data/lib/moov/models/components/paymentlinktype.rbi +11 -0
  40. data/lib/moov/models/components/payoutdetailserror.rb +6 -2
  41. data/lib/moov/models/components/payoutdetailserror.rbi +2 -0
  42. data/lib/moov/models/components/{termsofservicetokenupdate.rb → termsofservicepayload.rb} +8 -4
  43. data/lib/moov/models/components/termsofservicepayload.rbi +15 -0
  44. data/lib/moov/models/components/termsofservicepayloadupdate.rb +37 -0
  45. data/lib/moov/models/components/termsofservicepayloadupdate.rbi +15 -0
  46. data/lib/moov/models/components/transfer.rb +7 -2
  47. data/lib/moov/models/components/transfer.rbi +2 -0
  48. data/lib/moov/models/components/transferlineitem.rb +49 -0
  49. data/lib/moov/models/components/transferlineitem.rbi +21 -0
  50. data/lib/moov/models/components/transferlineitemoption.rb +45 -0
  51. data/lib/moov/models/components/transferlineitemoption.rbi +19 -0
  52. data/lib/moov/models/components/transferlineitemoptionvalidationerror.rb +45 -0
  53. data/lib/moov/models/components/transferlineitemoptionvalidationerror.rbi +19 -0
  54. data/lib/moov/models/components/transferlineitems.rb +34 -0
  55. data/lib/moov/models/components/transferlineitems.rbi +13 -0
  56. data/lib/moov/models/components/transferlineitemsvalidationerror.rb +33 -0
  57. data/lib/moov/models/components/transferlineitemsvalidationerror.rbi +13 -0
  58. data/lib/moov/models/components/transferlineitemvalidationerror.rb +49 -0
  59. data/lib/moov/models/components/transferlineitemvalidationerror.rbi +21 -0
  60. data/lib/moov/models/components/updatepaymentlink.rb +7 -2
  61. data/lib/moov/models/components/updatepaymentlink.rbi +2 -0
  62. data/lib/moov/models/components.rb +16 -3
  63. data/lib/moov/models/errors/createpaymentlinkerror.rb +6 -2
  64. data/lib/moov/models/errors/createpaymentlinkerror.rbi +2 -0
  65. data/lib/moov/models/errors/transfer_error.rb +7 -2
  66. data/lib/moov/models/errors/transfer_error.rbi +2 -0
  67. data/lib/moov/models/errors/transfervalidationerror.rb +6 -2
  68. data/lib/moov/models/errors/transfervalidationerror.rbi +2 -0
  69. data/lib/moov/models/errors/updatepaymentlinkerror.rb +6 -2
  70. data/lib/moov/models/errors/updatepaymentlinkerror.rbi +2 -0
  71. data/lib/moov/models/operations/acceptdispute_request.rb +2 -1
  72. data/lib/moov/models/operations/assignaccountcountries_request.rb +2 -1
  73. data/lib/moov/models/operations/cancelschedule_request.rb +2 -1
  74. data/lib/moov/models/operations/completebankaccountverification_request.rb +2 -1
  75. data/lib/moov/models/operations/completemicrodeposits_request.rb +2 -1
  76. data/lib/moov/models/operations/createaccesstoken_request.rb +2 -1
  77. data/lib/moov/models/operations/createaccount_request.rb +2 -1
  78. data/lib/moov/models/operations/createapplepaysession_request.rb +2 -1
  79. data/lib/moov/models/operations/createbrand_request.rb +2 -1
  80. data/lib/moov/models/operations/createcancellation_request.rb +2 -1
  81. data/lib/moov/models/operations/createfeeplanagreements_request.rb +2 -1
  82. data/lib/moov/models/operations/createonboardinginvite_request.rb +2 -1
  83. data/lib/moov/models/operations/createpaymentlink_request.rb +2 -1
  84. data/lib/moov/models/operations/createproduct_request.rb +2 -1
  85. data/lib/moov/models/operations/createreceipts_request.rb +2 -1
  86. data/lib/moov/models/operations/createrepresentative_request.rb +2 -1
  87. data/lib/moov/models/operations/createreversal_request.rb +7 -6
  88. data/lib/moov/models/operations/createreversal_request.rbi +2 -2
  89. data/lib/moov/models/operations/createschedule_request.rb +2 -1
  90. data/lib/moov/models/operations/createsweepconfig_request.rb +2 -1
  91. data/lib/moov/models/operations/createterminalapplication_request.rb +2 -1
  92. data/lib/moov/models/operations/createterminalapplicationversion_request.rb +2 -1
  93. data/lib/moov/models/operations/createticket_request.rb +2 -1
  94. data/lib/moov/models/operations/createtransfer_request.rb +8 -7
  95. data/lib/moov/models/operations/createtransfer_request.rbi +2 -2
  96. data/lib/moov/models/operations/createtransferoptions_request.rb +2 -1
  97. data/lib/moov/models/operations/createwallet_request.rb +2 -1
  98. data/lib/moov/models/operations/deletedisputeevidencefile_request.rb +2 -1
  99. data/lib/moov/models/operations/deleteimage_request.rb +2 -1
  100. data/lib/moov/models/operations/deleterepresentative_request.rb +2 -1
  101. data/lib/moov/models/operations/deleteterminalapplication_request.rb +2 -1
  102. data/lib/moov/models/operations/disablebankaccount_request.rb +2 -1
  103. data/lib/moov/models/operations/disablecapability_request.rb +2 -1
  104. data/lib/moov/models/operations/disablecard_request.rb +2 -1
  105. data/lib/moov/models/operations/disablepaymentlink_request.rb +2 -1
  106. data/lib/moov/models/operations/disableproduct_request.rb +2 -1
  107. data/lib/moov/models/operations/disconnectaccount_request.rb +2 -1
  108. data/lib/moov/models/operations/generateendtoendkey_request.rb +2 -1
  109. data/lib/moov/models/operations/getaccount_request.rb +2 -1
  110. data/lib/moov/models/operations/getaccountcountries_request.rb +2 -1
  111. data/lib/moov/models/operations/getaccountterminalapplication_request.rb +2 -1
  112. data/lib/moov/models/operations/getadjustment_request.rb +2 -1
  113. data/lib/moov/models/operations/getapplepaymerchantdomains_request.rb +2 -1
  114. data/lib/moov/models/operations/getavatar_request.rb +2 -1
  115. data/lib/moov/models/operations/getbankaccount_request.rb +2 -1
  116. data/lib/moov/models/operations/getbankaccountverification_request.rb +2 -1
  117. data/lib/moov/models/operations/getbrand_request.rb +2 -1
  118. data/lib/moov/models/operations/getcancellation_request.rb +2 -1
  119. data/lib/moov/models/operations/getcapability_request.rb +2 -1
  120. data/lib/moov/models/operations/getcard_request.rb +2 -1
  121. data/lib/moov/models/operations/getdispute_request.rb +2 -1
  122. data/lib/moov/models/operations/getdisputeevidence_request.rb +2 -1
  123. data/lib/moov/models/operations/getdisputeevidencedata_request.rb +2 -1
  124. data/lib/moov/models/operations/getenrichmentaddress_request.rb +15 -14
  125. data/lib/moov/models/operations/getenrichmentaddress_request.rbi +2 -2
  126. data/lib/moov/models/operations/getenrichmentprofile_request.rb +2 -1
  127. data/lib/moov/models/operations/getfiledetails_request.rb +2 -1
  128. data/lib/moov/models/operations/getfullissuedcard_request.rb +2 -1
  129. data/lib/moov/models/operations/getimagemetadata_request.rb +2 -1
  130. data/lib/moov/models/operations/getissuedcard_request.rb +2 -1
  131. data/lib/moov/models/operations/getissuedcardauthorization_request.rb +2 -1
  132. data/lib/moov/models/operations/getissuedcardtransaction_request.rb +2 -1
  133. data/lib/moov/models/operations/getmerchantprocessingagreement_request.rb +2 -1
  134. data/lib/moov/models/operations/getonboardinginvite_request.rb +2 -1
  135. data/lib/moov/models/operations/getpaymentlink_request.rb +2 -1
  136. data/lib/moov/models/operations/getpaymentlinkqrcode_request.rb +2 -1
  137. data/lib/moov/models/operations/getpaymentmethod_request.rb +2 -1
  138. data/lib/moov/models/operations/getproduct_request.rb +2 -1
  139. data/lib/moov/models/operations/getrefund_request.rb +2 -1
  140. data/lib/moov/models/operations/getrepresentative_request.rb +2 -1
  141. data/lib/moov/models/operations/getresidual_request.rb +2 -1
  142. data/lib/moov/models/operations/getscheduledoccurrence_request.rb +2 -1
  143. data/lib/moov/models/operations/getschedules_request.rb +2 -1
  144. data/lib/moov/models/operations/getstatement_request.rb +2 -1
  145. data/lib/moov/models/operations/getsweep_request.rb +2 -1
  146. data/lib/moov/models/operations/getsweepconfig_request.rb +2 -1
  147. data/lib/moov/models/operations/getterminalapplication_request.rb +2 -1
  148. data/lib/moov/models/operations/getterminalconfiguration_request.rb +2 -1
  149. data/lib/moov/models/operations/gettermsofservicetoken_request.rb +9 -8
  150. data/lib/moov/models/operations/gettermsofservicetoken_request.rbi +2 -2
  151. data/lib/moov/models/operations/getticket_request.rb +2 -1
  152. data/lib/moov/models/operations/gettransfer_request.rb +2 -1
  153. data/lib/moov/models/operations/getunderwriting_request.rb +2 -1
  154. data/lib/moov/models/operations/getwallet_request.rb +2 -1
  155. data/lib/moov/models/operations/getwallettransaction_request.rb +2 -1
  156. data/lib/moov/models/operations/initiatebankaccountverification_request.rb +9 -8
  157. data/lib/moov/models/operations/initiatebankaccountverification_request.rbi +2 -2
  158. data/lib/moov/models/operations/initiatemicrodeposits_request.rb +2 -1
  159. data/lib/moov/models/operations/initiaterefund_request.rb +10 -9
  160. data/lib/moov/models/operations/initiaterefund_request.rbi +2 -2
  161. data/lib/moov/models/operations/linkaccountterminalapplication_request.rb +2 -1
  162. data/lib/moov/models/operations/linkapplepaytoken_request.rb +2 -1
  163. data/lib/moov/models/operations/linkbankaccount_request.rb +10 -9
  164. data/lib/moov/models/operations/linkbankaccount_request.rbi +2 -2
  165. data/lib/moov/models/operations/linkcard_request.rb +10 -9
  166. data/lib/moov/models/operations/linkcard_request.rbi +2 -2
  167. data/lib/moov/models/operations/listaccounts_request.rb +15 -14
  168. data/lib/moov/models/operations/listaccounts_request.rbi +2 -2
  169. data/lib/moov/models/operations/listaccountterminalapplications_request.rb +2 -1
  170. data/lib/moov/models/operations/listadjustments_request.rb +7 -6
  171. data/lib/moov/models/operations/listadjustments_request.rbi +2 -2
  172. data/lib/moov/models/operations/listbankaccounts_request.rb +2 -1
  173. data/lib/moov/models/operations/listcapabilities_request.rb +2 -1
  174. data/lib/moov/models/operations/listcards_request.rb +2 -1
  175. data/lib/moov/models/operations/listdisputeevidence_request.rb +2 -1
  176. data/lib/moov/models/operations/listdisputes_request.rb +15 -14
  177. data/lib/moov/models/operations/listdisputes_request.rbi +2 -2
  178. data/lib/moov/models/operations/listfeeplanagreements_request.rb +13 -12
  179. data/lib/moov/models/operations/listfeeplanagreements_request.rbi +2 -2
  180. data/lib/moov/models/operations/listfeeplans_request.rb +7 -6
  181. data/lib/moov/models/operations/listfeeplans_request.rbi +2 -2
  182. data/lib/moov/models/operations/listfeesfetch_request.rb +7 -6
  183. data/lib/moov/models/operations/listfeesfetch_request.rbi +2 -2
  184. data/lib/moov/models/operations/listfiles_request.rb +2 -1
  185. data/lib/moov/models/operations/listimagemetadata_request.rb +9 -8
  186. data/lib/moov/models/operations/listimagemetadata_request.rbi +2 -2
  187. data/lib/moov/models/operations/listindustries_request.rb +2 -1
  188. data/lib/moov/models/operations/listinstitutions_request.rb +13 -12
  189. data/lib/moov/models/operations/listinstitutions_request.rbi +2 -2
  190. data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +9 -8
  191. data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rbi +2 -2
  192. data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +15 -14
  193. data/lib/moov/models/operations/listissuedcardauthorizations_request.rbi +2 -2
  194. data/lib/moov/models/operations/listissuedcards_request.rb +11 -10
  195. data/lib/moov/models/operations/listissuedcards_request.rbi +2 -2
  196. data/lib/moov/models/operations/listissuedcardtransactions_request.rb +15 -14
  197. data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +2 -2
  198. data/lib/moov/models/operations/listonboardinginvites_request.rb +2 -1
  199. data/lib/moov/models/operations/listpartnerpricing_request.rb +7 -6
  200. data/lib/moov/models/operations/listpartnerpricing_request.rbi +2 -2
  201. data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +13 -12
  202. data/lib/moov/models/operations/listpartnerpricingagreements_request.rbi +2 -2
  203. data/lib/moov/models/operations/listpaymentlinks_request.rb +19 -2
  204. data/lib/moov/models/operations/listpaymentlinks_request.rbi +8 -0
  205. data/lib/moov/models/operations/listpaymentmethods_request.rb +12 -11
  206. data/lib/moov/models/operations/listpaymentmethods_request.rbi +2 -2
  207. data/lib/moov/models/operations/listproducts_request.rb +9 -8
  208. data/lib/moov/models/operations/listproducts_request.rbi +2 -2
  209. data/lib/moov/models/operations/listreceipts_request.rb +2 -1
  210. data/lib/moov/models/operations/listrefunds_request.rb +2 -1
  211. data/lib/moov/models/operations/listrepresentatives_request.rb +2 -1
  212. data/lib/moov/models/operations/listresidualfees_request.rb +13 -12
  213. data/lib/moov/models/operations/listresidualfees_request.rbi +2 -2
  214. data/lib/moov/models/operations/listresiduals_request.rb +13 -12
  215. data/lib/moov/models/operations/listresiduals_request.rbi +2 -2
  216. data/lib/moov/models/operations/listschedules_request.rb +11 -10
  217. data/lib/moov/models/operations/listschedules_request.rbi +2 -2
  218. data/lib/moov/models/operations/liststatements_request.rb +13 -12
  219. data/lib/moov/models/operations/liststatements_request.rbi +2 -2
  220. data/lib/moov/models/operations/listsweepconfigs_request.rb +2 -1
  221. data/lib/moov/models/operations/listsweeps_request.rb +13 -12
  222. data/lib/moov/models/operations/listsweeps_request.rbi +2 -2
  223. data/lib/moov/models/operations/listterminalapplications_request.rb +2 -1
  224. data/lib/moov/models/operations/listticketmessages_request.rb +2 -1
  225. data/lib/moov/models/operations/listtickets_request.rb +13 -12
  226. data/lib/moov/models/operations/listtickets_request.rbi +2 -2
  227. data/lib/moov/models/operations/listtransfers_request.rb +15 -14
  228. data/lib/moov/models/operations/listtransfers_request.rbi +2 -2
  229. data/lib/moov/models/operations/listwallets_request.rb +13 -12
  230. data/lib/moov/models/operations/listwallets_request.rbi +2 -2
  231. data/lib/moov/models/operations/listwallettransactions_request.rb +15 -14
  232. data/lib/moov/models/operations/listwallettransactions_request.rbi +2 -2
  233. data/lib/moov/models/operations/ping_request.rb +2 -1
  234. data/lib/moov/models/operations/registerapplepaymerchantdomains_request.rb +2 -1
  235. data/lib/moov/models/operations/requestcapabilities_request.rb +2 -1
  236. data/lib/moov/models/operations/requestcard_request.rb +2 -1
  237. data/lib/moov/models/operations/retrievefees_request.rb +15 -14
  238. data/lib/moov/models/operations/retrievefees_request.rbi +2 -2
  239. data/lib/moov/models/operations/revokeaccesstoken_request.rb +2 -1
  240. data/lib/moov/models/operations/revokeonboardinginvite_request.rb +2 -1
  241. data/lib/moov/models/operations/saveunderwriting_request.rb +2 -1
  242. data/lib/moov/models/operations/searchinstitutions_request.rb +11 -10
  243. data/lib/moov/models/operations/searchinstitutions_request.rbi +2 -2
  244. data/lib/moov/models/operations/submitdisputeevidence_request.rb +2 -1
  245. data/lib/moov/models/operations/testendtoendtoken_request.rb +2 -1
  246. data/lib/moov/models/operations/updateaccount_request.rb +2 -1
  247. data/lib/moov/models/operations/updateapplepaymerchantdomains_request.rb +2 -1
  248. data/lib/moov/models/operations/updatebrand_request.rb +2 -1
  249. data/lib/moov/models/operations/updatecard_request.rb +2 -1
  250. data/lib/moov/models/operations/updatedisputeevidence_request.rb +2 -1
  251. data/lib/moov/models/operations/updateimage_request.rb +2 -1
  252. data/lib/moov/models/operations/updateimagemetadata_request.rb +2 -1
  253. data/lib/moov/models/operations/updateissuedcard_request.rb +2 -1
  254. data/lib/moov/models/operations/updatepaymentlink_request.rb +2 -1
  255. data/lib/moov/models/operations/updateproduct_request.rb +2 -1
  256. data/lib/moov/models/operations/updaterepresentative_request.rb +2 -1
  257. data/lib/moov/models/operations/updateschedule_request.rb +2 -1
  258. data/lib/moov/models/operations/updatesweepconfig_request.rb +2 -1
  259. data/lib/moov/models/operations/updateticket_request.rb +2 -1
  260. data/lib/moov/models/operations/updatetransfer_request.rb +2 -1
  261. data/lib/moov/models/operations/updatewallet_request.rb +2 -1
  262. data/lib/moov/models/operations/uploaddisputeevidencefile_request.rb +2 -1
  263. data/lib/moov/models/operations/uploaddisputeevidencetext_request.rb +2 -1
  264. data/lib/moov/models/operations/uploadfile_request.rb +2 -1
  265. data/lib/moov/models/operations/uploadimage_request.rb +2 -1
  266. data/lib/moov/models/operations/upsertbrand_request.rb +2 -1
  267. data/lib/moov/models/operations/upsertunderwriting_request.rb +2 -1
  268. data/lib/moov/payment_links.rb +4 -6
  269. data/lib/moov/sdk_hooks/moov_version.rb +26 -0
  270. data/lib/moov/sdk_hooks/registration.rb +3 -6
  271. data/lib/moov/sdkconfiguration.rb +3 -3
  272. metadata +35 -8
  273. data/lib/moov/models/components/createaccount_termsofservice.rb +0 -28
  274. data/lib/moov/models/components/createaccount_termsofservice.rbi +0 -11
  275. data/lib/moov/models/components/patchaccount_termsofservice.rb +0 -28
  276. data/lib/moov/models/components/patchaccount_termsofservice.rbi +0 -11
  277. data/lib/moov/models/components/termsofservicetokenupdate.rbi +0 -13
@@ -10,6 +10,8 @@ end
10
10
  class Moov::Models::Operations::RetrieveFeesRequest
11
11
  def account_id(); end
12
12
  def account_id=(str_); end
13
+ def x_moov_version(); end
14
+ def x_moov_version=(str_); end
13
15
  def transfer_id(); end
14
16
  def transfer_id=(str_); end
15
17
  def dispute_id(); end
@@ -22,6 +24,4 @@ class Moov::Models::Operations::RetrieveFeesRequest
22
24
  def skip=(str_); end
23
25
  def count(); end
24
26
  def count=(str_); end
25
- def x_moov_version(); end
26
- def x_moov_version=(str_); end
27
27
  end
@@ -24,10 +24,11 @@ module Moov
24
24
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
25
25
  #
26
26
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
27
+ # When no version is specified, the API defaults to `v2024.01.00`.
27
28
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
28
29
 
29
30
  sig { params(revoke_token_request: Models::Components::RevokeTokenRequest, x_moov_version: T.nilable(::String)).void }
30
- def initialize(revoke_token_request:, x_moov_version: 'v2024.01.00')
31
+ def initialize(revoke_token_request:, x_moov_version: nil)
31
32
  @revoke_token_request = revoke_token_request
32
33
  @x_moov_version = x_moov_version
33
34
  end
@@ -24,10 +24,11 @@ module Moov
24
24
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
25
25
  #
26
26
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
27
+ # When no version is specified, the API defaults to `v2024.01.00`.
27
28
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
28
29
 
29
30
  sig { params(code: ::String, x_moov_version: T.nilable(::String)).void }
30
- def initialize(code:, x_moov_version: 'v2024.01.00')
31
+ def initialize(code:, x_moov_version: nil)
31
32
  @code = code
32
33
  @x_moov_version = x_moov_version
33
34
  end
@@ -26,10 +26,11 @@ module Moov
26
26
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
27
27
  #
28
28
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
29
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
30
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
31
 
31
32
  sig { params(account_id: ::String, upsert_underwriting: Models::Components::UpsertUnderwriting, x_moov_version: T.nilable(::String)).void }
32
- def initialize(account_id:, upsert_underwriting:, x_moov_version: 'v2024.01.00')
33
+ def initialize(account_id:, upsert_underwriting:, x_moov_version: nil)
33
34
  @account_id = account_id
34
35
  @upsert_underwriting = upsert_underwriting
35
36
  @x_moov_version = x_moov_version
@@ -13,12 +13,6 @@ module Moov
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
- # Name of the financial institution. Either `name` or `routingNumber` is required.
17
- field :name, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'name', 'style': 'form', 'explode': false } }
18
- # Routing number for a financial institution. Either `routingNumber` or `name` is required.
19
- field :routing_number, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'routingNumber', 'style': 'form', 'explode': false } }
20
- # Maximum results returned by a search.
21
- field :limit, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': false } }
22
16
  # Specify an API version.
23
17
  #
24
18
  # API versioning follows the format `vYYYY.QQ.BB`, where
@@ -28,23 +22,30 @@ module Moov
28
22
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
23
  #
30
24
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
25
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
26
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
27
+ # Name of the financial institution. Either `name` or `routingNumber` is required.
28
+ field :name, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'name', 'style': 'form', 'explode': false } }
29
+ # Routing number for a financial institution. Either `routingNumber` or `name` is required.
30
+ field :routing_number, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'routingNumber', 'style': 'form', 'explode': false } }
31
+ # Maximum results returned by a search.
32
+ field :limit, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': false } }
32
33
 
33
- sig { params(name: T.nilable(::String), routing_number: T.nilable(::String), limit: T.nilable(::Integer), x_moov_version: T.nilable(::String)).void }
34
- def initialize(name: nil, routing_number: nil, limit: nil, x_moov_version: 'v2024.01.00')
34
+ sig { params(x_moov_version: T.nilable(::String), name: T.nilable(::String), routing_number: T.nilable(::String), limit: T.nilable(::Integer)).void }
35
+ def initialize(x_moov_version: nil, name: nil, routing_number: nil, limit: nil)
36
+ @x_moov_version = x_moov_version
35
37
  @name = name
36
38
  @routing_number = routing_number
37
39
  @limit = limit
38
- @x_moov_version = x_moov_version
39
40
  end
40
41
 
41
42
  sig { params(other: T.untyped).returns(T::Boolean) }
42
43
  def ==(other)
43
44
  return false unless other.is_a? self.class
45
+ return false unless @x_moov_version == other.x_moov_version
44
46
  return false unless @name == other.name
45
47
  return false unless @routing_number == other.routing_number
46
48
  return false unless @limit == other.limit
47
- return false unless @x_moov_version == other.x_moov_version
48
49
  true
49
50
  end
50
51
  end
@@ -8,12 +8,12 @@ end
8
8
 
9
9
 
10
10
  class Moov::Models::Operations::SearchInstitutionsRequest
11
+ def x_moov_version(); end
12
+ def x_moov_version=(str_); end
11
13
  def name(); end
12
14
  def name=(str_); end
13
15
  def routing_number(); end
14
16
  def routing_number=(str_); end
15
17
  def limit(); end
16
18
  def limit=(str_); end
17
- def x_moov_version(); end
18
- def x_moov_version=(str_); end
19
19
  end
@@ -26,10 +26,11 @@ module Moov
26
26
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
27
27
  #
28
28
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
29
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
30
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
31
 
31
32
  sig { params(account_id: ::String, dispute_id: ::String, x_moov_version: T.nilable(::String)).void }
32
- def initialize(account_id:, dispute_id:, x_moov_version: 'v2024.01.00')
33
+ def initialize(account_id:, dispute_id:, x_moov_version: nil)
33
34
  @account_id = account_id
34
35
  @dispute_id = dispute_id
35
36
  @x_moov_version = x_moov_version
@@ -24,10 +24,11 @@ module Moov
24
24
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
25
25
  #
26
26
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
27
+ # When no version is specified, the API defaults to `v2024.01.00`.
27
28
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
28
29
 
29
30
  sig { params(e2_ee_token: Models::Components::E2EEToken, x_moov_version: T.nilable(::String)).void }
30
- def initialize(e2_ee_token:, x_moov_version: 'v2024.01.00')
31
+ def initialize(e2_ee_token:, x_moov_version: nil)
31
32
  @e2_ee_token = e2_ee_token
32
33
  @x_moov_version = x_moov_version
33
34
  end
@@ -26,10 +26,11 @@ module Moov
26
26
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
27
27
  #
28
28
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
29
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
30
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
31
 
31
32
  sig { params(account_id: ::String, patch_account: Models::Components::PatchAccount, x_moov_version: T.nilable(::String)).void }
32
- def initialize(account_id:, patch_account:, x_moov_version: 'v2024.01.00')
33
+ def initialize(account_id:, patch_account:, x_moov_version: nil)
33
34
  @account_id = account_id
34
35
  @patch_account = patch_account
35
36
  @x_moov_version = x_moov_version
@@ -26,10 +26,11 @@ module Moov
26
26
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
27
27
  #
28
28
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
29
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
30
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
31
 
31
32
  sig { params(account_id: ::String, update_apple_pay_merchant_domains: Models::Components::UpdateApplePayMerchantDomains, x_moov_version: T.nilable(::String)).void }
32
- def initialize(account_id:, update_apple_pay_merchant_domains:, x_moov_version: 'v2024.01.00')
33
+ def initialize(account_id:, update_apple_pay_merchant_domains:, x_moov_version: nil)
33
34
  @account_id = account_id
34
35
  @update_apple_pay_merchant_domains = update_apple_pay_merchant_domains
35
36
  @x_moov_version = x_moov_version
@@ -26,10 +26,11 @@ module Moov
26
26
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
27
27
  #
28
28
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
29
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
30
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
31
 
31
32
  sig { params(account_id: ::String, update_brand: Models::Components::UpdateBrand, x_moov_version: T.nilable(::String)).void }
32
- def initialize(account_id:, update_brand:, x_moov_version: 'v2024.01.00')
33
+ def initialize(account_id:, update_brand:, x_moov_version: nil)
33
34
  @account_id = account_id
34
35
  @update_brand = update_brand
35
36
  @x_moov_version = x_moov_version
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, card_id: ::String, update_card: Models::Components::UpdateCard, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, card_id:, update_card:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, card_id:, update_card:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @card_id = card_id
37
38
  @update_card = update_card
@@ -30,10 +30,11 @@ module Moov
30
30
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
31
31
  #
32
32
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
33
+ # When no version is specified, the API defaults to `v2024.01.00`.
33
34
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
34
35
 
35
36
  sig { params(account_id: ::String, dispute_id: ::String, evidence_id: ::String, update_evidence: Models::Components::UpdateEvidence, x_moov_version: T.nilable(::String)).void }
36
- def initialize(account_id:, dispute_id:, evidence_id:, update_evidence:, x_moov_version: 'v2024.01.00')
37
+ def initialize(account_id:, dispute_id:, evidence_id:, update_evidence:, x_moov_version: nil)
37
38
  @account_id = account_id
38
39
  @dispute_id = dispute_id
39
40
  @evidence_id = evidence_id
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, image_id: ::String, image_update_request_multi_part: Models::Components::ImageUpdateRequestMultiPart, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, image_id:, image_update_request_multi_part:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, image_id:, image_update_request_multi_part:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @image_id = image_id
37
38
  @image_update_request_multi_part = image_update_request_multi_part
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, image_id: ::String, image_metadata_request: Models::Components::ImageMetadataRequest, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, image_id:, image_metadata_request:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, image_id:, image_metadata_request:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @image_id = image_id
37
38
  @image_metadata_request = image_metadata_request
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, issued_card_id: ::String, update_issued_card: Models::Components::UpdateIssuedCard, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, issued_card_id:, update_issued_card:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, issued_card_id:, update_issued_card:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @issued_card_id = issued_card_id
37
38
  @update_issued_card = update_issued_card
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, payment_link_code: ::String, update_payment_link: Models::Components::UpdatePaymentLink, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, payment_link_code:, update_payment_link:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, payment_link_code:, update_payment_link:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @payment_link_code = payment_link_code
37
38
  @update_payment_link = update_payment_link
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, product_id: ::String, product_request: Models::Components::ProductRequest, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, product_id:, product_request:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, product_id:, product_request:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @product_id = product_id
37
38
  @product_request = product_request
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, representative_id: ::String, update_representative: Models::Components::UpdateRepresentative, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, representative_id:, update_representative:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, representative_id:, update_representative:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @representative_id = representative_id
37
38
  @update_representative = update_representative
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, schedule_id: ::String, upsert_schedule: Models::Components::UpsertSchedule, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, schedule_id:, upsert_schedule:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, schedule_id:, upsert_schedule:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @schedule_id = schedule_id
37
38
  @upsert_schedule = upsert_schedule
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, sweep_config_id: ::String, patch_sweep_config: Models::Components::PatchSweepConfig, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, sweep_config_id:, patch_sweep_config:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, sweep_config_id:, patch_sweep_config:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @sweep_config_id = sweep_config_id
37
38
  @patch_sweep_config = patch_sweep_config
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, ticket_id: ::String, update_ticket: Models::Components::UpdateTicket, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, ticket_id:, update_ticket:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, ticket_id:, update_ticket:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @ticket_id = ticket_id
37
38
  @update_ticket = update_ticket
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(transfer_id: ::String, account_id: ::String, patch_transfer: Models::Components::PatchTransfer, x_moov_version: T.nilable(::String)).void }
34
- def initialize(transfer_id:, account_id:, patch_transfer:, x_moov_version: 'v2024.01.00')
35
+ def initialize(transfer_id:, account_id:, patch_transfer:, x_moov_version: nil)
35
36
  @transfer_id = transfer_id
36
37
  @account_id = account_id
37
38
  @patch_transfer = patch_transfer
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(wallet_id: ::String, account_id: ::String, patch_wallet: Models::Components::PatchWallet, x_moov_version: T.nilable(::String)).void }
34
- def initialize(wallet_id:, account_id:, patch_wallet:, x_moov_version: 'v2024.01.00')
35
+ def initialize(wallet_id:, account_id:, patch_wallet:, x_moov_version: nil)
35
36
  @wallet_id = wallet_id
36
37
  @account_id = account_id
37
38
  @patch_wallet = patch_wallet
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, dispute_id: ::String, create_evidence_file_multi_part: Models::Components::CreateEvidenceFileMultiPart, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, dispute_id:, create_evidence_file_multi_part:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, dispute_id:, create_evidence_file_multi_part:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @dispute_id = dispute_id
37
38
  @create_evidence_file_multi_part = create_evidence_file_multi_part
@@ -28,10 +28,11 @@ module Moov
28
28
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
29
  #
30
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ # When no version is specified, the API defaults to `v2024.01.00`.
31
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
32
33
 
33
34
  sig { params(account_id: ::String, dispute_id: ::String, create_evidence_text: Models::Components::CreateEvidenceText, x_moov_version: T.nilable(::String)).void }
34
- def initialize(account_id:, dispute_id:, create_evidence_text:, x_moov_version: 'v2024.01.00')
35
+ def initialize(account_id:, dispute_id:, create_evidence_text:, x_moov_version: nil)
35
36
  @account_id = account_id
36
37
  @dispute_id = dispute_id
37
38
  @create_evidence_text = create_evidence_text
@@ -26,10 +26,11 @@ module Moov
26
26
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
27
27
  #
28
28
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
29
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
30
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
31
 
31
32
  sig { params(account_id: ::String, file_upload_request_multi_part: Models::Components::FileUploadRequestMultiPart, x_moov_version: T.nilable(::String)).void }
32
- def initialize(account_id:, file_upload_request_multi_part:, x_moov_version: 'v2024.01.00')
33
+ def initialize(account_id:, file_upload_request_multi_part:, x_moov_version: nil)
33
34
  @account_id = account_id
34
35
  @file_upload_request_multi_part = file_upload_request_multi_part
35
36
  @x_moov_version = x_moov_version
@@ -26,10 +26,11 @@ module Moov
26
26
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
27
27
  #
28
28
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
29
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
30
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
31
 
31
32
  sig { params(account_id: ::String, image_upload_request_multi_part: Models::Components::ImageUploadRequestMultiPart, x_moov_version: T.nilable(::String)).void }
32
- def initialize(account_id:, image_upload_request_multi_part:, x_moov_version: 'v2024.01.00')
33
+ def initialize(account_id:, image_upload_request_multi_part:, x_moov_version: nil)
33
34
  @account_id = account_id
34
35
  @image_upload_request_multi_part = image_upload_request_multi_part
35
36
  @x_moov_version = x_moov_version
@@ -26,10 +26,11 @@ module Moov
26
26
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
27
27
  #
28
28
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
29
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
30
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
31
 
31
32
  sig { params(account_id: ::String, brand_properties: Models::Components::BrandProperties, x_moov_version: T.nilable(::String)).void }
32
- def initialize(account_id:, brand_properties:, x_moov_version: 'v2024.01.00')
33
+ def initialize(account_id:, brand_properties:, x_moov_version: nil)
33
34
  @account_id = account_id
34
35
  @brand_properties = brand_properties
35
36
  @x_moov_version = x_moov_version
@@ -26,10 +26,11 @@ module Moov
26
26
  # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
27
27
  #
28
28
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
29
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
30
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
31
 
31
32
  sig { params(account_id: ::String, update_underwriting: Models::Components::UpdateUnderwriting, x_moov_version: T.nilable(::String)).void }
32
- def initialize(account_id:, update_underwriting:, x_moov_version: 'v2024.01.00')
33
+ def initialize(account_id:, update_underwriting:, x_moov_version: nil)
33
34
  @account_id = account_id
34
35
  @update_underwriting = update_underwriting
35
36
  @x_moov_version = x_moov_version
@@ -203,16 +203,12 @@ module Moov
203
203
  end
204
204
 
205
205
 
206
- sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPaymentLinksResponse) }
207
- def list(account_id:, x_moov_version: nil, timeout_ms: nil)
206
+ sig { params(request: Models::Operations::ListPaymentLinksRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPaymentLinksResponse) }
207
+ def list(request:, timeout_ms: nil)
208
208
  # list - List all the payment links created under a Moov account.
209
209
  #
210
210
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
211
211
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
212
- request = Models::Operations::ListPaymentLinksRequest.new(
213
- account_id: account_id,
214
- x_moov_version: x_moov_version
215
- )
216
212
  url, params = @sdk_configuration.get_server_details
217
213
  base_url = Utils.template_url(url, params)
218
214
  url = Utils.generate_url(
@@ -224,6 +220,7 @@ module Moov
224
220
  )
225
221
  headers = Utils.get_headers(request, @sdk_configuration.globals)
226
222
  headers = T.cast(headers, T::Hash[String, String])
223
+ query_params = Utils.get_query_params(Models::Operations::ListPaymentLinksRequest, request, nil, @sdk_configuration.globals)
227
224
  headers['Accept'] = 'application/json'
228
225
  headers['user-agent'] = @sdk_configuration.user_agent
229
226
 
@@ -251,6 +248,7 @@ module Moov
251
248
  http_response = T.must(connection).get(url) do |req|
252
249
  req.headers.merge!(headers)
253
250
  req.options.timeout = timeout unless timeout.nil?
251
+ req.params = query_params
254
252
  Utils.configure_request_security(req, security)
255
253
 
256
254
  @sdk_configuration.hooks.before_request(
@@ -0,0 +1,26 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ require_relative './types'
5
+ require 'sorbet-runtime'
6
+
7
+ module Moov
8
+ module SDKHooks
9
+ class MoovVersionHook < AbstractSDKHook
10
+ extend T::Sig
11
+
12
+ sig do
13
+ override.params(
14
+ config: SDKConfiguration
15
+ ).returns(SDKConfiguration)
16
+ end
17
+ def sdk_init(config:)
18
+ parameters = (config.globals[:parameters] ||= {})
19
+ header = (parameters[:header] ||= {})
20
+ header[:x_moov_version] = config.openapi_doc_version
21
+ config
22
+ end
23
+
24
+ end
25
+ end
26
+ end
@@ -9,6 +9,7 @@
9
9
  #
10
10
 
11
11
  require_relative './types'
12
+ require_relative './moov_version'
12
13
 
13
14
 
14
15
  module Moov
@@ -22,12 +23,8 @@ module Moov
22
23
  ).void
23
24
  end
24
25
  def self.init_hooks(hooks)
25
- # example_hook = ExampleHook.new
26
-
27
- # hooks.register_sdk_init_hook example_hook
28
- # hooks.register_before_request_hook example_hook
29
- # hooks.register_after_error_hook example_hook
30
- # hooks.register_after_success_hook example_hook
26
+ version_hook = MoovVersionHook.new
27
+ hooks.register_sdk_init_hook version_hook
31
28
  end
32
29
  end
33
30
  end
@@ -95,9 +95,9 @@ module Moov
95
95
  @globals = globals.nil? ? {} : globals
96
96
  @language = 'ruby'
97
97
  @openapi_doc_version = 'latest'
98
- @sdk_version = '0.3.2'
99
- @gen_version = '2.739.1'
100
- @user_agent = 'speakeasy-sdk/ruby 0.3.2 2.739.1 latest moov_ruby'
98
+ @sdk_version = '0.3.3'
99
+ @gen_version = '2.755.9'
100
+ @user_agent = 'speakeasy-sdk/ruby 0.3.3 2.755.9 latest moov_ruby'
101
101
  end
102
102
 
103
103
  sig { returns([String, T::Hash[Symbol, String]]) }