moov_ruby 26.4.21 → 26.7.0.pre.dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/module.rb +1 -1
  3. data/lib/moov/account_terminal_applications.rb +16 -16
  4. data/lib/moov/accounts.rb +54 -52
  5. data/lib/moov/adjustments.rb +8 -8
  6. data/lib/moov/apple_pay.rb +20 -20
  7. data/lib/moov/authentication.rb +8 -8
  8. data/lib/moov/avatars.rb +5 -5
  9. data/lib/moov/bank_accounts.rb +37 -37
  10. data/lib/moov/branding.rb +12 -12
  11. data/lib/moov/capabilities.rb +20 -20
  12. data/lib/moov/card_issuing.rb +34 -28
  13. data/lib/moov/cards.rb +178 -20
  14. data/lib/moov/disputes.rb +44 -44
  15. data/lib/moov/end_to_end_encryption.rb +8 -8
  16. data/lib/moov/enriched_address.rb +5 -5
  17. data/lib/moov/enriched_profile.rb +5 -5
  18. data/lib/moov/fee_plans.rb +40 -40
  19. data/lib/moov/files.rb +12 -12
  20. data/lib/moov/google_pay.rb +4 -4
  21. data/lib/moov/images.rb +29 -29
  22. data/lib/moov/industries.rb +4 -4
  23. data/lib/moov/institutions.rb +10 -10
  24. data/lib/moov/invoices.rb +28 -208
  25. data/lib/moov/issuing_transactions.rb +20 -20
  26. data/lib/moov/models/components/account.rb +2 -2
  27. data/lib/moov/models/components/accountnameverification.rb +4 -4
  28. data/lib/moov/models/components/accounttype.rb +1 -3
  29. data/lib/moov/models/components/accountverificationstatus.rb +1 -3
  30. data/lib/moov/models/components/achreturncode.rb +1 -3
  31. data/lib/moov/models/components/achtransactiondetails.rb +3 -3
  32. data/lib/moov/models/components/achtransactionstatus.rb +1 -3
  33. data/lib/moov/models/components/addcapabilities.rb +1 -5
  34. data/lib/moov/models/components/adjustmentfees.rb +15 -11
  35. data/lib/moov/models/components/adjustmentfees.rbi +4 -4
  36. data/lib/moov/models/components/amountdecimalrange.rb +36 -0
  37. data/lib/moov/models/components/amountdecimalrange.rbi +15 -0
  38. data/lib/moov/models/components/amountdecimalrangeupdate.rb +36 -0
  39. data/lib/moov/models/components/amountdecimalrangeupdate.rbi +15 -0
  40. data/lib/moov/models/components/applepayresponse.rb +2 -2
  41. data/lib/moov/models/components/applicationscope.rb +2 -4
  42. data/lib/moov/models/components/authmethod.rb +1 -3
  43. data/lib/moov/models/components/authorizeduser.rb +36 -0
  44. data/lib/moov/models/components/authorizeduser.rbi +15 -0
  45. data/lib/moov/models/components/authtokenrequest.rb +2 -6
  46. data/lib/moov/models/components/authtokenrequest.rbi +0 -2
  47. data/lib/moov/models/components/bankaccount.rb +4 -4
  48. data/lib/moov/models/components/bankaccountexception.rb +2 -2
  49. data/lib/moov/models/components/bankaccountholdertype.rb +1 -3
  50. data/lib/moov/models/components/bankaccountintegration.rb +2 -2
  51. data/lib/moov/models/components/bankaccountstatus.rb +1 -3
  52. data/lib/moov/models/components/bankaccountstatusreason.rb +1 -3
  53. data/lib/moov/models/components/bankaccounttype.rb +1 -3
  54. data/lib/moov/models/components/bankaccountverification.rb +2 -2
  55. data/lib/moov/models/components/bankaccountverificationcreated.rb +2 -2
  56. data/lib/moov/models/components/bankaccountverificationmethod.rb +1 -3
  57. data/lib/moov/models/components/bankaccountverificationstatus.rb +1 -3
  58. data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
  59. data/lib/moov/models/components/billablefee.rb +2 -2
  60. data/lib/moov/models/components/billingsummary.rb +4 -8
  61. data/lib/moov/models/components/billingsummary.rbi +0 -2
  62. data/lib/moov/models/components/businesspresence.rb +1 -3
  63. data/lib/moov/models/components/businessprofile.rb +2 -2
  64. data/lib/moov/models/components/businesstype.rb +1 -3
  65. data/lib/moov/models/components/calltoaction.rb +1 -3
  66. data/lib/moov/models/components/cancellation.rb +2 -2
  67. data/lib/moov/models/components/cancellationstatus.rb +1 -3
  68. data/lib/moov/models/components/capability.rb +3 -11
  69. data/lib/moov/models/components/capabilityid.rb +2 -13
  70. data/lib/moov/models/components/capabilitystatus.rb +1 -3
  71. data/lib/moov/models/components/card.rb +4 -4
  72. data/lib/moov/models/components/cardaccountupdater.rb +1 -1
  73. data/lib/moov/models/components/cardacquiringmodel.rb +1 -3
  74. data/lib/moov/models/components/cardacquiringrefund.rb +1 -1
  75. data/lib/moov/models/components/cardbrand.rb +1 -3
  76. data/lib/moov/models/components/cardbrandfees.rb +2 -6
  77. data/lib/moov/models/components/cardbrandfees.rbi +0 -2
  78. data/lib/moov/models/components/cardissuingnetwork.rb +1 -3
  79. data/lib/moov/models/components/cardmetadata.rb +79 -0
  80. data/lib/moov/models/components/cardmetadata.rbi +35 -0
  81. data/lib/moov/models/components/cardmetadatarequest.rb +38 -0
  82. data/lib/moov/models/components/cardmetadatarequest.rbi +15 -0
  83. data/lib/moov/models/components/cardtransactiondetails.rb +5 -13
  84. data/lib/moov/models/components/cardtransactiondetails.rbi +0 -4
  85. data/lib/moov/models/components/cardtransactionfailurecode.rb +1 -3
  86. data/lib/moov/models/components/cardtransactionstatus.rb +1 -5
  87. data/lib/moov/models/components/cardtype.rb +1 -3
  88. data/lib/moov/models/components/cardupdatereason.rb +1 -3
  89. data/lib/moov/models/components/cardverification.rb +3 -3
  90. data/lib/moov/models/components/cardverificationresult.rb +1 -3
  91. data/lib/moov/models/components/collectfundscardpayments.rb +1 -1
  92. data/lib/moov/models/components/collectionpaymentmethodtype.rb +1 -3
  93. data/lib/moov/models/components/createaccount.rb +3 -7
  94. data/lib/moov/models/components/createaccounttype.rb +1 -3
  95. data/lib/moov/models/components/createauthorizeduser.rb +40 -0
  96. data/lib/moov/models/components/createauthorizeduser.rbi +17 -0
  97. data/lib/moov/models/components/createauthorizedusererror.rb +40 -0
  98. data/lib/moov/models/components/createauthorizedusererror.rbi +17 -0
  99. data/lib/moov/models/components/createauthorizeduserupdate.rb +40 -0
  100. data/lib/moov/models/components/createauthorizeduserupdate.rbi +17 -0
  101. data/lib/moov/models/components/createbusinessprofile.rb +2 -2
  102. data/lib/moov/models/components/createdtransfer.rb +6 -18
  103. data/lib/moov/models/components/createdtransfer.rbi +0 -4
  104. data/lib/moov/models/components/createevidencetext.rb +1 -1
  105. data/lib/moov/models/components/createfeeplanagreement.rb +3 -13
  106. data/lib/moov/models/components/createfeeplanagreement.rbi +0 -2
  107. data/lib/moov/models/components/createinvoice.rb +2 -14
  108. data/lib/moov/models/components/createinvoice.rbi +0 -6
  109. data/lib/moov/models/components/createpaymentlink.rb +16 -16
  110. data/lib/moov/models/components/createpaymentlink.rbi +4 -4
  111. data/lib/moov/models/components/createpaymentlinkamountdetails.rb +32 -0
  112. data/lib/moov/models/components/createpaymentlinkamountdetails.rbi +13 -0
  113. data/lib/moov/models/components/{webhookdataeventtest.rb → createpaymentlinkamountdetailsvalidationerror.rb} +7 -7
  114. data/lib/moov/models/components/{invoicenotificationlimitedchannel.rbi → createpaymentlinkamountdetailsvalidationerror.rbi} +4 -6
  115. data/lib/moov/models/components/createrefund.rb +2 -2
  116. data/lib/moov/models/components/createreversal.rb +1 -4
  117. data/lib/moov/models/components/createsweepconfig.rb +3 -7
  118. data/lib/moov/models/components/createsweepconfig.rbi +0 -2
  119. data/lib/moov/models/components/createterminalapplication.rb +1 -1
  120. data/lib/moov/models/components/createtippresets.rb +1 -1
  121. data/lib/moov/models/components/createtransfer.rb +2 -6
  122. data/lib/moov/models/components/createtransfer.rbi +0 -2
  123. data/lib/moov/models/components/createtransferamountdetails.rb +6 -2
  124. data/lib/moov/models/components/createtransferamountdetails.rbi +2 -0
  125. data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rb +6 -2
  126. data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rbi +2 -0
  127. data/lib/moov/models/components/createtransferdestinationcard.rb +2 -6
  128. data/lib/moov/models/components/createtransferdestinationcard.rbi +0 -2
  129. data/lib/moov/models/components/createtransfersourceach.rb +2 -2
  130. data/lib/moov/models/components/createtransfersourcecard.rb +1 -1
  131. data/lib/moov/models/components/createwebhook.rb +1 -1
  132. data/lib/moov/models/components/debitholdperiod.rb +1 -3
  133. data/lib/moov/models/components/disbursementpaymentmethodtype.rb +1 -3
  134. data/lib/moov/models/components/dispute.rb +2 -2
  135. data/lib/moov/models/components/disputeevidenceresponse.rb +1 -1
  136. data/lib/moov/models/components/disputephase.rb +1 -3
  137. data/lib/moov/models/components/disputestatus.rb +1 -3
  138. data/lib/moov/models/components/document.rb +1 -1
  139. data/lib/moov/models/components/documenttype.rb +1 -3
  140. data/lib/moov/models/components/domesticpullfromcard.rb +1 -3
  141. data/lib/moov/models/components/domesticpushtocard.rb +1 -3
  142. data/lib/moov/models/components/estimatedactivity.rb +1 -1
  143. data/lib/moov/models/components/evidencetextresponse.rb +1 -1
  144. data/lib/moov/models/components/evidencetype.rb +1 -3
  145. data/lib/moov/models/components/evidenceuploadresponse.rb +1 -1
  146. data/lib/moov/models/components/facilitatorfee.rb +2 -2
  147. data/lib/moov/models/components/feecategory.rb +1 -3
  148. data/lib/moov/models/components/feemodel.rb +1 -3
  149. data/lib/moov/models/components/feeplan.rb +1 -1
  150. data/lib/moov/models/components/feeplanagreement.rb +4 -12
  151. data/lib/moov/models/components/feeplanagreement.rbi +0 -4
  152. data/lib/moov/models/components/feeplanagreementstatus.rb +1 -3
  153. data/lib/moov/models/components/filedetails.rb +3 -3
  154. data/lib/moov/models/components/filepurpose.rb +2 -4
  155. data/lib/moov/models/components/filestatus.rb +1 -3
  156. data/lib/moov/models/components/fulfillment.rb +2 -2
  157. data/lib/moov/models/components/fulfillmentdetails.rb +1 -1
  158. data/lib/moov/models/components/fulfillmentmethod.rb +1 -3
  159. data/lib/moov/models/components/fulfillmenttimeframe.rb +1 -3
  160. data/lib/moov/models/components/fullissuedcard.rb +18 -31
  161. data/lib/moov/models/components/fullissuedcard.rbi +4 -10
  162. data/lib/moov/models/components/geographicreach.rb +1 -3
  163. data/lib/moov/models/components/googlepayresponse.rb +3 -3
  164. data/lib/moov/models/components/instantbankfailurecode.rb +1 -3
  165. data/lib/moov/models/components/instantbanknetwork.rb +1 -3
  166. data/lib/moov/models/components/instantbanktransactiondetails.rb +3 -3
  167. data/lib/moov/models/components/instantbanktransactionstatus.rb +1 -3
  168. data/lib/moov/models/components/invoice.rb +4 -12
  169. data/lib/moov/models/components/invoice.rbi +0 -4
  170. data/lib/moov/models/components/invoicepayment.rb +1 -1
  171. data/lib/moov/models/components/invoicepaymenttype.rb +1 -3
  172. data/lib/moov/models/components/invoicestatus.rb +1 -3
  173. data/lib/moov/models/components/issuedcard.rb +17 -30
  174. data/lib/moov/models/components/issuedcard.rbi +4 -10
  175. data/lib/moov/models/components/issuedcardauthorization.rb +4 -17
  176. data/lib/moov/models/components/issuedcardauthorization.rbi +0 -6
  177. data/lib/moov/models/components/issuedcardauthorizationevent.rb +4 -9
  178. data/lib/moov/models/components/issuedcardauthorizationevent.rbi +0 -2
  179. data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +1 -3
  180. data/lib/moov/models/components/issuedcardeventtype.rb +1 -3
  181. data/lib/moov/models/components/issuedcardstate.rb +8 -10
  182. data/lib/moov/models/components/issuedcardtransaction.rb +2 -10
  183. data/lib/moov/models/components/issuedcardtransaction.rbi +0 -4
  184. data/lib/moov/models/components/issuingauthorizationstatus.rb +1 -3
  185. data/lib/moov/models/components/issuingcontrols.rb +1 -1
  186. data/lib/moov/models/components/issuingintervallimit.rb +1 -1
  187. data/lib/moov/models/components/issuingvelocitylimit.rb +1 -1
  188. data/lib/moov/models/components/jsonwebkey.rb +1 -1
  189. data/lib/moov/models/components/linkedapplepaypaymentmethod.rb +1 -1
  190. data/lib/moov/models/components/linkedgooglepaypaymentmethod.rb +1 -1
  191. data/lib/moov/models/components/manualtermsofservice.rb +1 -1
  192. data/lib/moov/models/components/manualtermsofserviceupdate.rb +1 -1
  193. data/lib/moov/models/components/mode.rb +1 -3
  194. data/lib/moov/models/components/monthlyvolumerange.rb +1 -3
  195. data/lib/moov/models/components/moovfee.rb +1 -1
  196. data/lib/moov/models/components/occurrencesresponse.rb +2 -2
  197. data/lib/moov/models/components/occurrencestatus.rb +1 -3
  198. data/lib/moov/models/components/onboardinginvite.rb +2 -2
  199. data/lib/moov/models/components/onboardinginviterequest.rb +1 -1
  200. data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
  201. data/lib/moov/models/components/partnerpricingagreement.rb +7 -15
  202. data/lib/moov/models/components/partnerpricingagreement.rbi +0 -4
  203. data/lib/moov/models/components/patchbusiness.rb +2 -2
  204. data/lib/moov/models/components/patchsweepconfig.rb +2 -6
  205. data/lib/moov/models/components/patchsweepconfig.rbi +0 -2
  206. data/lib/moov/models/components/patchtransfer.rb +1 -1
  207. data/lib/moov/models/components/patchwallet.rb +1 -1
  208. data/lib/moov/models/components/paymentlink.rb +19 -19
  209. data/lib/moov/models/components/paymentlink.rbi +4 -4
  210. data/lib/moov/models/components/paymentlinkamountdetails.rb +32 -0
  211. data/lib/moov/models/components/paymentlinkamountdetails.rbi +13 -0
  212. data/lib/moov/models/components/paymentlinkdisplayoptions.rb +1 -1
  213. data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +1 -1
  214. data/lib/moov/models/components/paymentlinkpaymentdetails.rb +14 -2
  215. data/lib/moov/models/components/paymentlinkpaymentdetails.rbi +6 -0
  216. data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rb +19 -0
  217. data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rbi +11 -0
  218. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb +14 -2
  219. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rbi +6 -0
  220. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rb +19 -0
  221. data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rbi +11 -0
  222. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +3 -7
  223. data/lib/moov/models/components/paymentlinkpayoutdetails.rbi +0 -2
  224. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +3 -7
  225. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rbi +0 -2
  226. data/lib/moov/models/components/paymentlinkstatus.rb +1 -3
  227. data/lib/moov/models/components/paymentlinktype.rb +1 -3
  228. data/lib/moov/models/components/paymentmethodsbankaccount.rb +3 -3
  229. data/lib/moov/models/components/paymentmethodscard.rb +4 -4
  230. data/lib/moov/models/components/paymentmethodswallet.rb +1 -2
  231. data/lib/moov/models/components/paymentmethodtype.rb +1 -3
  232. data/lib/moov/models/components/payoutdetailserror.rb +2 -6
  233. data/lib/moov/models/components/payoutdetailserror.rbi +0 -2
  234. data/lib/moov/models/components/pendinglitigation.rb +1 -3
  235. data/lib/moov/models/components/primaryregulator.rb +1 -3
  236. data/lib/moov/models/components/puttippresets.rb +1 -1
  237. data/lib/moov/models/components/refundcarddetails.rb +2 -2
  238. data/lib/moov/models/components/refundcardstatus.rb +1 -4
  239. data/lib/moov/models/components/refundpolicy.rb +1 -3
  240. data/lib/moov/models/components/refundstatus.rb +1 -3
  241. data/lib/moov/models/components/requestcard.rb +18 -18
  242. data/lib/moov/models/components/requestcard.rbi +8 -8
  243. data/lib/moov/models/components/requirementerror.rb +2 -2
  244. data/lib/moov/models/components/requirementerrorcode.rb +1 -3
  245. data/lib/moov/models/components/requirementid.rb +1 -10
  246. data/lib/moov/models/components/resolutionlink.rb +1 -1
  247. data/lib/moov/models/components/resolutionlinkstatus.rb +1 -3
  248. data/lib/moov/models/components/returnpolicytype.rb +1 -3
  249. data/lib/moov/models/components/reversedwithcancellation.rb +1 -1
  250. data/lib/moov/models/components/rtprejectioncode.rb +1 -3
  251. data/lib/moov/models/components/schedulelistresponse.rb +1 -1
  252. data/lib/moov/models/components/scheduleresponse.rb +1 -1
  253. data/lib/moov/models/components/seccode.rb +1 -3
  254. data/lib/moov/models/components/statement.rb +2 -6
  255. data/lib/moov/models/components/statement.rbi +0 -2
  256. data/lib/moov/models/components/sweep.rb +1 -1
  257. data/lib/moov/models/components/sweepconfig.rb +5 -9
  258. data/lib/moov/models/components/sweepconfig.rbi +0 -2
  259. data/lib/moov/models/components/sweepconfigpaymentmethod.rb +1 -1
  260. data/lib/moov/models/components/sweepconfigstatus.rb +1 -3
  261. data/lib/moov/models/components/sweepstatus.rb +1 -3
  262. data/lib/moov/models/components/sweepsubtotal.rb +1 -1
  263. data/lib/moov/models/components/terminalapplication.rb +2 -2
  264. data/lib/moov/models/components/terminalapplicationplatform.rb +1 -3
  265. data/lib/moov/models/components/terminalapplicationstatus.rb +1 -3
  266. data/lib/moov/models/components/terminalcard.rb +2 -2
  267. data/lib/moov/models/components/termsofservice.rb +1 -1
  268. data/lib/moov/models/components/ticket.rb +1 -1
  269. data/lib/moov/models/components/ticketstatus.rb +1 -3
  270. data/lib/moov/models/components/tipcalculationbasis.rb +1 -3
  271. data/lib/moov/models/components/tippresets.rb +1 -1
  272. data/lib/moov/models/components/transactionsource.rb +1 -3
  273. data/lib/moov/models/components/transfer.rb +6 -18
  274. data/lib/moov/models/components/transfer.rbi +0 -4
  275. data/lib/moov/models/components/transferamountdetails.rb +6 -2
  276. data/lib/moov/models/components/transferamountdetails.rbi +2 -0
  277. data/lib/moov/models/components/transferconfig.rb +2 -6
  278. data/lib/moov/models/components/transferconfig.rbi +0 -2
  279. data/lib/moov/models/components/transferdestination.rb +3 -9
  280. data/lib/moov/models/components/transferdestination.rbi +0 -2
  281. data/lib/moov/models/components/transferfailurereason.rb +1 -3
  282. data/lib/moov/models/components/transferparty.rb +1 -3
  283. data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +3 -3
  284. data/lib/moov/models/components/transferpaymentmethodscard.rb +4 -4
  285. data/lib/moov/models/components/transferpaymentmethodswallet.rb +1 -2
  286. data/lib/moov/models/components/transferpaymentmethodtype.rb +1 -3
  287. data/lib/moov/models/components/transfersource.rb +1 -1
  288. data/lib/moov/models/components/transferstatus.rb +1 -3
  289. data/lib/moov/models/components/transferterminalcard.rb +2 -2
  290. data/lib/moov/models/components/underwriting.rb +4 -4
  291. data/lib/moov/models/components/underwritingstatus.rb +1 -3
  292. data/lib/moov/models/components/updateevidence.rb +1 -1
  293. data/lib/moov/models/components/updateinvoice.rb +9 -13
  294. data/lib/moov/models/components/updateinvoice.rbi +0 -2
  295. data/lib/moov/models/components/updateissuedcard.rb +10 -16
  296. data/lib/moov/models/components/updateissuedcard.rbi +4 -6
  297. data/lib/moov/models/components/updateissuedcardstate.rb +1 -5
  298. data/lib/moov/models/components/updatepaymentlink.rb +7 -7
  299. data/lib/moov/models/components/updatepaymentlink.rbi +2 -2
  300. data/lib/moov/models/components/updatepaymentlinkamountdetails.rb +32 -0
  301. data/lib/moov/models/components/updatepaymentlinkamountdetails.rbi +13 -0
  302. data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rb +32 -0
  303. data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rbi +13 -0
  304. data/lib/moov/models/components/updatewebhook.rb +1 -1
  305. data/lib/moov/models/components/upsertunderwriting.rb +4 -4
  306. data/lib/moov/models/components/use.rb +1 -3
  307. data/lib/moov/models/components/verification.rb +3 -3
  308. data/lib/moov/models/components/verificationstatus.rb +1 -3
  309. data/lib/moov/models/components/verificationstatusdetail.rb +1 -3
  310. data/lib/moov/models/components/wallet.rb +2 -3
  311. data/lib/moov/models/components/walletstatus.rb +1 -3
  312. data/lib/moov/models/components/wallettransaction.rb +3 -3
  313. data/lib/moov/models/components/wallettransactionsourcetype.rb +1 -3
  314. data/lib/moov/models/components/wallettransactionstatus.rb +1 -3
  315. data/lib/moov/models/components/wallettransactiontype.rb +1 -3
  316. data/lib/moov/models/components/wallettype.rb +1 -5
  317. data/lib/moov/models/components/webhook.rb +1 -1
  318. data/lib/moov/models/components/webhookdatabankaccountcreated.rb +1 -1
  319. data/lib/moov/models/components/webhookdatabankaccountdeleted.rb +2 -6
  320. data/lib/moov/models/components/webhookdatabankaccountdeleted.rbi +0 -2
  321. data/lib/moov/models/components/webhookdatabankaccountupdated.rb +2 -2
  322. data/lib/moov/models/components/webhookdatacancellationcreated.rb +1 -1
  323. data/lib/moov/models/components/webhookdatacancellationupdated.rb +1 -1
  324. data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -10
  325. data/lib/moov/models/components/webhookdatacapabilityupdated.rb +3 -11
  326. data/lib/moov/models/components/webhookdatacardautoupdated.rb +1 -1
  327. data/lib/moov/models/components/webhookdatadisputecreated.rb +2 -2
  328. data/lib/moov/models/components/webhookdatadisputeupdated.rb +2 -2
  329. data/lib/moov/models/components/webhookdatainvoiceupdated.rb +1 -1
  330. data/lib/moov/models/components/webhookdatarefundupdated.rb +1 -1
  331. data/lib/moov/models/components/webhookdatasweepcreated.rb +2 -6
  332. data/lib/moov/models/components/webhookdatasweepcreated.rbi +0 -2
  333. data/lib/moov/models/components/webhookdatasweepupdated.rb +3 -7
  334. data/lib/moov/models/components/webhookdatasweepupdated.rbi +0 -2
  335. data/lib/moov/models/components/webhookdataterminalapplicationcreated.rb +1 -1
  336. data/lib/moov/models/components/webhookdataterminalapplicationupdated.rb +1 -1
  337. data/lib/moov/models/components/webhookdataticketupdated.rb +1 -1
  338. data/lib/moov/models/components/webhookdatatransferstatus.rb +0 -4
  339. data/lib/moov/models/components/webhookdatawallettransactionupdated.rb +1 -1
  340. data/lib/moov/models/components/webhookdatawalletupdated.rb +1 -1
  341. data/lib/moov/models/components/webhookevent.rb +3 -3
  342. data/lib/moov/models/components/webhookeventtype.rb +1 -5
  343. data/lib/moov/models/components/webhookstatus.rb +1 -3
  344. data/lib/moov/models/components.rb +16 -27
  345. data/lib/moov/models/errors/cardacquiringrefund_error.rb +1 -1
  346. data/lib/moov/models/errors/cardmetadatarequesterror.rb +44 -0
  347. data/lib/moov/models/errors/cardmetadatarequesterror.rbi +19 -0
  348. data/lib/moov/models/errors/createinvoiceerror.rb +2 -14
  349. data/lib/moov/models/errors/createinvoiceerror.rbi +0 -6
  350. data/lib/moov/models/errors/createpaymentlinkerror.rb +6 -6
  351. data/lib/moov/models/errors/createpaymentlinkerror.rbi +2 -2
  352. data/lib/moov/models/errors/createsweepconfigerror.rb +2 -6
  353. data/lib/moov/models/errors/createsweepconfigerror.rbi +0 -2
  354. data/lib/moov/models/errors/listtransfersvalidationerror.rb +2 -6
  355. data/lib/moov/models/errors/listtransfersvalidationerror.rbi +0 -2
  356. data/lib/moov/models/errors/patchsweepconfigerror.rb +2 -6
  357. data/lib/moov/models/errors/patchsweepconfigerror.rbi +0 -2
  358. data/lib/moov/models/errors/requestcarderror.rb +14 -14
  359. data/lib/moov/models/errors/requestcarderror.rbi +8 -8
  360. data/lib/moov/models/errors/transfer_error.rb +6 -18
  361. data/lib/moov/models/errors/transfer_error.rbi +0 -4
  362. data/lib/moov/models/errors/transfervalidationerror.rb +2 -6
  363. data/lib/moov/models/errors/transfervalidationerror.rbi +0 -2
  364. data/lib/moov/models/errors/updateinvoiceerror.rb +2 -6
  365. data/lib/moov/models/errors/updateinvoiceerror.rbi +0 -2
  366. data/lib/moov/models/errors/updateissuedcarderror.rb +8 -12
  367. data/lib/moov/models/errors/updateissuedcarderror.rbi +4 -6
  368. data/lib/moov/models/errors/updatepaymentlinkerror.rb +6 -6
  369. data/lib/moov/models/errors/updatepaymentlinkerror.rbi +2 -2
  370. data/lib/moov/models/errors.rb +1 -2
  371. data/lib/moov/models/operations/createcancellation_request.rb +2 -7
  372. data/lib/moov/models/operations/createcancellation_request.rbi +0 -2
  373. data/lib/moov/models/operations/disablecapability_request.rb +1 -9
  374. data/lib/moov/models/operations/getcapability_request.rb +1 -9
  375. data/lib/moov/models/operations/{listcancellations_response.rb → getcardmetadata_response.rb} +6 -6
  376. data/lib/moov/models/operations/{createinvoicenotification_response.rbi → getcardmetadata_response.rbi} +4 -2
  377. data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
  378. data/lib/moov/models/operations/linkbankaccount_request.rb +1 -1
  379. data/lib/moov/models/operations/listaccounts_request.rb +1 -1
  380. data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +1 -1
  381. data/lib/moov/models/operations/listdisputes_request.rb +1 -1
  382. data/lib/moov/models/operations/listfeeplanagreements_request.rb +1 -1
  383. data/lib/moov/models/operations/listfeerevenue_request.rb +1 -1
  384. data/lib/moov/models/operations/listinvoices_request.rb +1 -1
  385. data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +1 -1
  386. data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +3 -7
  387. data/lib/moov/models/operations/listissuedcardauthorizations_request.rbi +0 -2
  388. data/lib/moov/models/operations/listissuedcards_request.rb +4 -8
  389. data/lib/moov/models/operations/listissuedcards_request.rbi +0 -2
  390. data/lib/moov/models/operations/listissuedcardtransactions_request.rb +3 -11
  391. data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +0 -4
  392. data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +1 -1
  393. data/lib/moov/models/operations/listpaymentlinks_request.rb +1 -1
  394. data/lib/moov/models/operations/listproducts_request.rb +1 -1
  395. data/lib/moov/models/operations/listresidualfees_request.rb +1 -1
  396. data/lib/moov/models/operations/listresiduals_request.rb +1 -1
  397. data/lib/moov/models/operations/listschedules_request.rb +1 -1
  398. data/lib/moov/models/operations/liststatements_request.rb +1 -1
  399. data/lib/moov/models/operations/listsweeps_request.rb +1 -1
  400. data/lib/moov/models/operations/listtickets_request.rb +1 -1
  401. data/lib/moov/models/operations/listtransfers_request.rb +3 -20
  402. data/lib/moov/models/operations/listtransfers_request.rbi +0 -8
  403. data/lib/moov/models/operations/listtransfers_response.rb +1 -1
  404. data/lib/moov/models/operations/listwallets_request.rb +1 -1
  405. data/lib/moov/models/operations/listwallettransactions_request.rb +1 -1
  406. data/lib/moov/models/operations/retrievefees_request.rb +1 -1
  407. data/lib/moov/models/operations.rb +1 -4
  408. data/lib/moov/onboarding.rb +16 -16
  409. data/lib/moov/payment_links.rb +24 -24
  410. data/lib/moov/payment_methods.rb +8 -8
  411. data/lib/moov/ping.rb +4 -4
  412. data/lib/moov/products.rb +20 -20
  413. data/lib/moov/receipts.rb +8 -8
  414. data/lib/moov/representatives.rb +20 -20
  415. data/lib/moov/resolution_links.rb +16 -16
  416. data/lib/moov/scheduling.rb +24 -24
  417. data/lib/moov/sdkconfiguration.rb +4 -4
  418. data/lib/moov/statements.rb +8 -8
  419. data/lib/moov/support.rb +20 -20
  420. data/lib/moov/sweeps.rb +24 -24
  421. data/lib/moov/terminal_applications.rb +20 -20
  422. data/lib/moov/transfer_config.rb +12 -12
  423. data/lib/moov/transfers.rb +56 -192
  424. data/lib/moov/underwriting.rb +12 -12
  425. data/lib/moov/utils/retries.rb +1 -43
  426. data/lib/moov/utils/utils.rb +2 -6
  427. data/lib/moov/wallet_transactions.rb +8 -8
  428. data/lib/moov/wallets.rb +16 -16
  429. data/lib/moov/webhooks.rb +32 -32
  430. metadata +40 -70
  431. data/lib/moov/models/components/billingaddress.rb +0 -52
  432. data/lib/moov/models/components/billingaddress.rbi +0 -23
  433. data/lib/moov/models/components/billingadjustment.rb +0 -40
  434. data/lib/moov/models/components/billingadjustment.rbi +0 -17
  435. data/lib/moov/models/components/billingsummary_adjustmentfees.rb +0 -40
  436. data/lib/moov/models/components/billingsummary_adjustmentfees.rbi +0 -15
  437. data/lib/moov/models/components/createinvoicenotification.rb +0 -32
  438. data/lib/moov/models/components/createinvoicenotification.rbi +0 -13
  439. data/lib/moov/models/components/invoicenotificationlimitedchannel.rb +0 -36
  440. data/lib/moov/models/components/invoicepaymentoptions.rb +0 -40
  441. data/lib/moov/models/components/invoicepaymentoptions.rbi +0 -17
  442. data/lib/moov/models/components/invoicepaymentoptionserror.rb +0 -40
  443. data/lib/moov/models/components/invoicepaymentoptionserror.rbi +0 -17
  444. data/lib/moov/models/components/invoicepaymentoptionsupdate.rb +0 -40
  445. data/lib/moov/models/components/invoicepaymentoptionsupdate.rbi +0 -17
  446. data/lib/moov/models/components/issuingdeclinereason.rb +0 -35
  447. data/lib/moov/models/components/issuingdeclinereason.rbi +0 -11
  448. data/lib/moov/models/components/notificationchannel.rb +0 -18
  449. data/lib/moov/models/components/notificationchannel.rbi +0 -11
  450. data/lib/moov/models/components/oauth2clienttype.rb +0 -23
  451. data/lib/moov/models/components/oauth2clienttype.rbi +0 -11
  452. data/lib/moov/models/components/pushdeliveryspeed.rb +0 -21
  453. data/lib/moov/models/components/pushdeliveryspeed.rbi +0 -11
  454. data/lib/moov/models/components/pushoptions.rb +0 -39
  455. data/lib/moov/models/components/pushoptions.rbi +0 -15
  456. data/lib/moov/models/components/pushoptionserror.rb +0 -36
  457. data/lib/moov/models/components/pushoptionserror.rbi +0 -15
  458. data/lib/moov/models/components/pushoptionsupdate.rb +0 -39
  459. data/lib/moov/models/components/pushoptionsupdate.rbi +0 -15
  460. data/lib/moov/models/components/rtpfailurecode.rb +0 -29
  461. data/lib/moov/models/components/rtpfailurecode.rbi +0 -11
  462. data/lib/moov/models/components/rtptransactiondetails.rb +0 -58
  463. data/lib/moov/models/components/rtptransactiondetails.rbi +0 -25
  464. data/lib/moov/models/components/rtptransactionstatus.rb +0 -23
  465. data/lib/moov/models/components/rtptransactionstatus.rbi +0 -11
  466. data/lib/moov/models/components/schedule.rb +0 -40
  467. data/lib/moov/models/components/schedule.rbi +0 -17
  468. data/lib/moov/models/components/sweepconfigschedule.rb +0 -40
  469. data/lib/moov/models/components/sweepconfigschedule.rbi +0 -17
  470. data/lib/moov/models/components/sweepconfigscheduleerror.rb +0 -40
  471. data/lib/moov/models/components/sweepconfigscheduleerror.rbi +0 -17
  472. data/lib/moov/models/components/sweepschedulefrequency.rb +0 -18
  473. data/lib/moov/models/components/sweepschedulefrequency.rbi +0 -11
  474. data/lib/moov/models/components/transfercapture.rb +0 -36
  475. data/lib/moov/models/components/transfercapture.rbi +0 -15
  476. data/lib/moov/models/components/transfercontrols.rb +0 -48
  477. data/lib/moov/models/components/transfercontrols.rbi +0 -21
  478. data/lib/moov/models/components/webhookdataauthorizationexpiring.rb +0 -44
  479. data/lib/moov/models/components/webhookdataauthorizationexpiring.rbi +0 -19
  480. data/lib/moov/models/components/webhookdataeventtest.rbi +0 -13
  481. data/lib/moov/models/errors/invoicenotificationerror.rb +0 -36
  482. data/lib/moov/models/errors/invoicenotificationerror.rbi +0 -15
  483. data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +0 -44
  484. data/lib/moov/models/errors/invoicenotificationratelimitederror.rbi +0 -19
  485. data/lib/moov/models/operations/createinvoicenotification_request.rb +0 -40
  486. data/lib/moov/models/operations/createinvoicenotification_request.rbi +0 -17
  487. data/lib/moov/models/operations/createinvoicenotification_response.rb +0 -44
  488. data/lib/moov/models/operations/listcancellations_request.rb +0 -36
  489. data/lib/moov/models/operations/listcancellations_request.rbi +0 -15
  490. data/lib/moov/models/operations/listcancellations_response.rbi +0 -21
@@ -13,13 +13,13 @@ module Moov
13
13
  include Crystalline::MetadataFields
14
14
 
15
15
  # The network that the transaction was processed on.
16
- field :network, Models::Components::InstantBankNetwork, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('network'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::InstantBankNetwork, false) } }
16
+ field :network, Models::Components::InstantBankNetwork, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('network'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::InstantBankNetwork, false) } }
17
17
  # Status of a transaction within the instant-bank lifecycle.
18
- field :status, Models::Components::InstantBankTransactionStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::InstantBankTransactionStatus, false) } }
18
+ field :status, Models::Components::InstantBankTransactionStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::InstantBankTransactionStatus, false) } }
19
19
  # Response code returned by network on failure.
20
20
  field :network_response_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('networkResponseCode') } }
21
21
  # Status codes for instant-bank failures.
22
- field :failure_code, Crystalline::Nilable.new(Models::Components::InstantBankFailureCode), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('failureCode'), 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::InstantBankFailureCode, true) } }
22
+ field :failure_code, Crystalline::Nilable.new(Models::Components::InstantBankFailureCode), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('failureCode'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::InstantBankFailureCode, true) } }
23
23
 
24
24
  field :end_to_end_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('endToEndID') } }
25
25
 
@@ -8,15 +8,13 @@ module Moov
8
8
  module Models
9
9
  module Components
10
10
  # InstantBankTransactionStatus - Status of a transaction within the instant-bank lifecycle.
11
- class InstantBankTransactionStatus
12
- include ::Crystalline::Enum
11
+ class InstantBankTransactionStatus < T::Enum
13
12
  enums do
14
13
  INITIATED = new('initiated')
15
14
  COMPLETED = new('completed')
16
15
  FAILED = new('failed')
17
16
  ACCEPTED_WITHOUT_POSTING = new('accepted-without-posting')
18
17
  end
19
- open!
20
18
  end
21
19
  end
22
20
  end
@@ -25,14 +25,14 @@ module Moov
25
25
  # A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
26
26
  field :partner_account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('partnerAccountID'), required: true } }
27
27
 
28
- field :status, Models::Components::InvoiceStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::InvoiceStatus, false) } }
28
+ field :status, Models::Components::InvoiceStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::InvoiceStatus, false) } }
29
29
  # A collection of line items for an invoice.
30
30
  field :line_items, Models::Components::InvoiceLineItems, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems'), required: true } }
31
31
 
32
32
  field :subtotal_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('subtotalAmount'), required: true } }
33
33
 
34
34
  field :tax_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('taxAmount'), required: true } }
35
- # Total amount of the invoice, including subtotal, tax, and surcharge amounts.
35
+ # Total amount of the invoice, sum of subTotalAmount and taxAmount
36
36
  field :total_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('totalAmount'), required: true } }
37
37
  # Total amount of pending transfers paid towards the invoice
38
38
  field :pending_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('pendingAmount'), required: true } }
@@ -48,10 +48,6 @@ module Moov
48
48
  field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
49
49
 
50
50
  field :payment_link_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentLinkCode') } }
51
- # URL to the hosted payment link for the invoice.
52
- field :payment_link_url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentLinkURL') } }
53
- # Payment options for the invoice.
54
- field :payment, Crystalline::Nilable.new(Models::Components::InvoicePaymentOptions), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('payment') } }
55
51
  # Payment made towards an invoice, will be either a transfer or an external payment.
56
52
  field :invoice_payments, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::InvoicePayment)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoicePayments') } }
57
53
 
@@ -67,8 +63,8 @@ module Moov
67
63
 
68
64
  field :disabled_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('disabledOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
69
65
 
70
- sig { params(invoice_id: ::String, invoice_number: ::String, customer_account_id: ::String, customer_display_name: ::String, customer_email: ::String, partner_account_id: ::String, status: Models::Components::InvoiceStatus, line_items: Models::Components::InvoiceLineItems, subtotal_amount: Models::Components::AmountDecimal, tax_amount: Models::Components::AmountDecimal, total_amount: Models::Components::AmountDecimal, pending_amount: Models::Components::AmountDecimal, paid_amount: Models::Components::AmountDecimal, refunded_amount: Models::Components::AmountDecimal, disputed_amount: Models::Components::AmountDecimal, created_on: ::DateTime, description: T.nilable(::String), payment_link_code: T.nilable(::String), payment_link_url: T.nilable(::String), payment: T.nilable(Models::Components::InvoicePaymentOptions), invoice_payments: T.nilable(T::Array[Models::Components::InvoicePayment]), invoice_date: T.nilable(::DateTime), due_date: T.nilable(::DateTime), sent_on: T.nilable(::DateTime), paid_on: T.nilable(::DateTime), canceled_on: T.nilable(::DateTime), disabled_on: T.nilable(::DateTime)).void }
71
- def initialize(invoice_id:, invoice_number:, customer_account_id:, customer_display_name:, customer_email:, partner_account_id:, status:, line_items:, subtotal_amount:, tax_amount:, total_amount:, pending_amount:, paid_amount:, refunded_amount:, disputed_amount:, created_on:, description: nil, payment_link_code: nil, payment_link_url: nil, payment: nil, invoice_payments: nil, invoice_date: nil, due_date: nil, sent_on: nil, paid_on: nil, canceled_on: nil, disabled_on: nil)
66
+ sig { params(invoice_id: ::String, invoice_number: ::String, customer_account_id: ::String, customer_display_name: ::String, customer_email: ::String, partner_account_id: ::String, status: Models::Components::InvoiceStatus, line_items: Models::Components::InvoiceLineItems, subtotal_amount: Models::Components::AmountDecimal, tax_amount: Models::Components::AmountDecimal, total_amount: Models::Components::AmountDecimal, pending_amount: Models::Components::AmountDecimal, paid_amount: Models::Components::AmountDecimal, refunded_amount: Models::Components::AmountDecimal, disputed_amount: Models::Components::AmountDecimal, created_on: ::DateTime, description: T.nilable(::String), payment_link_code: T.nilable(::String), invoice_payments: T.nilable(T::Array[Models::Components::InvoicePayment]), invoice_date: T.nilable(::DateTime), due_date: T.nilable(::DateTime), sent_on: T.nilable(::DateTime), paid_on: T.nilable(::DateTime), canceled_on: T.nilable(::DateTime), disabled_on: T.nilable(::DateTime)).void }
67
+ def initialize(invoice_id:, invoice_number:, customer_account_id:, customer_display_name:, customer_email:, partner_account_id:, status:, line_items:, subtotal_amount:, tax_amount:, total_amount:, pending_amount:, paid_amount:, refunded_amount:, disputed_amount:, created_on:, description: nil, payment_link_code: nil, invoice_payments: nil, invoice_date: nil, due_date: nil, sent_on: nil, paid_on: nil, canceled_on: nil, disabled_on: nil)
72
68
  @invoice_id = invoice_id
73
69
  @invoice_number = invoice_number
74
70
  @customer_account_id = customer_account_id
@@ -87,8 +83,6 @@ module Moov
87
83
  @created_on = created_on
88
84
  @description = description
89
85
  @payment_link_code = payment_link_code
90
- @payment_link_url = payment_link_url
91
- @payment = payment
92
86
  @invoice_payments = invoice_payments
93
87
  @invoice_date = invoice_date
94
88
  @due_date = due_date
@@ -119,8 +113,6 @@ module Moov
119
113
  return false unless @created_on == other.created_on
120
114
  return false unless @description == other.description
121
115
  return false unless @payment_link_code == other.payment_link_code
122
- return false unless @payment_link_url == other.payment_link_url
123
- return false unless @payment == other.payment
124
116
  return false unless @invoice_payments == other.invoice_payments
125
117
  return false unless @invoice_date == other.invoice_date
126
118
  return false unless @due_date == other.due_date
@@ -44,10 +44,6 @@ class Moov::Models::Components::Invoice
44
44
  def description=(str_); end
45
45
  def payment_link_code(); end
46
46
  def payment_link_code=(str_); end
47
- def payment_link_url(); end
48
- def payment_link_url=(str_); end
49
- def payment(); end
50
- def payment=(str_); end
51
47
  def invoice_payments(); end
52
48
  def invoice_payments=(str_); end
53
49
  def invoice_date(); end
@@ -15,7 +15,7 @@ module Moov
15
15
  # A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
16
16
  field :invoice_payment_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoicePaymentID'), required: true } }
17
17
 
18
- field :invoice_payment_type, Models::Components::InvoicePaymentType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoicePaymentType'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::InvoicePaymentType, false) } }
18
+ field :invoice_payment_type, Models::Components::InvoicePaymentType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoicePaymentType'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::InvoicePaymentType, false) } }
19
19
 
20
20
  field :amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount'), required: true } }
21
21
 
@@ -8,13 +8,11 @@ module Moov
8
8
  module Models
9
9
  module Components
10
10
 
11
- class InvoicePaymentType
12
- include ::Crystalline::Enum
11
+ class InvoicePaymentType < T::Enum
13
12
  enums do
14
13
  TRANSFER = new('transfer')
15
14
  EXTERNAL = new('external')
16
15
  end
17
- open!
18
16
  end
19
17
  end
20
18
  end
@@ -8,8 +8,7 @@ module Moov
8
8
  module Models
9
9
  module Components
10
10
 
11
- class InvoiceStatus
12
- include ::Crystalline::Enum
11
+ class InvoiceStatus < T::Enum
13
12
  enums do
14
13
  DRAFT = new('draft')
15
14
  UNPAID = new('unpaid')
@@ -18,7 +17,6 @@ module Moov
18
17
  OVERDUE = new('overdue')
19
18
  CANCELED = new('canceled')
20
19
  end
21
- open!
22
20
  end
23
21
  end
24
22
  end
@@ -15,53 +15,43 @@ module Moov
15
15
 
16
16
  field :issued_card_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('issuedCardID'), required: true } }
17
17
  # The card brand.
18
- field :brand, Models::Components::CardBrand, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('brand'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::CardBrand, false) } }
18
+ field :brand, Models::Components::CardBrand, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('brand'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CardBrand, false) } }
19
19
 
20
20
  field :last_four_card_number, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lastFourCardNumber'), required: true } }
21
21
  # The expiration date of the card or token.
22
22
  field :expiration, Models::Components::CardExpiration, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('expiration'), required: true } }
23
+ # Fields for identifying an authorized individual.
24
+ field :authorized_user, Models::Components::AuthorizedUser, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizedUser'), required: true } }
23
25
  # Unique identifier for the wallet funding the card.
24
26
  field :funding_wallet_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('fundingWalletID'), required: true } }
25
- # The `state` represents the operational status of an issued card.
27
+ # The `state` represents the operational status of an issued card. A card can only approve incoming authorizations if it is in an active state.
26
28
  #
27
- # Authorizations can only be approved while the card is `active`:
28
- #
29
- # - `active`: The card is operational and authorizations can be approved.
30
- # - `frozen`: The card is temporarily suspended and authorizations cannot be approved. Set the state back to `active` to reactivate it. A card can move between `frozen` and `active` as often as needed.
31
- # - `closed`: The card is permanently deactivated. A card is closed by request or when it expires, and cannot be reopened.
32
- field :state, Models::Components::IssuedCardState, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('state'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::IssuedCardState, false) } }
29
+ # - `active`: The card is operational and approves authorizations. Generally becomes active shortly after card creation.
30
+ # - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
31
+ # - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
32
+ # - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
33
+ field :state, Models::Components::IssuedCardState, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('state'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::IssuedCardState, false) } }
33
34
  # Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
34
35
  field :form_factor, Models::Components::IssuedCardFormFactor, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('formFactor'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::IssuedCardFormFactor, false) } }
35
36
 
36
37
  field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
38
+ # Optional descriptor for the card.
39
+ field :memo, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('memo') } }
37
40
 
38
- field :updated_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('updatedOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
39
- # Identifier for the account of the card's authorized user.
40
- field :authorized_user_account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizedUserAccountID') } }
41
- # An optional descriptive name for the card.
42
- field :nickname, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('nickname') } }
43
- # Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
44
- field :metadata, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('metadata') } }
45
- # Billing address associated with the card.
46
- field :billing_address, Crystalline::Nilable.new(Models::Components::Address), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('billingAddress') } }
47
- # Mutable spend controls for the card.
48
41
  field :controls, Crystalline::Nilable.new(Models::Components::IssuingControls), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('controls') } }
49
42
 
50
- sig { params(issued_card_id: ::String, brand: Models::Components::CardBrand, last_four_card_number: ::String, expiration: Models::Components::CardExpiration, funding_wallet_id: ::String, state: Models::Components::IssuedCardState, form_factor: Models::Components::IssuedCardFormFactor, created_on: ::DateTime, updated_on: ::DateTime, authorized_user_account_id: T.nilable(::String), nickname: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), billing_address: T.nilable(Models::Components::Address), controls: T.nilable(Models::Components::IssuingControls)).void }
51
- def initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, funding_wallet_id:, state:, form_factor:, created_on:, updated_on:, authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil)
43
+ sig { params(issued_card_id: ::String, brand: Models::Components::CardBrand, last_four_card_number: ::String, expiration: Models::Components::CardExpiration, authorized_user: Models::Components::AuthorizedUser, funding_wallet_id: ::String, state: Models::Components::IssuedCardState, form_factor: Models::Components::IssuedCardFormFactor, created_on: ::DateTime, memo: T.nilable(::String), controls: T.nilable(Models::Components::IssuingControls)).void }
44
+ def initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, authorized_user:, funding_wallet_id:, state:, form_factor:, created_on:, memo: nil, controls: nil)
52
45
  @issued_card_id = issued_card_id
53
46
  @brand = brand
54
47
  @last_four_card_number = last_four_card_number
55
48
  @expiration = expiration
49
+ @authorized_user = authorized_user
56
50
  @funding_wallet_id = funding_wallet_id
57
51
  @state = state
58
52
  @form_factor = form_factor
59
53
  @created_on = created_on
60
- @updated_on = updated_on
61
- @authorized_user_account_id = authorized_user_account_id
62
- @nickname = nickname
63
- @metadata = metadata
64
- @billing_address = billing_address
54
+ @memo = memo
65
55
  @controls = controls
66
56
  end
67
57
 
@@ -72,15 +62,12 @@ module Moov
72
62
  return false unless @brand == other.brand
73
63
  return false unless @last_four_card_number == other.last_four_card_number
74
64
  return false unless @expiration == other.expiration
65
+ return false unless @authorized_user == other.authorized_user
75
66
  return false unless @funding_wallet_id == other.funding_wallet_id
76
67
  return false unless @state == other.state
77
68
  return false unless @form_factor == other.form_factor
78
69
  return false unless @created_on == other.created_on
79
- return false unless @updated_on == other.updated_on
80
- return false unless @authorized_user_account_id == other.authorized_user_account_id
81
- return false unless @nickname == other.nickname
82
- return false unless @metadata == other.metadata
83
- return false unless @billing_address == other.billing_address
70
+ return false unless @memo == other.memo
84
71
  return false unless @controls == other.controls
85
72
  true
86
73
  end
@@ -16,6 +16,8 @@ class Moov::Models::Components::IssuedCard
16
16
  def last_four_card_number=(str_); end
17
17
  def expiration(); end
18
18
  def expiration=(str_); end
19
+ def authorized_user(); end
20
+ def authorized_user=(str_); end
19
21
  def funding_wallet_id(); end
20
22
  def funding_wallet_id=(str_); end
21
23
  def state(); end
@@ -24,16 +26,8 @@ class Moov::Models::Components::IssuedCard
24
26
  def form_factor=(str_); end
25
27
  def created_on(); end
26
28
  def created_on=(str_); end
27
- def updated_on(); end
28
- def updated_on=(str_); end
29
- def authorized_user_account_id(); end
30
- def authorized_user_account_id=(str_); end
31
- def nickname(); end
32
- def nickname=(str_); end
33
- def metadata(); end
34
- def metadata=(str_); end
35
- def billing_address(); end
36
- def billing_address=(str_); end
29
+ def memo(); end
30
+ def memo=(str_); end
37
31
  def controls(); end
38
32
  def controls=(str_); end
39
33
  end
@@ -19,27 +19,20 @@ module Moov
19
19
 
20
20
  field :funding_wallet_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('fundingWalletID'), required: true } }
21
21
  # The name of the network a card transaction is routed through.
22
- field :network, Models::Components::CardIssuingNetwork, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('network'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::CardIssuingNetwork, false) } }
22
+ field :network, Models::Components::CardIssuingNetwork, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('network'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CardIssuingNetwork, false) } }
23
23
  # A decimal-formatted numerical string that represents up to 2 decimal place precision. In USD for example, 12.34 is $12.34 and 0.99 is $0.99.
24
24
  field :authorized_amount, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizedAmount'), required: true } }
25
25
  # Status of a card issuing authorization.
26
- field :status, Models::Components::IssuingAuthorizationStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::IssuingAuthorizationStatus, false) } }
26
+ field :status, Models::Components::IssuingAuthorizationStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::IssuingAuthorizationStatus, false) } }
27
27
 
28
28
  field :merchant_data, Models::Components::IssuingMerchantData, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantData'), required: true } }
29
29
 
30
30
  field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
31
- # Last four digits of the card number. Omitted for authorizations recorded before this was captured.
32
- field :last_four_card_number, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lastFourCardNumber') } }
33
- # Identifier for the account of the card's authorized user.
34
- field :authorized_user_account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizedUserAccountID') } }
35
31
  # List of card transaction IDs associated with this authorization.
36
32
  field :card_transactions, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardTransactions') } }
37
- # The reason an authorization or authorization event was declined. Only present if the
38
- # authorization or event has been declined.
39
- field :decline_reason, Crystalline::Nilable.new(Models::Components::IssuingDeclineReason), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('declineReason'), 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::IssuingDeclineReason, true) } }
40
33
 
41
- sig { params(authorization_id: ::String, issued_card_id: ::String, funding_wallet_id: ::String, network: Models::Components::CardIssuingNetwork, authorized_amount: ::String, status: Models::Components::IssuingAuthorizationStatus, merchant_data: Models::Components::IssuingMerchantData, created_on: ::DateTime, last_four_card_number: T.nilable(::String), authorized_user_account_id: T.nilable(::String), card_transactions: T.nilable(T::Array[::String]), decline_reason: T.nilable(Models::Components::IssuingDeclineReason)).void }
42
- def initialize(authorization_id:, issued_card_id:, funding_wallet_id:, network:, authorized_amount:, status:, merchant_data:, created_on:, last_four_card_number: nil, authorized_user_account_id: nil, card_transactions: nil, decline_reason: nil)
34
+ sig { params(authorization_id: ::String, issued_card_id: ::String, funding_wallet_id: ::String, network: Models::Components::CardIssuingNetwork, authorized_amount: ::String, status: Models::Components::IssuingAuthorizationStatus, merchant_data: Models::Components::IssuingMerchantData, created_on: ::DateTime, card_transactions: T.nilable(T::Array[::String])).void }
35
+ def initialize(authorization_id:, issued_card_id:, funding_wallet_id:, network:, authorized_amount:, status:, merchant_data:, created_on:, card_transactions: nil)
43
36
  @authorization_id = authorization_id
44
37
  @issued_card_id = issued_card_id
45
38
  @funding_wallet_id = funding_wallet_id
@@ -48,10 +41,7 @@ module Moov
48
41
  @status = status
49
42
  @merchant_data = merchant_data
50
43
  @created_on = created_on
51
- @last_four_card_number = last_four_card_number
52
- @authorized_user_account_id = authorized_user_account_id
53
44
  @card_transactions = card_transactions
54
- @decline_reason = decline_reason
55
45
  end
56
46
 
57
47
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -65,10 +55,7 @@ module Moov
65
55
  return false unless @status == other.status
66
56
  return false unless @merchant_data == other.merchant_data
67
57
  return false unless @created_on == other.created_on
68
- return false unless @last_four_card_number == other.last_four_card_number
69
- return false unless @authorized_user_account_id == other.authorized_user_account_id
70
58
  return false unless @card_transactions == other.card_transactions
71
- return false unless @decline_reason == other.decline_reason
72
59
  true
73
60
  end
74
61
  end
@@ -24,12 +24,6 @@ class Moov::Models::Components::IssuedCardAuthorization
24
24
  def merchant_data=(str_); end
25
25
  def created_on(); end
26
26
  def created_on=(str_); end
27
- def last_four_card_number(); end
28
- def last_four_card_number=(str_); end
29
- def authorized_user_account_id(); end
30
- def authorized_user_account_id=(str_); end
31
27
  def card_transactions(); end
32
28
  def card_transactions=(str_); end
33
- def decline_reason(); end
34
- def decline_reason=(str_); end
35
29
  end
@@ -15,25 +15,21 @@ module Moov
15
15
  # The identifier for this event. Use the `eventType` field to determine what resource is identified by this ID (`authorization`, `reversal`, etc.).
16
16
  field :event_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('eventID'), required: true } }
17
17
  # The type of event that occurred on the card.
18
- field :event_type, Models::Components::IssuedCardEventType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('eventType'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::IssuedCardEventType, false) } }
18
+ field :event_type, Models::Components::IssuedCardEventType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('eventType'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::IssuedCardEventType, false) } }
19
19
  # A decimal-formatted numerical string that represents up to 2 decimal place precision. In USD for example, 12.34 is $12.34 and 0.99 is $0.99.
20
20
  field :amount, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount'), required: true } }
21
21
  # The result of an event.
22
- field :result, Models::Components::IssuedCardAuthorizationEventResult, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('result'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::IssuedCardAuthorizationEventResult, false) } }
22
+ field :result, Models::Components::IssuedCardAuthorizationEventResult, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('result'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::IssuedCardAuthorizationEventResult, false) } }
23
23
 
24
24
  field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
25
- # The reason an authorization or authorization event was declined. Only present if the
26
- # authorization or event has been declined.
27
- field :decline_reason, Crystalline::Nilable.new(Models::Components::IssuingDeclineReason), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('declineReason'), 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::IssuingDeclineReason, true) } }
28
25
 
29
- sig { params(event_id: ::String, event_type: Models::Components::IssuedCardEventType, amount: ::String, result: Models::Components::IssuedCardAuthorizationEventResult, created_on: ::DateTime, decline_reason: T.nilable(Models::Components::IssuingDeclineReason)).void }
30
- def initialize(event_id:, event_type:, amount:, result:, created_on:, decline_reason: nil)
26
+ sig { params(event_id: ::String, event_type: Models::Components::IssuedCardEventType, amount: ::String, result: Models::Components::IssuedCardAuthorizationEventResult, created_on: ::DateTime).void }
27
+ def initialize(event_id:, event_type:, amount:, result:, created_on:)
31
28
  @event_id = event_id
32
29
  @event_type = event_type
33
30
  @amount = amount
34
31
  @result = result
35
32
  @created_on = created_on
36
- @decline_reason = decline_reason
37
33
  end
38
34
 
39
35
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -44,7 +40,6 @@ module Moov
44
40
  return false unless @amount == other.amount
45
41
  return false unless @result == other.result
46
42
  return false unless @created_on == other.created_on
47
- return false unless @decline_reason == other.decline_reason
48
43
  true
49
44
  end
50
45
  end
@@ -18,6 +18,4 @@ class Moov::Models::Components::IssuedCardAuthorizationEvent
18
18
  def result=(str_); end
19
19
  def created_on(); end
20
20
  def created_on=(str_); end
21
- def decline_reason(); end
22
- def decline_reason=(str_); end
23
21
  end
@@ -8,14 +8,12 @@ module Moov
8
8
  module Models
9
9
  module Components
10
10
  # IssuedCardAuthorizationEventResult - The result of an event.
11
- class IssuedCardAuthorizationEventResult
12
- include ::Crystalline::Enum
11
+ class IssuedCardAuthorizationEventResult < T::Enum
13
12
  enums do
14
13
  APPROVED = new('approved')
15
14
  DECLINED = new('declined')
16
15
  PROCESSED = new('processed')
17
16
  end
18
- open!
19
17
  end
20
18
  end
21
19
  end
@@ -8,8 +8,7 @@ module Moov
8
8
  module Models
9
9
  module Components
10
10
  # IssuedCardEventType - The type of event that occurred on the card.
11
- class IssuedCardEventType
12
- include ::Crystalline::Enum
11
+ class IssuedCardEventType < T::Enum
13
12
  enums do
14
13
  AUTHORIZATION = new('authorization')
15
14
  REVERSAL = new('reversal')
@@ -18,7 +17,6 @@ module Moov
18
17
  AUTHORIZATION_INCREMENTAL = new('authorization-incremental')
19
18
  CLEARING = new('clearing')
20
19
  end
21
- open!
22
20
  end
23
21
  end
24
22
  end
@@ -7,21 +7,19 @@
7
7
  module Moov
8
8
  module Models
9
9
  module Components
10
- # IssuedCardState - The `state` represents the operational status of an issued card.
10
+ # IssuedCardState - The `state` represents the operational status of an issued card. A card can only approve incoming authorizations if it is in an active state.
11
11
  #
12
- # Authorizations can only be approved while the card is `active`:
13
- #
14
- # - `active`: The card is operational and authorizations can be approved.
15
- # - `frozen`: The card is temporarily suspended and authorizations cannot be approved. Set the state back to `active` to reactivate it. A card can move between `frozen` and `active` as often as needed.
16
- # - `closed`: The card is permanently deactivated. A card is closed by request or when it expires, and cannot be reopened.
17
- class IssuedCardState
18
- include ::Crystalline::Enum
12
+ # - `active`: The card is operational and approves authorizations. Generally becomes active shortly after card creation.
13
+ # - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
14
+ # - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
15
+ # - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
16
+ class IssuedCardState < T::Enum
19
17
  enums do
20
18
  ACTIVE = new('active')
21
- FROZEN = new('frozen')
19
+ INACTIVE = new('inactive')
20
+ PENDING_VERIFICATION = new('pending-verification')
22
21
  CLOSED = new('closed')
23
22
  end
24
- open!
25
23
  end
26
24
  end
27
25
  end
@@ -26,15 +26,11 @@ module Moov
26
26
  field :merchant_data, Models::Components::IssuingMerchantData, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantData'), required: true } }
27
27
 
28
28
  field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
29
- # Last four digits of the card number. Omitted for transactions recorded before this was captured.
30
- field :last_four_card_number, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lastFourCardNumber') } }
31
- # Identifier for the account of the card's authorized user.
32
- field :authorized_user_account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizedUserAccountID') } }
33
29
 
34
30
  field :authorization_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizationID') } }
35
31
 
36
- sig { params(card_transaction_id: ::String, issued_card_id: ::String, funding_wallet_id: ::String, amount: ::String, authorized_on: ::DateTime, merchant_data: Models::Components::IssuingMerchantData, created_on: ::DateTime, last_four_card_number: T.nilable(::String), authorized_user_account_id: T.nilable(::String), authorization_id: T.nilable(::String)).void }
37
- def initialize(card_transaction_id:, issued_card_id:, funding_wallet_id:, amount:, authorized_on:, merchant_data:, created_on:, last_four_card_number: nil, authorized_user_account_id: nil, authorization_id: nil)
32
+ sig { params(card_transaction_id: ::String, issued_card_id: ::String, funding_wallet_id: ::String, amount: ::String, authorized_on: ::DateTime, merchant_data: Models::Components::IssuingMerchantData, created_on: ::DateTime, authorization_id: T.nilable(::String)).void }
33
+ def initialize(card_transaction_id:, issued_card_id:, funding_wallet_id:, amount:, authorized_on:, merchant_data:, created_on:, authorization_id: nil)
38
34
  @card_transaction_id = card_transaction_id
39
35
  @issued_card_id = issued_card_id
40
36
  @funding_wallet_id = funding_wallet_id
@@ -42,8 +38,6 @@ module Moov
42
38
  @authorized_on = authorized_on
43
39
  @merchant_data = merchant_data
44
40
  @created_on = created_on
45
- @last_four_card_number = last_four_card_number
46
- @authorized_user_account_id = authorized_user_account_id
47
41
  @authorization_id = authorization_id
48
42
  end
49
43
 
@@ -57,8 +51,6 @@ module Moov
57
51
  return false unless @authorized_on == other.authorized_on
58
52
  return false unless @merchant_data == other.merchant_data
59
53
  return false unless @created_on == other.created_on
60
- return false unless @last_four_card_number == other.last_four_card_number
61
- return false unless @authorized_user_account_id == other.authorized_user_account_id
62
54
  return false unless @authorization_id == other.authorization_id
63
55
  true
64
56
  end
@@ -22,10 +22,6 @@ class Moov::Models::Components::IssuedCardTransaction
22
22
  def merchant_data=(str_); end
23
23
  def created_on(); end
24
24
  def created_on=(str_); end
25
- def last_four_card_number(); end
26
- def last_four_card_number=(str_); end
27
- def authorized_user_account_id(); end
28
- def authorized_user_account_id=(str_); end
29
25
  def authorization_id(); end
30
26
  def authorization_id=(str_); end
31
27
  end
@@ -8,8 +8,7 @@ module Moov
8
8
  module Models
9
9
  module Components
10
10
  # IssuingAuthorizationStatus - Status of a card issuing authorization.
11
- class IssuingAuthorizationStatus
12
- include ::Crystalline::Enum
11
+ class IssuingAuthorizationStatus < T::Enum
13
12
  enums do
14
13
  PENDING = new('pending')
15
14
  DECLINED = new('declined')
@@ -17,7 +16,6 @@ module Moov
17
16
  CLEARED = new('cleared')
18
17
  EXPIRED = new('expired')
19
18
  end
20
- open!
21
19
  end
22
20
  end
23
21
  end
@@ -7,7 +7,7 @@
7
7
  module Moov
8
8
  module Models
9
9
  module Components
10
- # Mutable spend controls for the card.
10
+
11
11
  class IssuingControls
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
@@ -7,7 +7,7 @@
7
7
  module Moov
8
8
  module Models
9
9
  module Components
10
- # IssuingIntervalLimit - Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
10
+ # IssuingIntervalLimit - Specifies the time frame for the velocity limit. Currently supports only per-transaction limits.
11
11
  class IssuingIntervalLimit < T::Enum
12
12
  enums do
13
13
  PER_TRANSACTION = new('per-transaction')
@@ -14,7 +14,7 @@ module Moov
14
14
 
15
15
  # The maximum amount in cents that can be spent in a given interval.
16
16
  field :amount, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount'), required: true } }
17
- # Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
17
+ # Specifies the time frame for the velocity limit. Currently supports only per-transaction limits.
18
18
  field :interval, Models::Components::IssuingIntervalLimit, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('interval'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::IssuingIntervalLimit, false) } }
19
19
 
20
20
  sig { params(amount: ::Integer, interval: Models::Components::IssuingIntervalLimit).void }
@@ -15,7 +15,7 @@ module Moov
15
15
  # The cryptographic algorithm family used with the key (e.g., 'RSA', 'EC', 'oct').
16
16
  field :kty, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('kty'), required: true } }
17
17
  # The intended use of the key. 'sig' for signature, 'enc' for encryption.
18
- field :use, Crystalline::Nilable.new(Models::Components::Use), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('use'), 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::Use, true) } }
18
+ field :use, Crystalline::Nilable.new(Models::Components::Use), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('use'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::Use, true) } }
19
19
  # The permitted operations for the key, e.g., 'sign', 'verify', 'encrypt', 'decrypt'.
20
20
  field :key_ops, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('key_ops') } }
21
21
  # The algorithm intended for use with the key, e.g., 'RS256' or 'ES256'.
@@ -15,7 +15,7 @@ module Moov
15
15
  # The new payment method's ID.
16
16
  field :payment_method_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentMethodID'), required: true } }
17
17
  # The payment method type that represents a payment rail and directionality
18
- field :payment_method_type, Models::Components::PaymentMethodType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentMethodType'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::PaymentMethodType, false) } }
18
+ field :payment_method_type, Models::Components::PaymentMethodType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentMethodType'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::PaymentMethodType, false) } }
19
19
  # Describes an Apple Pay token on a Moov account.
20
20
  field :apple_pay, Models::Components::ApplePayResponse, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('applePay'), required: true } }
21
21
 
@@ -15,7 +15,7 @@ module Moov
15
15
  # The new payment method's ID.
16
16
  field :payment_method_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentMethodID'), required: true } }
17
17
  # The payment method type that represents a payment rail and directionality
18
- field :payment_method_type, Models::Components::PaymentMethodType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentMethodType'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::PaymentMethodType, false) } }
18
+ field :payment_method_type, Models::Components::PaymentMethodType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentMethodType'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::PaymentMethodType, false) } }
19
19
  # Describes a Google Pay token on a Moov account.
20
20
  field :google_pay, Models::Components::GooglePayResponse, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('googlePay'), required: true } }
21
21
 
@@ -14,7 +14,7 @@ module Moov
14
14
 
15
15
  # The date and time the terms of service were accepted.
16
16
  field :accepted_date, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('acceptedDate'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
17
- # The IP address (IPv4 or IPv6) from which the terms of service were accepted.
17
+ # The IP address from which the terms of service were accepted.
18
18
  field :accepted_ip, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('acceptedIP'), required: true } }
19
19
  # The user-agent of the user making the request.
20
20
  field :accepted_user_agent, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('acceptedUserAgent'), required: true } }