moov_ruby 26.1.9 → 26.4.0.pre.dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (603) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/metadata_fields.rb +22 -85
  3. data/lib/crystalline/module.rb +13 -99
  4. data/lib/crystalline/types.rb +0 -79
  5. data/lib/moov/account_terminal_applications.rb +5 -5
  6. data/lib/moov/accounts.rb +22 -22
  7. data/lib/moov/adjustments.rb +2 -2
  8. data/lib/moov/apple_pay.rb +14 -14
  9. data/lib/moov/authentication.rb +3 -3
  10. data/lib/moov/avatars.rb +2 -2
  11. data/lib/moov/bank_accounts.rb +26 -26
  12. data/lib/moov/branding.rb +5 -5
  13. data/lib/moov/capabilities.rb +6 -6
  14. data/lib/moov/card_issuing.rb +8 -8
  15. data/lib/moov/cards.rb +17 -32
  16. data/lib/moov/disputes.rb +32 -32
  17. data/lib/moov/end_to_end_encryption.rb +2 -2
  18. data/lib/moov/enriched_profile.rb +1 -1
  19. data/lib/moov/fee_plans.rb +12 -12
  20. data/lib/moov/files.rb +5 -5
  21. data/lib/moov/images.rb +10 -10
  22. data/lib/moov/industries.rb +1 -1
  23. data/lib/moov/institutions.rb +7 -7
  24. data/lib/moov/issuing_transactions.rb +5 -5
  25. data/lib/moov/models/components/account.rb +5 -5
  26. data/lib/moov/models/components/accountfees.rb +2 -6
  27. data/lib/moov/models/components/accountfees.rbi +0 -2
  28. data/lib/moov/models/components/accountnameverification.rb +4 -4
  29. data/lib/moov/models/components/accounttype.rb +2 -0
  30. data/lib/moov/models/components/accountverificationstatus.rb +4 -2
  31. data/lib/moov/models/components/achcreditsamedaypaymentmethod.rb +1 -1
  32. data/lib/moov/models/components/achcreditsamedaypaymentmethod_paymentmethodtype.rb +2 -0
  33. data/lib/moov/models/components/achcreditstandardpaymentmethod.rb +1 -1
  34. data/lib/moov/models/components/achcreditstandardpaymentmethod_paymentmethodtype.rb +2 -0
  35. data/lib/moov/models/components/achdebitcollectpaymentmethod.rb +1 -1
  36. data/lib/moov/models/components/achdebitcollectpaymentmethod_paymentmethodtype.rb +2 -0
  37. data/lib/moov/models/components/achdebitfundpaymentmethod.rb +1 -1
  38. data/lib/moov/models/components/achdebitfundpaymentmethod_paymentmethodtype.rb +2 -0
  39. data/lib/moov/models/components/achreturncode.rb +3 -1
  40. data/lib/moov/models/components/achtransactiondetails.rb +10 -10
  41. data/lib/moov/models/components/achtransactionstatus.rb +2 -0
  42. data/lib/moov/models/components/adjustment.rb +1 -1
  43. data/lib/moov/models/components/adjustmentfees.rb +3 -3
  44. data/lib/moov/models/components/amount.rb +1 -1
  45. data/lib/moov/models/components/amountdecimal.rb +1 -1
  46. data/lib/moov/models/components/amountupdate.rb +1 -1
  47. data/lib/moov/models/components/applepayheader.rb +1 -1
  48. data/lib/moov/models/components/applepaymerchantdomains.rb +2 -2
  49. data/lib/moov/models/components/applepaypaymentmethod.rb +1 -1
  50. data/lib/moov/models/components/applepaypaymentmethod_paymentmethodtype.rb +2 -0
  51. data/lib/moov/models/components/applepayresponse.rb +2 -2
  52. data/lib/moov/models/components/applicationscope.rb +2 -0
  53. data/lib/moov/models/components/asynccreatedrefund.rb +1 -1
  54. data/lib/moov/models/components/asynctransfer.rb +1 -1
  55. data/lib/moov/models/components/authtoken.rb +1 -1
  56. data/lib/moov/models/components/authtokenrequest.rb +2 -2
  57. data/lib/moov/models/components/bankaccount.rb +7 -7
  58. data/lib/moov/models/components/bankaccountexception.rb +5 -5
  59. data/lib/moov/models/components/bankaccountholdertype.rb +2 -0
  60. data/lib/moov/models/components/bankaccountintegration.rb +2 -2
  61. data/lib/moov/models/components/bankaccountstatus.rb +2 -0
  62. data/lib/moov/models/components/bankaccountstatusreason.rb +2 -0
  63. data/lib/moov/models/components/bankaccounttype.rb +2 -0
  64. data/lib/moov/models/components/bankaccountverification.rb +2 -2
  65. data/lib/moov/models/components/bankaccountverificationcreated.rb +2 -2
  66. data/lib/moov/models/components/bankaccountverificationmethod.rb +2 -0
  67. data/lib/moov/models/components/bankaccountverificationstatus.rb +2 -0
  68. data/lib/moov/models/components/bankaccountwaitfor.rb +2 -0
  69. data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
  70. data/lib/moov/models/components/billablefee.rb +3 -3
  71. data/lib/moov/models/components/billingsummary.rb +6 -6
  72. data/lib/moov/models/components/billingsummary_platformfees.rb +3 -3
  73. data/lib/moov/models/components/billingsummary_volumeamount.rb +3 -3
  74. data/lib/moov/models/components/billingsummarydetails.rb +4 -4
  75. data/lib/moov/models/components/billingsummarydetails_volumeamount.rb +3 -3
  76. data/lib/moov/models/components/businesspresence.rb +2 -0
  77. data/lib/moov/models/components/businessprofile.rb +2 -2
  78. data/lib/moov/models/components/businesstype.rb +2 -0
  79. data/lib/moov/models/components/calltoaction.rb +3 -1
  80. data/lib/moov/models/components/cancellation.rb +2 -2
  81. data/lib/moov/models/components/cancellationstatus.rb +2 -0
  82. data/lib/moov/models/components/capability.rb +6 -6
  83. data/lib/moov/models/components/capabilityid.rb +3 -1
  84. data/lib/moov/models/components/capabilitystatus.rb +2 -0
  85. data/lib/moov/models/components/card.rb +5 -5
  86. data/lib/moov/models/components/cardaccountupdater.rb +2 -2
  87. data/lib/moov/models/components/cardacquiring.rb +4 -4
  88. data/lib/moov/models/components/cardacquiringdispute.rb +1 -1
  89. data/lib/moov/models/components/cardacquiringmodel.rb +2 -0
  90. data/lib/moov/models/components/cardacquiringrefund.rb +3 -3
  91. data/lib/moov/models/components/cardbrand.rb +2 -0
  92. data/lib/moov/models/components/cardissuingnetwork.rb +2 -0
  93. data/lib/moov/models/components/cardpaymentpaymentmethod.rb +1 -1
  94. data/lib/moov/models/components/cardpaymentpaymentmethod_paymentmethodtype.rb +2 -0
  95. data/lib/moov/models/components/cardpresentpaymentpaymentmethod.rb +1 -1
  96. data/lib/moov/models/components/cardpresentpaymentpaymentmethod_paymentmethodtype.rb +2 -0
  97. data/lib/moov/models/components/cardtransactiondetails.rb +12 -12
  98. data/lib/moov/models/components/cardtransactionfailurecode.rb +2 -0
  99. data/lib/moov/models/components/cardtransactionstatus.rb +2 -0
  100. data/lib/moov/models/components/cardtype.rb +2 -0
  101. data/lib/moov/models/components/cardupdatereason.rb +2 -0
  102. data/lib/moov/models/components/cardverification.rb +3 -3
  103. data/lib/moov/models/components/cardverificationresult.rb +2 -0
  104. data/lib/moov/models/components/collectfundscardpayments.rb +1 -1
  105. data/lib/moov/models/components/collectionpaymentmethodtype.rb +2 -0
  106. data/lib/moov/models/components/completedmicrodeposits.rb +1 -1
  107. data/lib/moov/models/components/createaccount.rb +2 -2
  108. data/lib/moov/models/components/createaccounttype.rb +2 -0
  109. data/lib/moov/models/components/createbusinessprofile.rb +2 -2
  110. data/lib/moov/models/components/createdtransfer.rb +4 -4
  111. data/lib/moov/models/components/createevidencefilemultipart.rb +1 -1
  112. data/lib/moov/models/components/createevidencetext.rb +1 -1
  113. data/lib/moov/models/components/createfeeplanagreement.rb +1 -1
  114. data/lib/moov/models/components/createpaymentlink.rb +4 -4
  115. data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -6
  116. data/lib/moov/models/components/createpaymentlinklineitemoption.rb +1 -4
  117. data/lib/moov/models/components/createproductoption.rb +1 -1
  118. data/lib/moov/models/components/createproductoptiongroup.rb +2 -2
  119. data/lib/moov/models/components/createrefund.rb +1 -1
  120. data/lib/moov/models/components/createscheduledtransferlineitem.rb +2 -6
  121. data/lib/moov/models/components/createscheduledtransferlineitemoption.rb +1 -4
  122. data/lib/moov/models/components/createsweepconfig.rb +1 -1
  123. data/lib/moov/models/components/createterminalapplication.rb +1 -1
  124. data/lib/moov/models/components/createtransferlineitem.rb +2 -6
  125. data/lib/moov/models/components/createtransferlineitemoption.rb +1 -4
  126. data/lib/moov/models/components/createtransfersourceach.rb +2 -2
  127. data/lib/moov/models/components/createtransfersourcecard.rb +2 -2
  128. data/lib/moov/models/components/createwebhook.rb +1 -1
  129. data/lib/moov/models/components/debitholdperiod.rb +2 -0
  130. data/lib/moov/models/components/disbursementpaymentmethodtype.rb +2 -0
  131. data/lib/moov/models/components/dispute.rb +7 -7
  132. data/lib/moov/models/components/disputeevidenceresponse.rb +4 -4
  133. data/lib/moov/models/components/disputephase.rb +2 -0
  134. data/lib/moov/models/components/disputestatus.rb +3 -1
  135. data/lib/moov/models/components/document.rb +2 -2
  136. data/lib/moov/models/components/documenttype.rb +2 -0
  137. data/lib/moov/models/components/domesticpullfromcard.rb +2 -0
  138. data/lib/moov/models/components/domesticpushtocard.rb +2 -0
  139. data/lib/moov/models/components/entrymode.rb +2 -0
  140. data/lib/moov/models/components/estimatedactivity.rb +1 -1
  141. data/lib/moov/models/components/evidencetextresponse.rb +2 -2
  142. data/lib/moov/models/components/evidencetype.rb +2 -0
  143. data/lib/moov/models/components/evidenceuploadresponse.rb +2 -2
  144. data/lib/moov/models/components/facilitatorfee.rb +1 -1
  145. data/lib/moov/models/components/feecategory.rb +2 -0
  146. data/lib/moov/models/components/feemodel.rb +2 -0
  147. data/lib/moov/models/components/feeplan.rb +3 -3
  148. data/lib/moov/models/components/feeplanagreement.rb +6 -6
  149. data/lib/moov/models/components/feeplanagreementstatus.rb +2 -0
  150. data/lib/moov/models/components/feeproperties.rb +1 -1
  151. data/lib/moov/models/components/filedetails.rb +4 -4
  152. data/lib/moov/models/components/filepurpose.rb +2 -0
  153. data/lib/moov/models/components/filestatus.rb +2 -0
  154. data/lib/moov/models/components/fileuploadrequestmultipart.rb +1 -1
  155. data/lib/moov/models/components/fulfillment.rb +2 -2
  156. data/lib/moov/models/components/fulfillmentdetails.rb +1 -1
  157. data/lib/moov/models/components/fulfillmentmethod.rb +2 -0
  158. data/lib/moov/models/components/fulfillmenttimeframe.rb +2 -0
  159. data/lib/moov/models/components/fullissuedcard.rb +5 -5
  160. data/lib/moov/models/components/generatedby.rb +7 -11
  161. data/lib/moov/models/components/generatedby.rbi +0 -2
  162. data/lib/moov/models/components/geographicreach.rb +2 -0
  163. data/lib/moov/models/components/granttype.rb +3 -1
  164. data/lib/moov/models/components/imagemetadata.rb +4 -4
  165. data/lib/moov/models/components/incurredfee.rb +2 -2
  166. data/lib/moov/models/components/instantbankcreditpaymentmethod.rb +1 -1
  167. data/lib/moov/models/components/instantbankcreditpaymentmethod_paymentmethodtype.rb +2 -0
  168. data/lib/moov/models/components/invoicestatus.rb +2 -0
  169. data/lib/moov/models/components/issuedcard.rb +5 -5
  170. data/lib/moov/models/components/issuedcardauthorization.rb +3 -3
  171. data/lib/moov/models/components/issuedcardauthorizationevent.rb +3 -3
  172. data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +2 -0
  173. data/lib/moov/models/components/issuedcardeventtype.rb +2 -0
  174. data/lib/moov/models/components/issuedcardformfactor.rb +2 -0
  175. data/lib/moov/models/components/issuedcardstate.rb +3 -1
  176. data/lib/moov/models/components/issuedcardtransaction.rb +2 -2
  177. data/lib/moov/models/components/issuingauthorizationstatus.rb +2 -0
  178. data/lib/moov/models/components/issuingintervallimit.rb +2 -0
  179. data/lib/moov/models/components/issuingvelocitylimit.rb +1 -1
  180. data/lib/moov/models/components/jsonwebkey.rb +6 -6
  181. data/lib/moov/models/components/kind.rb +2 -0
  182. data/lib/moov/models/components/linkapplepay.rb +2 -2
  183. data/lib/moov/models/components/linkapplepaymentdata.rb +2 -2
  184. data/lib/moov/models/components/linkapplepaymentmethod.rb +1 -1
  185. data/lib/moov/models/components/linkapplepaytoken.rb +3 -3
  186. data/lib/moov/models/components/linkcardwaitfor.rb +2 -0
  187. data/lib/moov/models/components/linkedapplepaypaymentmethod.rb +1 -1
  188. data/lib/moov/models/components/manualtermsofservice.rb +1 -1
  189. data/lib/moov/models/components/manualtermsofserviceupdate.rb +1 -1
  190. data/lib/moov/models/components/microdepositstatus.rb +2 -0
  191. data/lib/moov/models/components/minimumcommitment.rb +1 -1
  192. data/lib/moov/models/components/mode.rb +2 -0
  193. data/lib/moov/models/components/monthlyplatformfee.rb +1 -1
  194. data/lib/moov/models/components/monthlyvolumerange.rb +2 -0
  195. data/lib/moov/models/components/moovfee.rb +1 -1
  196. data/lib/moov/models/components/moovwalletpaymentmethod.rb +1 -1
  197. data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +2 -0
  198. data/lib/moov/models/components/mxauthorizationcode.rb +1 -1
  199. data/lib/moov/models/components/mxpayload.rb +3 -3
  200. data/lib/moov/models/components/occurrence.rb +1 -1
  201. data/lib/moov/models/components/occurrencesresponse.rb +5 -5
  202. data/lib/moov/models/components/occurrencestatus.rb +2 -0
  203. data/lib/moov/models/components/onboardinginvite.rb +3 -3
  204. data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
  205. data/lib/moov/models/components/otherfees.rb +3 -3
  206. data/lib/moov/models/components/partnerpricingagreement.rb +6 -6
  207. data/lib/moov/models/components/patchbusiness.rb +2 -2
  208. data/lib/moov/models/components/patchsweepconfig.rb +1 -1
  209. data/lib/moov/models/components/patchwallet.rb +1 -1
  210. data/lib/moov/models/components/paymentlink.rb +9 -9
  211. data/lib/moov/models/components/paymentlinkdisplayoptions.rb +2 -2
  212. data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +2 -2
  213. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +1 -1
  214. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +1 -1
  215. data/lib/moov/models/components/paymentlinkstatus.rb +2 -0
  216. data/lib/moov/models/components/paymentlinktype.rb +2 -1
  217. data/lib/moov/models/components/paymentmethodsbankaccount.rb +5 -5
  218. data/lib/moov/models/components/paymentmethodscard.rb +4 -4
  219. data/lib/moov/models/components/paymentmethodswallet.rb +1 -1
  220. data/lib/moov/models/components/paymentmethodtype.rb +2 -0
  221. data/lib/moov/models/components/payoutrecipient.rb +1 -1
  222. data/lib/moov/models/components/pendinglitigation.rb +2 -0
  223. data/lib/moov/models/components/plaidintegration.rb +2 -2
  224. data/lib/moov/models/components/plaidlinkintegration.rb +2 -2
  225. data/lib/moov/models/components/plaidlinkpayload.rb +3 -3
  226. data/lib/moov/models/components/plaidpayload.rb +2 -2
  227. data/lib/moov/models/components/platformfees.rb +2 -2
  228. data/lib/moov/models/components/primaryregulator.rb +2 -0
  229. data/lib/moov/models/components/product.rb +4 -4
  230. data/lib/moov/models/components/productoption.rb +1 -1
  231. data/lib/moov/models/components/productoptiongroup.rb +2 -2
  232. data/lib/moov/models/components/productrequest.rb +1 -1
  233. data/lib/moov/models/components/pullfromcardpaymentmethod.rb +1 -1
  234. data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +2 -0
  235. data/lib/moov/models/components/pushtocardpaymentmethod.rb +1 -1
  236. data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +2 -0
  237. data/lib/moov/models/components/receiptkind.rb +2 -0
  238. data/lib/moov/models/components/receiptrequest.rb +1 -1
  239. data/lib/moov/models/components/receiptresponse.rb +2 -2
  240. data/lib/moov/models/components/recur.rb +1 -1
  241. data/lib/moov/models/components/recurresponse.rb +1 -1
  242. data/lib/moov/models/components/refundcarddetails.rb +7 -7
  243. data/lib/moov/models/components/refundcardstatus.rb +2 -0
  244. data/lib/moov/models/components/refundpolicy.rb +2 -0
  245. data/lib/moov/models/components/refundstatus.rb +2 -0
  246. data/lib/moov/models/components/representative.rb +3 -3
  247. data/lib/moov/models/components/requestcard.rb +1 -1
  248. data/lib/moov/models/components/requirementerror.rb +2 -2
  249. data/lib/moov/models/components/requirementerrorcode.rb +2 -0
  250. data/lib/moov/models/components/requirementid.rb +2 -0
  251. data/lib/moov/models/components/residual.rb +4 -4
  252. data/lib/moov/models/components/returnpolicytype.rb +2 -0
  253. data/lib/moov/models/components/revoketokenrequest.rb +1 -1
  254. data/lib/moov/models/components/rtpcreditpaymentmethod.rb +1 -1
  255. data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +2 -0
  256. data/lib/moov/models/components/rtpfailurecode.rb +2 -0
  257. data/lib/moov/models/components/rtprejectioncode.rb +3 -1
  258. data/lib/moov/models/components/rtptransactiondetails.rb +6 -6
  259. data/lib/moov/models/components/rtptransactionstatus.rb +2 -0
  260. data/lib/moov/models/components/schedulelistresponse.rb +4 -4
  261. data/lib/moov/models/components/scheduleresponse.rb +4 -4
  262. data/lib/moov/models/components/seccode.rb +2 -0
  263. data/lib/moov/models/components/sentreceipt.rb +1 -1
  264. data/lib/moov/models/components/statement.rb +6 -6
  265. data/lib/moov/models/components/status.rb +2 -0
  266. data/lib/moov/models/components/submissionintent.rb +2 -0
  267. data/lib/moov/models/components/sweep.rb +3 -3
  268. data/lib/moov/models/components/sweepconfig.rb +3 -3
  269. data/lib/moov/models/components/sweepconfigpaymentmethod.rb +1 -1
  270. data/lib/moov/models/components/sweepconfigstatus.rb +2 -0
  271. data/lib/moov/models/components/sweepstatus.rb +2 -0
  272. data/lib/moov/models/components/sweepsubtotal.rb +1 -1
  273. data/lib/moov/models/components/terminalapplication.rb +2 -2
  274. data/lib/moov/models/components/terminalapplicationplatform.rb +2 -0
  275. data/lib/moov/models/components/terminalapplicationstatus.rb +2 -0
  276. data/lib/moov/models/components/terminalcard.rb +3 -3
  277. data/lib/moov/models/components/termsofservice.rb +1 -1
  278. data/lib/moov/models/components/ticket.rb +5 -5
  279. data/lib/moov/models/components/ticketmessage.rb +1 -1
  280. data/lib/moov/models/components/ticketstatus.rb +2 -0
  281. data/lib/moov/models/components/token_type_hint.rb +2 -0
  282. data/lib/moov/models/components/tokentype.rb +2 -0
  283. data/lib/moov/models/components/transactionsource.rb +3 -1
  284. data/lib/moov/models/components/transfer.rb +4 -4
  285. data/lib/moov/models/components/transferdestination.rb +5 -5
  286. data/lib/moov/models/components/transferfailurereason.rb +2 -0
  287. data/lib/moov/models/components/transferoptions.rb +3 -3
  288. data/lib/moov/models/components/transferparty.rb +2 -0
  289. data/lib/moov/models/components/transfersource.rb +7 -7
  290. data/lib/moov/models/components/transferstatus.rb +2 -0
  291. data/lib/moov/models/components/transferwaitfor.rb +2 -0
  292. data/lib/moov/models/components/underwriting.rb +5 -5
  293. data/lib/moov/models/components/underwritingstatus.rb +4 -2
  294. data/lib/moov/models/components/updateevidence.rb +1 -1
  295. data/lib/moov/models/components/updateissuedcard.rb +1 -1
  296. data/lib/moov/models/components/updateissuedcardstate.rb +2 -0
  297. data/lib/moov/models/components/updatepaymentlink.rb +1 -1
  298. data/lib/moov/models/components/updateticket.rb +1 -1
  299. data/lib/moov/models/components/updateticketstatus.rb +2 -0
  300. data/lib/moov/models/components/updatewebhook.rb +1 -1
  301. data/lib/moov/models/components/upsertunderwriting.rb +4 -4
  302. data/lib/moov/models/components/use.rb +2 -0
  303. data/lib/moov/models/components/verification.rb +9 -9
  304. data/lib/moov/models/components/verificationstatus.rb +4 -2
  305. data/lib/moov/models/components/verificationstatusdetail.rb +4 -2
  306. data/lib/moov/models/components/wallet.rb +4 -4
  307. data/lib/moov/models/components/walletavailablebalance.rb +1 -1
  308. data/lib/moov/models/components/walletstatus.rb +2 -0
  309. data/lib/moov/models/components/wallettransaction.rb +5 -5
  310. data/lib/moov/models/components/wallettransactionsourcetype.rb +2 -0
  311. data/lib/moov/models/components/wallettransactionstatus.rb +2 -0
  312. data/lib/moov/models/components/wallettransactiontype.rb +2 -0
  313. data/lib/moov/models/components/wallettype.rb +2 -0
  314. data/lib/moov/models/components/webhook.rb +4 -4
  315. data/lib/moov/models/components/webhookdatabankaccountupdated.rb +2 -2
  316. data/lib/moov/models/components/webhookdatacancellationcreated.rb +1 -1
  317. data/lib/moov/models/components/webhookdatacancellationupdated.rb +1 -1
  318. data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -2
  319. data/lib/moov/models/components/webhookdatacapabilityupdated.rb +3 -3
  320. data/lib/moov/models/components/webhookdatacardautoupdated.rb +1 -1
  321. data/lib/moov/models/components/webhookdatadisputecreated.rb +3 -3
  322. data/lib/moov/models/components/webhookdatadisputeupdated.rb +3 -3
  323. data/lib/moov/models/components/webhookdatainvoiceupdated.rb +1 -1
  324. data/lib/moov/models/components/webhookdatanetworkidupdated.rb +1 -1
  325. data/lib/moov/models/components/webhookdatarefundupdated.rb +1 -1
  326. data/lib/moov/models/components/webhookdatasweepupdated.rb +1 -1
  327. data/lib/moov/models/components/webhookdataterminalapplicationcreated.rb +1 -1
  328. data/lib/moov/models/components/webhookdataterminalapplicationupdated.rb +1 -1
  329. data/lib/moov/models/components/webhookdataticketupdated.rb +1 -1
  330. data/lib/moov/models/components/webhookdatatransfercreated.rb +1 -1
  331. data/lib/moov/models/components/webhookdatatransferstatus.rb +2 -0
  332. data/lib/moov/models/components/webhookdatatransferupdated.rb +1 -1
  333. data/lib/moov/models/components/webhookdatawallettransactionupdated.rb +1 -1
  334. data/lib/moov/models/components/webhookdatawalletupdated.rb +1 -1
  335. data/lib/moov/models/components/webhookevent.rb +2 -2
  336. data/lib/moov/models/components/webhookeventtype.rb +2 -0
  337. data/lib/moov/models/components/webhookstatus.rb +2 -0
  338. data/lib/moov/models/components.rb +0 -31
  339. data/lib/moov/models/errors/cardacquiringrefund_error.rb +3 -3
  340. data/lib/moov/models/errors/feeplanagreementerror.rb +1 -1
  341. data/lib/moov/models/errors/transfer_error.rb +4 -4
  342. data/lib/moov/models/errors.rb +0 -1
  343. data/lib/moov/models/operations/acceptdispute_request.rb +3 -3
  344. data/lib/moov/models/operations/assignaccountcountries_request.rb +3 -3
  345. data/lib/moov/models/operations/cancelschedule_request.rb +3 -3
  346. data/lib/moov/models/operations/completebankaccountverification_request.rb +3 -3
  347. data/lib/moov/models/operations/completemicrodeposits_request.rb +3 -3
  348. data/lib/moov/models/operations/connectaccount_request.rb +3 -3
  349. data/lib/moov/models/operations/createaccesstoken_request.rb +3 -3
  350. data/lib/moov/models/operations/createaccount_request.rb +3 -3
  351. data/lib/moov/models/operations/createapplepaysession_request.rb +3 -3
  352. data/lib/moov/models/operations/createbrand_request.rb +3 -3
  353. data/lib/moov/models/operations/createcancellation_request.rb +3 -3
  354. data/lib/moov/models/operations/createfeeplanagreements_request.rb +3 -3
  355. data/lib/moov/models/operations/createonboardinginvite_request.rb +3 -3
  356. data/lib/moov/models/operations/createpaymentlink_request.rb +3 -3
  357. data/lib/moov/models/operations/createproduct_request.rb +3 -3
  358. data/lib/moov/models/operations/createreceipts_request.rb +3 -3
  359. data/lib/moov/models/operations/createrepresentative_request.rb +3 -3
  360. data/lib/moov/models/operations/createreversal_request.rb +3 -3
  361. data/lib/moov/models/operations/createschedule_request.rb +3 -3
  362. data/lib/moov/models/operations/createsweepconfig_request.rb +3 -3
  363. data/lib/moov/models/operations/createterminalapplication_request.rb +3 -3
  364. data/lib/moov/models/operations/createterminalapplicationversion_request.rb +3 -3
  365. data/lib/moov/models/operations/createticket_request.rb +3 -3
  366. data/lib/moov/models/operations/createtransfer_request.rb +5 -5
  367. data/lib/moov/models/operations/createtransferoptions_request.rb +3 -3
  368. data/lib/moov/models/operations/createwallet_request.rb +3 -3
  369. data/lib/moov/models/operations/createwebhook_request.rb +3 -3
  370. data/lib/moov/models/operations/deletedisputeevidencefile_request.rb +3 -3
  371. data/lib/moov/models/operations/deleteimage_request.rb +3 -3
  372. data/lib/moov/models/operations/deleterepresentative_request.rb +3 -3
  373. data/lib/moov/models/operations/deleteterminalapplication_request.rb +3 -3
  374. data/lib/moov/models/operations/disablebankaccount_request.rb +3 -3
  375. data/lib/moov/models/operations/disablecapability_request.rb +4 -4
  376. data/lib/moov/models/operations/disablecard_request.rb +3 -3
  377. data/lib/moov/models/operations/disablepaymentlink_request.rb +3 -3
  378. data/lib/moov/models/operations/disableproduct_request.rb +3 -3
  379. data/lib/moov/models/operations/disablewebhook_request.rb +3 -3
  380. data/lib/moov/models/operations/disconnectaccount_request.rb +3 -3
  381. data/lib/moov/models/operations/generateendtoendkey_request.rb +3 -3
  382. data/lib/moov/models/operations/getaccount_request.rb +3 -3
  383. data/lib/moov/models/operations/getaccountcountries_request.rb +3 -3
  384. data/lib/moov/models/operations/getaccountterminalapplication_request.rb +3 -3
  385. data/lib/moov/models/operations/getadjustment_request.rb +3 -3
  386. data/lib/moov/models/operations/getapplepaymerchantdomains_request.rb +3 -3
  387. data/lib/moov/models/operations/getavatar_request.rb +3 -3
  388. data/lib/moov/models/operations/getbankaccount_request.rb +3 -3
  389. data/lib/moov/models/operations/getbankaccountverification_request.rb +3 -3
  390. data/lib/moov/models/operations/getbrand_request.rb +3 -3
  391. data/lib/moov/models/operations/getcancellation_request.rb +3 -3
  392. data/lib/moov/models/operations/getcapability_request.rb +4 -4
  393. data/lib/moov/models/operations/getcard_request.rb +3 -3
  394. data/lib/moov/models/operations/getdispute_request.rb +3 -3
  395. data/lib/moov/models/operations/getdisputeevidence_request.rb +3 -3
  396. data/lib/moov/models/operations/getdisputeevidencedata_request.rb +3 -3
  397. data/lib/moov/models/operations/getenrichmentaddress_request.rb +3 -3
  398. data/lib/moov/models/operations/getenrichmentprofile_request.rb +3 -3
  399. data/lib/moov/models/operations/getfiledetails_request.rb +3 -3
  400. data/lib/moov/models/operations/getfullissuedcard_request.rb +3 -3
  401. data/lib/moov/models/operations/getimagemetadata_request.rb +3 -3
  402. data/lib/moov/models/operations/getissuedcard_request.rb +3 -3
  403. data/lib/moov/models/operations/getissuedcardauthorization_request.rb +3 -3
  404. data/lib/moov/models/operations/getissuedcardtransaction_request.rb +3 -3
  405. data/lib/moov/models/operations/getmerchantprocessingagreement_request.rb +3 -3
  406. data/lib/moov/models/operations/getonboardinginvite_request.rb +3 -3
  407. data/lib/moov/models/operations/getpaymentlink_request.rb +3 -3
  408. data/lib/moov/models/operations/getpaymentlinkqrcode_request.rb +3 -3
  409. data/lib/moov/models/operations/getpaymentmethod_request.rb +3 -3
  410. data/lib/moov/models/operations/getproduct_request.rb +3 -3
  411. data/lib/moov/models/operations/getpublicimage_request.rb +1 -1
  412. data/lib/moov/models/operations/getrefund_request.rb +3 -3
  413. data/lib/moov/models/operations/getrepresentative_request.rb +3 -3
  414. data/lib/moov/models/operations/getresidual_request.rb +3 -3
  415. data/lib/moov/models/operations/getscheduledoccurrence_request.rb +8 -8
  416. data/lib/moov/models/operations/getschedules_request.rb +3 -3
  417. data/lib/moov/models/operations/getstatement_request.rb +3 -3
  418. data/lib/moov/models/operations/getsweep_request.rb +3 -3
  419. data/lib/moov/models/operations/getsweepconfig_request.rb +3 -3
  420. data/lib/moov/models/operations/getterminalapplication_request.rb +3 -3
  421. data/lib/moov/models/operations/getterminalconfiguration_request.rb +3 -3
  422. data/lib/moov/models/operations/gettermsofservicetoken_request.rb +3 -3
  423. data/lib/moov/models/operations/getticket_request.rb +3 -3
  424. data/lib/moov/models/operations/gettransfer_request.rb +3 -3
  425. data/lib/moov/models/operations/getunderwriting_request.rb +3 -3
  426. data/lib/moov/models/operations/getwallet_request.rb +3 -3
  427. data/lib/moov/models/operations/getwallettransaction_request.rb +3 -3
  428. data/lib/moov/models/operations/getwebhook_request.rb +3 -3
  429. data/lib/moov/models/operations/getwebhooksecret_request.rb +3 -3
  430. data/lib/moov/models/operations/hydrate.rb +2 -0
  431. data/lib/moov/models/operations/initiatebankaccountverification_request.rb +4 -4
  432. data/lib/moov/models/operations/initiatemicrodeposits_request.rb +3 -3
  433. data/lib/moov/models/operations/initiaterefund_request.rb +3 -3
  434. data/lib/moov/models/operations/linkaccountterminalapplication_request.rb +3 -3
  435. data/lib/moov/models/operations/linkapplepaytoken_request.rb +3 -3
  436. data/lib/moov/models/operations/linkbankaccount_request.rb +4 -4
  437. data/lib/moov/models/operations/linkcard_request.rb +4 -4
  438. data/lib/moov/models/operations/listaccounts_request.rb +9 -9
  439. data/lib/moov/models/operations/listaccountterminalapplications_request.rb +3 -3
  440. data/lib/moov/models/operations/listadjustments_request.rb +3 -3
  441. data/lib/moov/models/operations/listbankaccounts_request.rb +3 -3
  442. data/lib/moov/models/operations/listcapabilities_request.rb +3 -3
  443. data/lib/moov/models/operations/listcards_request.rb +3 -3
  444. data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +9 -9
  445. data/lib/moov/models/operations/listdisputeevidence_request.rb +3 -3
  446. data/lib/moov/models/operations/listdisputes_request.rb +3 -3
  447. data/lib/moov/models/operations/listeventtypes_request.rb +3 -3
  448. data/lib/moov/models/operations/listfeeplanagreements_request.rb +3 -3
  449. data/lib/moov/models/operations/listfeeplans_request.rb +3 -3
  450. data/lib/moov/models/operations/listfeerevenue_request.rb +3 -3
  451. data/lib/moov/models/operations/listfeesfetch_request.rb +3 -3
  452. data/lib/moov/models/operations/listfiles_request.rb +3 -3
  453. data/lib/moov/models/operations/listimagemetadata_request.rb +3 -3
  454. data/lib/moov/models/operations/listindustries_request.rb +3 -3
  455. data/lib/moov/models/operations/listinstitutions_request.rb +3 -3
  456. data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +3 -3
  457. data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +3 -3
  458. data/lib/moov/models/operations/listissuedcards_request.rb +3 -3
  459. data/lib/moov/models/operations/listissuedcardtransactions_request.rb +3 -3
  460. data/lib/moov/models/operations/listonboardinginvites_request.rb +3 -3
  461. data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +3 -3
  462. data/lib/moov/models/operations/listpaymentlinks_request.rb +13 -9
  463. data/lib/moov/models/operations/listpaymentlinks_request.rbi +4 -2
  464. data/lib/moov/models/operations/listpaymentmethods_request.rb +4 -4
  465. data/lib/moov/models/operations/listproducts_request.rb +3 -3
  466. data/lib/moov/models/operations/listreceipts_request.rb +3 -3
  467. data/lib/moov/models/operations/listrefunds_request.rb +3 -3
  468. data/lib/moov/models/operations/listrepresentatives_request.rb +3 -3
  469. data/lib/moov/models/operations/listresidualfees_request.rb +3 -3
  470. data/lib/moov/models/operations/listresiduals_request.rb +3 -3
  471. data/lib/moov/models/operations/listschedules_request.rb +3 -3
  472. data/lib/moov/models/operations/liststatements_request.rb +3 -3
  473. data/lib/moov/models/operations/listsweepconfigs_request.rb +3 -3
  474. data/lib/moov/models/operations/listsweeps_request.rb +3 -3
  475. data/lib/moov/models/operations/listterminalapplications_request.rb +3 -3
  476. data/lib/moov/models/operations/listticketmessages_request.rb +3 -3
  477. data/lib/moov/models/operations/listtickets_request.rb +3 -3
  478. data/lib/moov/models/operations/listtransfers_request.rb +3 -3
  479. data/lib/moov/models/operations/listwallets_request.rb +3 -3
  480. data/lib/moov/models/operations/listwallettransactions_request.rb +3 -3
  481. data/lib/moov/models/operations/listwebhooks_request.rb +3 -3
  482. data/lib/moov/models/operations/ping_request.rb +3 -3
  483. data/lib/moov/models/operations/pingwebhook_request.rb +3 -3
  484. data/lib/moov/models/operations/registerapplepaymerchantdomains_request.rb +3 -3
  485. data/lib/moov/models/operations/requestcapabilities_request.rb +3 -3
  486. data/lib/moov/models/operations/requestcard_request.rb +3 -3
  487. data/lib/moov/models/operations/retrievefees_request.rb +3 -3
  488. data/lib/moov/models/operations/revokeaccesstoken_request.rb +3 -3
  489. data/lib/moov/models/operations/revokeonboardinginvite_request.rb +3 -3
  490. data/lib/moov/models/operations/saveunderwriting_request.rb +3 -3
  491. data/lib/moov/models/operations/searchinstitutions_request.rb +3 -3
  492. data/lib/moov/models/operations/submitdisputeevidence_request.rb +3 -3
  493. data/lib/moov/models/operations/testendtoendtoken_request.rb +3 -3
  494. data/lib/moov/models/operations/updateaccount_request.rb +3 -3
  495. data/lib/moov/models/operations/updateapplepaymerchantdomains_request.rb +3 -3
  496. data/lib/moov/models/operations/updatecard_request.rb +3 -3
  497. data/lib/moov/models/operations/updatedisputeevidence_request.rb +3 -3
  498. data/lib/moov/models/operations/updateimage_request.rb +3 -3
  499. data/lib/moov/models/operations/updateimagemetadata_request.rb +3 -3
  500. data/lib/moov/models/operations/updateissuedcard_request.rb +3 -3
  501. data/lib/moov/models/operations/updatepaymentlink_request.rb +3 -3
  502. data/lib/moov/models/operations/updateproduct_request.rb +3 -3
  503. data/lib/moov/models/operations/updaterepresentative_request.rb +3 -3
  504. data/lib/moov/models/operations/updateschedule_request.rb +3 -3
  505. data/lib/moov/models/operations/updatesweepconfig_request.rb +3 -3
  506. data/lib/moov/models/operations/updateticket_request.rb +3 -3
  507. data/lib/moov/models/operations/updatetransfer_request.rb +3 -3
  508. data/lib/moov/models/operations/updatewallet_request.rb +3 -3
  509. data/lib/moov/models/operations/updatewebhook_request.rb +3 -3
  510. data/lib/moov/models/operations/uploaddisputeevidencefile_request.rb +3 -3
  511. data/lib/moov/models/operations/uploaddisputeevidencetext_request.rb +3 -3
  512. data/lib/moov/models/operations/uploadfile_request.rb +3 -3
  513. data/lib/moov/models/operations/uploadimage_request.rb +3 -3
  514. data/lib/moov/models/operations/upsertbrand_request.rb +3 -3
  515. data/lib/moov/models/operations/upsertunderwriting_request.rb +3 -3
  516. data/lib/moov/onboarding.rb +5 -5
  517. data/lib/moov/payment_links.rb +13 -13
  518. data/lib/moov/payment_methods.rb +2 -2
  519. data/lib/moov/ping.rb +1 -1
  520. data/lib/moov/products.rb +3 -3
  521. data/lib/moov/receipts.rb +3 -3
  522. data/lib/moov/representatives.rb +12 -12
  523. data/lib/moov/scheduling.rb +8 -8
  524. data/lib/moov/sdkconfiguration.rb +4 -4
  525. data/lib/moov/statements.rb +7 -7
  526. data/lib/moov/support.rb +12 -12
  527. data/lib/moov/sweeps.rb +8 -8
  528. data/lib/moov/terminal_applications.rb +7 -7
  529. data/lib/moov/transfers.rb +22 -22
  530. data/lib/moov/underwriting.rb +8 -8
  531. data/lib/moov/utils/request_bodies.rb +3 -8
  532. data/lib/moov/utils/security.rb +0 -10
  533. data/lib/moov/utils/url.rb +5 -11
  534. data/lib/moov/utils/utils.rb +3 -45
  535. data/lib/moov/wallet_transactions.rb +4 -4
  536. data/lib/moov/wallets.rb +10 -10
  537. data/lib/moov/webhooks.rb +2 -2
  538. metadata +6 -71
  539. data/lib/crystalline/enum.rbi +0 -17
  540. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod.rb +0 -40
  541. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod.rbi +0 -17
  542. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod_paymentmethodtype.rb +0 -18
  543. data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod_paymentmethodtype.rbi +0 -11
  544. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod.rb +0 -40
  545. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod.rbi +0 -17
  546. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod_paymentmethodtype.rb +0 -18
  547. data/lib/moov/models/components/achcreditstandardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  548. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod.rb +0 -40
  549. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod.rbi +0 -17
  550. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod_paymentmethodtype.rb +0 -18
  551. data/lib/moov/models/components/achdebitcollecttransferpaymentmethod_paymentmethodtype.rbi +0 -11
  552. data/lib/moov/models/components/achdebitfundtransferpaymentmethod.rb +0 -40
  553. data/lib/moov/models/components/achdebitfundtransferpaymentmethod.rbi +0 -17
  554. data/lib/moov/models/components/achdebitfundtransferpaymentmethod_paymentmethodtype.rb +0 -18
  555. data/lib/moov/models/components/achdebitfundtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  556. data/lib/moov/models/components/applepaytransferpaymentmethod.rb +0 -40
  557. data/lib/moov/models/components/applepaytransferpaymentmethod.rbi +0 -17
  558. data/lib/moov/models/components/applepaytransferpaymentmethod_paymentmethodtype.rb +0 -18
  559. data/lib/moov/models/components/applepaytransferpaymentmethod_paymentmethodtype.rbi +0 -11
  560. data/lib/moov/models/components/cardpaymenttransferpaymentmethod.rb +0 -40
  561. data/lib/moov/models/components/cardpaymenttransferpaymentmethod.rbi +0 -17
  562. data/lib/moov/models/components/cardpaymenttransferpaymentmethod_paymentmethodtype.rb +0 -18
  563. data/lib/moov/models/components/cardpaymenttransferpaymentmethod_paymentmethodtype.rbi +0 -11
  564. data/lib/moov/models/components/cardpresentpaymenttransferpaymentmethod.rb +0 -40
  565. data/lib/moov/models/components/cardpresentpaymenttransferpaymentmethod.rbi +0 -17
  566. data/lib/moov/models/components/cardpresentpaymenttransferpaymentmethod_paymentmethodtype.rb +0 -18
  567. data/lib/moov/models/components/cardpresentpaymenttransferpaymentmethod_paymentmethodtype.rbi +0 -11
  568. data/lib/moov/models/components/instantbankcredittransferpaymentmethod.rb +0 -40
  569. data/lib/moov/models/components/instantbankcredittransferpaymentmethod.rbi +0 -17
  570. data/lib/moov/models/components/instantbankcredittransferpaymentmethod_paymentmethodtype.rb +0 -18
  571. data/lib/moov/models/components/instantbankcredittransferpaymentmethod_paymentmethodtype.rbi +0 -11
  572. data/lib/moov/models/components/moovwallettransferpaymentmethod.rb +0 -40
  573. data/lib/moov/models/components/moovwallettransferpaymentmethod.rbi +0 -17
  574. data/lib/moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rb +0 -18
  575. data/lib/moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rbi +0 -11
  576. data/lib/moov/models/components/pullfromcardtransferpaymentmethod.rb +0 -40
  577. data/lib/moov/models/components/pullfromcardtransferpaymentmethod.rbi +0 -17
  578. data/lib/moov/models/components/pullfromcardtransferpaymentmethod_paymentmethodtype.rb +0 -18
  579. data/lib/moov/models/components/pullfromcardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  580. data/lib/moov/models/components/pushtocardtransferpaymentmethod.rb +0 -40
  581. data/lib/moov/models/components/pushtocardtransferpaymentmethod.rbi +0 -17
  582. data/lib/moov/models/components/pushtocardtransferpaymentmethod_paymentmethodtype.rb +0 -18
  583. data/lib/moov/models/components/pushtocardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
  584. data/lib/moov/models/components/rtpcredittransferpaymentmethod.rb +0 -40
  585. data/lib/moov/models/components/rtpcredittransferpaymentmethod.rbi +0 -17
  586. data/lib/moov/models/components/rtpcredittransferpaymentmethod_paymentmethodtype.rb +0 -18
  587. data/lib/moov/models/components/rtpcredittransferpaymentmethod_paymentmethodtype.rbi +0 -11
  588. data/lib/moov/models/components/transferentrymode.rb +0 -18
  589. data/lib/moov/models/components/transferentrymode.rbi +0 -11
  590. data/lib/moov/models/components/transferpaymentmethod.rb +0 -27
  591. data/lib/moov/models/components/transferpaymentmethod.rbi +0 -11
  592. data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +0 -70
  593. data/lib/moov/models/components/transferpaymentmethodsbankaccount.rbi +0 -31
  594. data/lib/moov/models/components/transferpaymentmethodscard.rb +0 -98
  595. data/lib/moov/models/components/transferpaymentmethodscard.rbi +0 -45
  596. data/lib/moov/models/components/transferpaymentmethodswallet.rb +0 -42
  597. data/lib/moov/models/components/transferpaymentmethodswallet.rbi +0 -17
  598. data/lib/moov/models/components/transferpaymentmethodtype.rb +0 -29
  599. data/lib/moov/models/components/transferpaymentmethodtype.rbi +0 -11
  600. data/lib/moov/models/components/transferterminalcard.rb +0 -78
  601. data/lib/moov/models/components/transferterminalcard.rbi +0 -35
  602. data/lib/moov/models/errors/duplicatecarderror.rb +0 -41
  603. data/lib/moov/models/errors/duplicatecarderror.rbi +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f095748444ed2f8382856338dc1685db856ec627056bfb781bf31c85c5ef1156
4
- data.tar.gz: 2481a33b915519837fe0e6c72ec8d7eca59d2076d150bc2e844e5b2690f34e4d
3
+ metadata.gz: 3922dff26009d88f0b7e2edb3da490053e8e1c2a7e452ff3fbd86ccbb910378c
4
+ data.tar.gz: c470415c9e71f3d2ac59c33685276a0a006f82cc837d276f9cd40f6470f52320
5
5
  SHA512:
6
- metadata.gz: b131e5838f8331d582c499b188ac4e9cb0513b811bd5d0e89fa8f86e1ed6b8d536db824b47c70afb04410e0abe45b6ad0e92d82f69b0c456f6a529a055922ebe
7
- data.tar.gz: 8339d9f80e1d7e1f78f3c7ef55b0288d3c854e339556f64748e26f52a7a60cd5b287f5e95e451cc41847934b9dfe4c192f2a99cb06be74f288c2c5449713c50f
6
+ metadata.gz: fdc24fd4cee8041772c731fdb780a470c83330b3bff69a1a3d9801e118730af157406bca4e99e4f20ba1ba5c78c4483ee7339a0d93c5f30df0358a6896023a73
7
+ data.tar.gz: 01c272e8bedfdced428277c3b6ed8fb97d86fc68dc21c4917a8375bed669b9ed9a85b7eb0f14787951590e80e1061e8a900cddd6ea1f573022578234285d50fc
@@ -37,30 +37,19 @@ module Crystalline
37
37
  def unmarshal_single(field_type, value, format_metadata = nil)
38
38
  decoder = format_metadata.fetch(:decoder, nil)
39
39
 
40
- # Delegate complex Crystalline types to unmarshal_json
41
- if field_type.is_a?(Crystalline::DiscriminatedUnion) ||
42
- Crystalline::Utils.arr?(field_type) ||
43
- Crystalline::Utils.hash?(field_type) ||
44
- Crystalline::Utils.union?(field_type)
45
- return Crystalline.unmarshal_json(value, field_type)
46
- elsif field_type.instance_of?(Class) && field_type.include?(::Crystalline::MetadataFields)
40
+ if field_type.instance_of?(Class) && field_type.include?(::Crystalline::MetadataFields)
47
41
  return field_type.from_dict(value)
48
42
  elsif field_type.to_s == 'Date'
49
43
  return Date.parse(value)
50
44
  elsif field_type.to_s == 'DateTime'
51
45
  return DateTime.parse(value)
52
46
  elsif field_type.to_s == 'Object'
53
- if value.is_a?(::String)
54
- trimmed = value.lstrip
55
- if trimmed.start_with?('{') || trimmed.start_with?('[')
56
- # rubocop:disable Lint/SuppressedException
57
- begin
58
- value = JSON.parse(value)
59
- rescue TypeError, JSON::ParserError
60
- end
61
- # rubocop:enable Lint/SuppressedException
62
- end
47
+ # rubocop:disable Lint/SuppressedException
48
+ begin
49
+ value = JSON.parse(value)
50
+ rescue TypeError, JSON::ParserError
63
51
  end
52
+ # rubocop:enable Lint/SuppressedException
64
53
  return value
65
54
  elsif field_type.to_s == 'Float'
66
55
  return value.to_f
@@ -76,27 +65,12 @@ module Crystalline
76
65
  def from_dict(d)
77
66
  to_build = {}
78
67
 
79
- # Collect lookup keys for regular fields so we can identify additional properties later
80
- known_keys = {}
81
- additional_props_fields = []
82
68
  fields.each do |field|
83
- format_metadata = field.metadata.fetch(:format_json, {})
84
- if format_metadata.fetch(:additional_properties, false)
85
- additional_props_fields << field
86
- else
87
- lookup = format_metadata.fetch(:letter_case, nil).call
88
- known_keys[lookup] = true
89
- end
90
- end
91
-
92
- # Process regular fields
93
- (fields - additional_props_fields).each do |field|
94
69
  key = field.name
95
70
  format_metadata = field.metadata.fetch(:format_json, {})
96
- field_type = field.type
97
-
98
71
  lookup = format_metadata.fetch(:letter_case, nil).call
99
72
  value = d[lookup]
73
+ field_type = field.type
100
74
  if ::Crystalline::Utils.nilable? field_type
101
75
  if value == 'null'
102
76
  to_build[key] = nil
@@ -104,15 +78,13 @@ module Crystalline
104
78
  end
105
79
  field_type = ::Crystalline::Utils.nilable_of(field_type)
106
80
  end
107
-
81
+
108
82
  # If field is not nilable, and the value is not in the dict, raise a KeyError
109
83
  raise KeyError, "key #{lookup} not found in hash" if value.nil? && !::Crystalline::Utils.nilable?(field.type)
110
84
  # If field is nilable, and the value is not in the dict, just move to the next field
111
85
  next if value.nil?
112
86
 
113
- if field_type.is_a?(Crystalline::DiscriminatedUnion)
114
- to_build[key] = field_type.parse(value)
115
- elsif Crystalline::Utils.arr? field_type
87
+ if Crystalline::Utils.arr? field_type
116
88
  inner_type = Crystalline::Utils.arr_of(field_type)
117
89
  unmarshalled_array = value.map { |f| unmarshal_single(inner_type, f, format_metadata) }
118
90
  to_build[key] = unmarshalled_array
@@ -140,21 +112,17 @@ module Crystalline
140
112
  union_types = Crystalline::Utils.get_union_types(field_type)
141
113
  union_types = union_types.sort_by { |klass| Crystalline.non_nilable_attr_count(klass) }
142
114
 
143
- if Crystalline.union_strategy == :populated_fields
144
- to_build[key] = Crystalline.unmarshal_union_populated_fields(value, union_types)
145
- else
146
- union_types.each do |union_type|
147
- begin
148
- to_build[key] = Crystalline.unmarshal_json(value, union_type)
149
- rescue TypeError
150
- next
151
- rescue NoMethodError
152
- next
153
- rescue KeyError
154
- next
155
- end
156
- break
115
+ union_types.each do |union_type|
116
+ begin
117
+ to_build[key] = Crystalline.unmarshal_json(value, union_type)
118
+ rescue TypeError
119
+ next
120
+ rescue NoMethodError
121
+ next
122
+ rescue KeyError
123
+ next
157
124
  end
125
+ break
158
126
  end
159
127
  end
160
128
  elsif field_type.instance_of?(Class) && field_type.include?(::Crystalline::MetadataFields)
@@ -163,32 +131,6 @@ module Crystalline
163
131
  to_build[key] = unmarshal_single(field_type, value, format_metadata)
164
132
  end
165
133
  end
166
-
167
- # Process additional properties fields: collect remaining keys from the dict
168
- additional_props_fields.each do |field|
169
- key = field.name
170
- format_metadata = field.metadata.fetch(:format_json, {})
171
- field_type = field.type
172
-
173
- remaining = d.reject { |k, _| known_keys.key?(k) }
174
- if remaining.empty?
175
- next if ::Crystalline::Utils.nilable?(field.type)
176
-
177
- raise KeyError, 'no additional properties found in hash'
178
- end
179
-
180
- inner_field_type = field_type
181
- inner_field_type = ::Crystalline::Utils.nilable_of(inner_field_type) if ::Crystalline::Utils.nilable?(inner_field_type)
182
- if Crystalline::Utils.hash?(inner_field_type)
183
- val_type = Crystalline::Utils.hash_of(inner_field_type)
184
- # rubocop:disable Style/HashTransformValues
185
- to_build[key] = remaining.map { |k, v| [k, unmarshal_single(val_type, v, format_metadata)] }.to_h
186
- # rubocop:enable Style/HashTransformValues
187
- else
188
- to_build[key] = remaining
189
- end
190
- end
191
-
192
134
  new(**to_build)
193
135
  end
194
136
  end
@@ -230,8 +172,6 @@ module Crystalline
230
172
  fields.sort_by(&:name).each do |field|
231
173
  format_json_meta = field.metadata[:format_json]
232
174
  required = !format_json_meta.nil? && format_json_meta.include?(:required)
233
- is_additional_props = !format_json_meta.nil? && format_json_meta.fetch(:additional_properties, false)
234
-
235
175
  if !format_json_meta.nil? && format_json_meta.include?(:letter_case)
236
176
  key = format_json_meta[:letter_case].call(field.name)
237
177
  else
@@ -242,13 +182,10 @@ module Crystalline
242
182
  next if f.nil? && !required
243
183
  result[key] = nil if f.nil? && required
244
184
 
245
- # Flatten additional properties into the parent object
246
- if is_additional_props && f.is_a?(::Hash)
247
- f.each { |k, v| result[k] = marshal_single(v) }
248
- elsif f.is_a? ::Array
185
+ if f.is_a? Array
249
186
  result[key] = f.map { |o| marshal_single(o) }
250
- elsif f.is_a? ::Hash
251
- result[key] = f.transform_values { |v| marshal_single(v) }
187
+ elsif f.is_a? Hash
188
+ result[key] = f.map { |k, v| [k, marshal_single(v)] }
252
189
  else
253
190
  result[key] = marshal_single(f)
254
191
  end
@@ -4,16 +4,11 @@
4
4
  # frozen_string_literal: true
5
5
 
6
6
  module Crystalline
7
- @union_strategy = :left_to_right
8
-
9
- class << self
10
- attr_accessor :union_strategy
11
- end
12
7
 
13
8
  def self.to_dict(complex)
14
- if complex.is_a? ::Array
9
+ if complex.is_a? Array
15
10
  complex.map { |v| Crystalline.to_dict(v) }
16
- elsif complex.is_a? ::Hash
11
+ elsif complex.is_a? Hash
17
12
  complex.transform_values { |v| Crystalline.to_dict(v) }
18
13
  elsif complex.respond_to?(:class) && complex.class.include?(::Crystalline::MetadataFields)
19
14
  complex.to_dict
@@ -34,18 +29,21 @@ module Crystalline
34
29
  if Crystalline::Utils.nilable? type
35
30
  type = Crystalline::Utils.nilable_of type
36
31
  end
37
- if type.is_a?(Crystalline::DiscriminatedUnion)
38
- type.parse(data)
39
- elsif type.instance_of?(Class) && type.include?(::Crystalline::MetadataFields)
32
+ if type.instance_of?(Class) && type.include?(::Crystalline::MetadataFields)
40
33
  type.from_dict(data)
41
34
  elsif Crystalline::Utils.union? type
42
35
  union_types = Crystalline::Utils.get_union_types(type)
43
36
  union_types = union_types.sort_by { |klass| Crystalline.non_nilable_attr_count(klass) }
44
37
 
45
- if Crystalline.union_strategy == :populated_fields
46
- Crystalline.unmarshal_union_populated_fields(data, union_types)
47
- else
48
- Crystalline.unmarshal_union_left_to_right(data, union_types)
38
+ union_types.each do |union_type|
39
+ unmarshalled_val = Crystalline.unmarshal_json(data, union_type)
40
+ return unmarshalled_val
41
+ rescue TypeError
42
+ next
43
+ rescue NoMethodError
44
+ next
45
+ rescue KeyError
46
+ next
49
47
  end
50
48
  elsif Crystalline::Utils.arr? type
51
49
  data.map { |v| Crystalline.unmarshal_json(v, Crystalline::Utils.arr_of(type)) }
@@ -57,8 +55,6 @@ module Crystalline
57
55
  Crystalline::Utils.to_boolean(data)
58
56
  elsif type.is_a?(Class) && type < T::Enum
59
57
  type.deserialize(data)
60
- elsif type.is_a?(Class) && type.respond_to?(:enums) && type.respond_to?(:deserialize)
61
- type.deserialize(data)
62
58
  else
63
59
  data
64
60
  end
@@ -68,7 +64,7 @@ module Crystalline
68
64
  if val.class.respond_to? :enums
69
65
  val.serialize
70
66
  elsif val.is_a? DateTime
71
- val.strftime('%Y-%m-%dT%H:%M:%S.%NZ').sub(/(\.\d*[1-9])0+Z\z/, '\1Z').sub(/\.0+Z\z/, 'Z')
67
+ val.strftime('%Y-%m-%dT%H:%M:%S.%NZ')
72
68
  elsif val.nil?
73
69
  nil
74
70
  elsif primitives
@@ -78,88 +74,6 @@ module Crystalline
78
74
  end
79
75
  end
80
76
 
81
- def self.unmarshal_union_left_to_right(data, union_types)
82
- union_types.each do |union_type|
83
- return Crystalline.unmarshal_json(data, union_type)
84
- rescue TypeError
85
- next
86
- rescue NoMethodError
87
- next
88
- rescue KeyError
89
- next
90
- end
91
- nil
92
- end
93
-
94
- def self.unmarshal_union_populated_fields(data, union_types)
95
- best_value = nil
96
- best_matched = -1
97
- best_inexact = 0
98
- best_unmatched = 0
99
-
100
- union_types.each do |union_type|
101
- value = Crystalline.unmarshal_json(data, union_type)
102
- matched, inexact, unmatched = count_matched_fields(value, data)
103
-
104
- if best_value.nil? ||
105
- matched > best_matched ||
106
- (matched == best_matched && inexact < best_inexact) ||
107
- (matched == best_matched && inexact == best_inexact && unmatched < best_unmatched)
108
- best_value = value
109
- best_matched = matched
110
- best_inexact = inexact
111
- best_unmatched = unmatched
112
- end
113
- rescue TypeError
114
- next
115
- rescue NoMethodError
116
- next
117
- rescue KeyError
118
- next
119
- end
120
- best_value
121
- end
122
-
123
- def self.count_matched_fields(value, raw_data)
124
- matched = 0
125
- inexact = 0
126
- unmatched = 0
127
-
128
- if value.is_a?(Crystalline::Unknown)
129
- return [0, 0, 0]
130
- elsif value.class.include?(::Crystalline::MetadataFields)
131
- value.fields.each do |field|
132
- format_metadata = field.metadata.fetch(:format_json, {})
133
- lookup = format_metadata.fetch(:letter_case, nil)&.call
134
- field_val = value.send(field.name)
135
-
136
- if raw_data.is_a?(::Hash) && lookup && raw_data.key?(lookup)
137
- if field_val.class.include?(::Crystalline::MetadataFields) && raw_data[lookup].is_a?(::Hash)
138
- nested_matched, nested_inexact, nested_unmatched = count_matched_fields(field_val, raw_data[lookup])
139
- matched += nested_matched
140
- inexact += nested_inexact
141
- unmatched += nested_unmatched
142
- else
143
- matched += 1
144
- if field_val.respond_to?(:known?) && !field_val.known?
145
- inexact += 1
146
- end
147
- end
148
- elsif !::Crystalline::Utils.nilable?(field.type)
149
- unmatched += 1
150
- end
151
- end
152
- elsif value.is_a?(::Array)
153
- matched = value.length
154
- elsif value.is_a?(::Hash)
155
- matched = value.length
156
- else
157
- matched = 1
158
- end
159
-
160
- [matched, inexact, unmatched]
161
- end
162
-
163
77
  def self.non_nilable_attr_count(klass)
164
78
  # somewhat sane sort ordering for Union deserialization.
165
79
  # All Crystalline objects return the number of non-nilable fields
@@ -40,58 +40,6 @@ module Crystalline
40
40
  class Boolean
41
41
  end
42
42
 
43
- # Wraps an unrecognized payload from an open discriminated union.
44
- # Produced when the discriminator value is missing, unknown, or schema validation fails.
45
- class Unknown
46
- attr_reader :raw
47
-
48
- def initialize(raw:)
49
- @raw = raw
50
- end
51
-
52
- def unknown?
53
- true
54
- end
55
- end
56
-
57
- # Forward-compatible discriminated union parser.
58
- # Known discriminator values are deserialized to their mapped types.
59
- # Unknown or invalid payloads are captured as Crystalline::Unknown.
60
- class DiscriminatedUnion
61
- attr_reader :discriminator, :variants
62
-
63
- def initialize(discriminator, variants)
64
- @discriminator = discriminator
65
- @variants = variants
66
- end
67
-
68
- def parse(payload)
69
- unless payload.is_a?(::Hash)
70
- return Unknown.new(raw: payload)
71
- end
72
-
73
- disc_value = payload[@discriminator]
74
- unless disc_value.is_a?(::String)
75
- return Unknown.new(raw: payload)
76
- end
77
-
78
- variant_type = @variants[disc_value]
79
- unless variant_type
80
- return Unknown.new(raw: payload)
81
- end
82
-
83
- begin
84
- Crystalline.unmarshal_json(payload, variant_type)
85
- rescue StandardError
86
- Unknown.new(raw: payload)
87
- end
88
- end
89
- end
90
-
91
- def self.unknown?(value)
92
- value.is_a?(Unknown)
93
- end
94
-
95
43
  module Enum
96
44
  def self.included(base)
97
45
  base.extend(ClassMethods)
@@ -119,19 +67,9 @@ module Crystalline
119
67
  end
120
68
  end
121
69
 
122
- def open!
123
- @open = true
124
- end
125
-
126
- def open?
127
- @open == true
128
- end
129
-
130
70
  def deserialize(val)
131
71
  if @mapping.include? val
132
72
  @mapping[val]
133
- elsif open?
134
- new(val)
135
73
  else
136
74
  raise "Invalid value for enum: #{val}"
137
75
  end
@@ -141,22 +79,5 @@ module Crystalline
141
79
  def serialize
142
80
  @val
143
81
  end
144
-
145
- def known?
146
- self.class.instance_variable_get(:@mapping)&.value?(self) || false
147
- end
148
-
149
- def ==(other)
150
- other = other.serialize if other.is_a?(self.class)
151
- @val == other
152
- end
153
-
154
- def eql?(other)
155
- self == other
156
- end
157
-
158
- def hash
159
- @val.hash
160
- end
161
82
  end
162
83
  end
@@ -42,7 +42,7 @@ module Moov
42
42
  sig { params(link_account_terminal_application: Models::Components::LinkAccountTerminalApplication, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::LinkAccountTerminalApplicationResponse) }
43
43
  def link(link_account_terminal_application:, account_id:, x_moov_version: nil, timeout_ms: nil)
44
44
  # link - Link an account with a terminal application.
45
- #
45
+ #
46
46
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
47
47
  # you'll need to specify the `/accounts/{accountID}/terminal-applications.write` scope.
48
48
  request = Models::Operations::LinkAccountTerminalApplicationRequest.new(
@@ -65,7 +65,7 @@ module Moov
65
65
  headers['content-type'] = req_content_type
66
66
  raise StandardError, 'request body is required' if data.nil? && form.nil?
67
67
 
68
- if form && !form.empty?
68
+ if form
69
69
  body = Utils.encode_form(form)
70
70
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
71
71
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -206,7 +206,7 @@ module Moov
206
206
  sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListAccountTerminalApplicationsResponse) }
207
207
  def list(account_id:, x_moov_version: nil, timeout_ms: nil)
208
208
  # list - Retrieve all terminal applications linked to a specific 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}/terminal-applications.read` scope.
212
212
  request = Models::Operations::ListAccountTerminalApplicationsRequest.new(
@@ -327,7 +327,7 @@ module Moov
327
327
  sig { params(account_id: ::String, terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAccountTerminalApplicationResponse) }
328
328
  def get(account_id:, terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
329
329
  # get - Verifies if a specific Terminal Application is linked to an Account. This endpoint acts as a validation check for the link's existence.
330
- #
330
+ #
331
331
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
332
332
  # you'll need to specify the `/accounts/{accountID}/terminal-applications.read` scope.
333
333
  request = Models::Operations::GetAccountTerminalApplicationRequest.new(
@@ -449,7 +449,7 @@ module Moov
449
449
  sig { params(account_id: ::String, terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTerminalConfigurationResponse) }
450
450
  def get_configuration(account_id:, terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
451
451
  # get_configuration - Fetch the configuration for a given Terminal Application linked to a specific Account.
452
- #
452
+ #
453
453
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
454
454
  # you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
455
455
  request = Models::Operations::GetTerminalConfigurationRequest.new(
data/lib/moov/accounts.rb CHANGED
@@ -43,17 +43,17 @@ module Moov
43
43
  def create(create_account:, x_moov_version: nil, timeout_ms: nil)
44
44
  # create - You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
45
45
  # information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
46
- #
46
+ #
47
47
  # If you're requesting the `wallet`, `send-funds`, `collect-funds`, or `card-issuing` capabilities, you'll need to:
48
48
  # + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
49
49
  # This can be done upon account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
50
50
  # If you're creating a business account with the business type `llc`, `partnership`, or `privateCorporation`, you'll need to:
51
51
  # + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
52
52
  # + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
53
- #
53
+ #
54
54
  # Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
55
55
  # Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
56
- #
56
+ #
57
57
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
58
58
  # to specify the `/accounts.write` scope.
59
59
  request = Models::Operations::CreateAccountRequest.new(
@@ -69,7 +69,7 @@ module Moov
69
69
  headers['content-type'] = req_content_type
70
70
  raise StandardError, 'request body is required' if data.nil? && form.nil?
71
71
 
72
- if form && !form.empty?
72
+ if form
73
73
  body = Utils.encode_form(form)
74
74
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
75
75
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -210,11 +210,11 @@ module Moov
210
210
  sig { params(request: Models::Operations::ListAccountsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListAccountsResponse) }
211
211
  def list(request:, timeout_ms: nil)
212
212
  # list - List or search accounts to which the caller is connected.
213
- #
213
+ #
214
214
  # All supported query parameters are optional. If none are provided the response will include all connected accounts.
215
215
  # Pagination is supported via the `skip` and `count` query parameters. Searching by name and email will overlap and
216
216
  # return results based on relevance. Accounts with AccountType `guest` will not be included in the response.
217
- #
217
+ #
218
218
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
219
219
  # to specify the `/accounts.read` scope.
220
220
  url, params = @sdk_configuration.get_server_details
@@ -327,7 +327,7 @@ module Moov
327
327
  sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAccountResponse) }
328
328
  def get(account_id:, x_moov_version: nil, timeout_ms: nil)
329
329
  # get - Retrieves details for the account with the specified ID.
330
- #
330
+ #
331
331
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
332
332
  # to specify the `/accounts/{accountID}/profile.read` scope.
333
333
  request = Models::Operations::GetAccountRequest.new(
@@ -451,12 +451,12 @@ module Moov
451
451
  # + For unverified accounts, all profile data can be edited.
452
452
  # + During the verification process, missing or incomplete profile data can be edited.
453
453
  # + Verified accounts can only add missing profile data.
454
- #
454
+ #
455
455
  # When **can't** profile data be updated:
456
456
  # + Verified accounts cannot change any existing profile data.
457
- #
457
+ #
458
458
  # If you need to update information in a locked state, please contact Moov support.
459
- #
459
+ #
460
460
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
461
461
  # to specify the `/accounts/{accountID}/profile.write` scope.
462
462
  request = Models::Operations::UpdateAccountRequest.new(
@@ -479,7 +479,7 @@ module Moov
479
479
  headers['content-type'] = req_content_type
480
480
  raise StandardError, 'request body is required' if data.nil? && form.nil?
481
481
 
482
- if form && !form.empty?
482
+ if form
483
483
  body = Utils.encode_form(form)
484
484
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
485
485
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -622,7 +622,7 @@ module Moov
622
622
  # disconnect - This will sever the connection between you and the account specified and it will no longer be listed as
623
623
  # active in the list of accounts. This also means you'll only have read-only access to the account going
624
624
  # forward for reporting purposes.
625
- #
625
+ #
626
626
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
627
627
  # you'll need to specify the `/accounts/{accountID}/profile.disconnect` scope.
628
628
  request = Models::Operations::DisconnectAccountRequest.new(
@@ -749,11 +749,11 @@ module Moov
749
749
  sig { params(request: Models::Operations::ListConnectedAccountsForAccountRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListConnectedAccountsForAccountResponse) }
750
750
  def list_connected(request:, timeout_ms: nil)
751
751
  # list_connected - List or search accounts to which the caller is connected.
752
- #
752
+ #
753
753
  # All supported query parameters are optional. If none are provided the response will include all connected accounts.
754
754
  # Pagination is supported via the `skip` and `count` query parameters. Searching by name and email will overlap and
755
755
  # return results based on relevance. Accounts with AccountType `guest` will not be included in the response.
756
- #
756
+ #
757
757
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
758
758
  # to specify the `/accounts.read` scope.
759
759
  url, params = @sdk_configuration.get_server_details
@@ -893,7 +893,7 @@ module Moov
893
893
  headers['content-type'] = req_content_type
894
894
  raise StandardError, 'request body is required' if data.nil? && form.nil?
895
895
 
896
- if form && !form.empty?
896
+ if form
897
897
  body = Utils.encode_form(form)
898
898
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
899
899
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -1025,7 +1025,7 @@ module Moov
1025
1025
  sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAccountCountriesResponse) }
1026
1026
  def get_countries(account_id:, x_moov_version: nil, timeout_ms: nil)
1027
1027
  # get_countries - Retrieve the specified countries of operation for an account.
1028
- #
1028
+ #
1029
1029
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1030
1030
  # you'll need to specify the `/accounts/{accountID}/profile.read` scope.
1031
1031
  request = Models::Operations::GetAccountCountriesRequest.new(
@@ -1146,9 +1146,9 @@ module Moov
1146
1146
  sig { params(account_countries: Models::Components::AccountCountries, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AssignAccountCountriesResponse) }
1147
1147
  def assign_countries(account_countries:, account_id:, x_moov_version: nil, timeout_ms: nil)
1148
1148
  # assign_countries - Assign the countries of operation for an account.
1149
- #
1149
+ #
1150
1150
  # This endpoint will always overwrite the previously assigned values.
1151
- #
1151
+ #
1152
1152
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1153
1153
  # you'll need to specify the `/accounts/{accountID}/profile.write` scope.
1154
1154
  request = Models::Operations::AssignAccountCountriesRequest.new(
@@ -1171,7 +1171,7 @@ module Moov
1171
1171
  headers['content-type'] = req_content_type
1172
1172
  raise StandardError, 'request body is required' if data.nil? && form.nil?
1173
1173
 
1174
- if form && !form.empty?
1174
+ if form
1175
1175
  body = Utils.encode_form(form)
1176
1176
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1177
1177
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -1312,7 +1312,7 @@ module Moov
1312
1312
  sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetMerchantProcessingAgreementResponse) }
1313
1313
  def get_merchant_processing_agreement(account_id:, x_moov_version: nil, timeout_ms: nil)
1314
1314
  # get_merchant_processing_agreement - Retrieve a merchant account's processing agreement.
1315
- #
1315
+ #
1316
1316
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1317
1317
  # you'll need to specify the `/accounts/{accountID}/profile.read` scope.
1318
1318
  request = Models::Operations::GetMerchantProcessingAgreementRequest.new(
@@ -1401,7 +1401,7 @@ module Moov
1401
1401
  ),
1402
1402
  response: http_response
1403
1403
  )
1404
- obj = http_response.env.body.force_encoding('UTF-8')
1404
+ obj = http_response.env.body
1405
1405
 
1406
1406
  return Models::Operations::GetMerchantProcessingAgreementResponse.new(
1407
1407
  status_code: http_response.status,
@@ -1431,7 +1431,7 @@ module Moov
1431
1431
  sig { params(x_moov_version: T.nilable(::String), origin: T.nilable(::String), referer: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTermsOfServiceTokenResponse) }
1432
1432
  def get_terms_of_service_token(x_moov_version: nil, origin: nil, referer: nil, timeout_ms: nil)
1433
1433
  # get_terms_of_service_token - Generates a non-expiring token that can then be used to accept Moov's terms of service.
1434
- #
1434
+ #
1435
1435
  # This token can only be generated via API. Any Moov account requesting the collect funds, send funds, wallet,
1436
1436
  # or card issuing capabilities must accept Moov's terms of service, then have the generated terms of service
1437
1437
  # token patched to the account. Read more in our [documentation](https://docs.moov.io/guides/accounts/requirements/platform-agreement/).
@@ -42,7 +42,7 @@ module Moov
42
42
  sig { params(account_id: ::String, x_moov_version: T.nilable(::String), wallet_id: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListAdjustmentsResponse) }
43
43
  def list(account_id:, x_moov_version: nil, wallet_id: nil, timeout_ms: nil)
44
44
  # list - List adjustments associated with a Moov account.
45
- #
45
+ #
46
46
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
47
47
  # you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
48
48
  request = Models::Operations::ListAdjustmentsRequest.new(
@@ -166,7 +166,7 @@ module Moov
166
166
  sig { params(account_id: ::String, adjustment_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAdjustmentResponse) }
167
167
  def get(account_id:, adjustment_id:, x_moov_version: nil, timeout_ms: nil)
168
168
  # get - Retrieve a specific adjustment associated with a Moov account.
169
- #
169
+ #
170
170
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
171
171
  # you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
172
172
  request = Models::Operations::GetAdjustmentRequest.new(