moov_ruby 26.10.0.pre.dev.0 → 26.10.0.pre.dev.2

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 (244) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moov/avatars.rb +276 -1
  3. data/lib/moov/card_issuing.rb +116 -0
  4. data/lib/moov/client.rb +2 -2
  5. data/lib/moov/enriched_address.rb +1 -1
  6. data/lib/moov/enriched_profile.rb +1 -1
  7. data/lib/moov/institutions.rb +1 -1
  8. data/lib/moov/models/components/achcreditoptions.rb +40 -0
  9. data/lib/moov/models/components/achcreditoptions.rbi +17 -0
  10. data/lib/moov/models/components/achcredittransferprocessingdetails.rb +40 -0
  11. data/lib/moov/models/components/achcredittransferprocessingdetails.rbi +17 -0
  12. data/lib/moov/models/components/achdebitoptions.rb +48 -0
  13. data/lib/moov/models/components/achdebitoptions.rbi +21 -0
  14. data/lib/moov/models/components/achdebittransferprocessingdetails.rb +40 -0
  15. data/lib/moov/models/components/achdebittransferprocessingdetails.rbi +17 -0
  16. data/lib/moov/models/components/allowedscheduleerror.rb +36 -0
  17. data/lib/moov/models/components/allowedscheduleerror.rbi +15 -0
  18. data/lib/moov/models/components/asynccreatedrefund.rb +7 -3
  19. data/lib/moov/models/components/asynccreatedrefund.rbi +2 -0
  20. data/lib/moov/models/components/avataruploadrequest.rb +32 -0
  21. data/lib/moov/models/components/avataruploadrequest.rbi +13 -0
  22. data/lib/moov/models/components/avataruploadrequest_file.rb +36 -0
  23. data/lib/moov/models/components/avataruploadrequest_file.rbi +15 -0
  24. data/lib/moov/models/components/capabilityid.rb +1 -0
  25. data/lib/moov/models/components/capture.rb +77 -0
  26. data/lib/moov/models/components/capture.rbi +35 -0
  27. data/lib/moov/models/components/{refundcardstatus.rb → capturestatus.rb} +5 -4
  28. data/lib/moov/models/components/{refundcardstatus.rbi → capturestatus.rbi} +2 -2
  29. data/lib/moov/models/components/cardacquiringrefund.rb +11 -7
  30. data/lib/moov/models/components/cardacquiringrefund.rbi +4 -2
  31. data/lib/moov/models/components/cardpaymentoptions.rb +39 -0
  32. data/lib/moov/models/components/cardpaymentoptions.rbi +15 -0
  33. data/lib/moov/models/components/cardpaymentrefundprocessingdetails.rb +32 -0
  34. data/lib/moov/models/components/cardpaymentrefundprocessingdetails.rbi +13 -0
  35. data/lib/moov/models/components/cardpaymenttransferprocessingdetails.rb +44 -0
  36. data/lib/moov/models/components/cardpaymenttransferprocessingdetails.rbi +19 -0
  37. data/lib/moov/models/components/createcancellation.rb +32 -0
  38. data/lib/moov/models/components/createcancellation.rbi +13 -0
  39. data/lib/moov/models/components/createcapture.rb +65 -0
  40. data/lib/moov/models/components/createcapture.rbi +29 -0
  41. data/lib/moov/models/components/createdtransfer.rb +22 -22
  42. data/lib/moov/models/components/createdtransfer.rbi +8 -8
  43. data/lib/moov/models/components/createrefund.rb +9 -5
  44. data/lib/moov/models/components/createrefund.rbi +2 -0
  45. data/lib/moov/models/components/createreversal.rb +3 -3
  46. data/lib/moov/models/components/createtransfer.rb +9 -5
  47. data/lib/moov/models/components/createtransfer.rbi +2 -0
  48. data/lib/moov/models/components/createtransferfacilitatorfee.rb +36 -0
  49. data/lib/moov/models/components/createtransferfacilitatorfee.rbi +15 -0
  50. data/lib/moov/models/components/createtransferoptions.rb +2 -2
  51. data/lib/moov/models/components/feepaidby.rb +19 -0
  52. data/lib/moov/models/components/{achtransactionstatus.rbi → feepaidby.rbi} +2 -2
  53. data/lib/moov/models/components/fullissuedcard.rb +3 -3
  54. data/lib/moov/models/components/incurredfee.rb +6 -2
  55. data/lib/moov/models/components/incurredfee.rbi +2 -0
  56. data/lib/moov/models/components/instantbankcredittransferprocessingdetails.rb +44 -0
  57. data/lib/moov/models/components/instantbankcredittransferprocessingdetails.rbi +19 -0
  58. data/lib/moov/models/components/issuedcard.rb +3 -3
  59. data/lib/moov/models/components/issuedcontrols.rb +52 -0
  60. data/lib/moov/models/components/issuedcontrols.rbi +23 -0
  61. data/lib/moov/models/components/issuedcontrols_allowedschedule.rb +36 -0
  62. data/lib/moov/models/components/issuedcontrols_allowedschedule.rbi +15 -0
  63. data/lib/moov/models/components/issuedvelocitylimit.rb +60 -0
  64. data/lib/moov/models/components/issuedvelocitylimit.rbi +27 -0
  65. data/lib/moov/models/components/issuingcontrols.rb +18 -2
  66. data/lib/moov/models/components/issuingcontrols.rbi +8 -0
  67. data/lib/moov/models/components/issuingcontrols_allowedschedule.rb +36 -0
  68. data/lib/moov/models/components/issuingcontrols_allowedschedule.rbi +15 -0
  69. data/lib/moov/models/components/issuingcontrolserror.rb +18 -2
  70. data/lib/moov/models/components/issuingcontrolserror.rbi +8 -0
  71. data/lib/moov/models/components/issuingcontrolsrestrictionmode.rb +19 -0
  72. data/lib/moov/models/components/issuingcontrolsrestrictionmode.rbi +11 -0
  73. data/lib/moov/models/components/issuingintervallimit.rb +4 -1
  74. data/lib/moov/models/components/issuingmerchantcategory.rb +43 -0
  75. data/lib/moov/models/components/issuingmerchantcategory.rbi +11 -0
  76. data/lib/moov/models/components/issuingscheduleday.rb +24 -0
  77. data/lib/moov/models/components/{cardtransactionstatus.rbi → issuingscheduleday.rbi} +2 -2
  78. data/lib/moov/models/components/issuingvelocitylimit.rb +11 -7
  79. data/lib/moov/models/components/issuingvelocitylimit.rbi +4 -2
  80. data/lib/moov/models/components/issuingvelocitylimiterror.rb +6 -2
  81. data/lib/moov/models/components/issuingvelocitylimiterror.rbi +2 -0
  82. data/lib/moov/models/components/merchantcategories.rb +32 -0
  83. data/lib/moov/models/components/merchantcategories.rbi +13 -0
  84. data/lib/moov/models/components/merchantcategory.rb +37 -0
  85. data/lib/moov/models/components/merchantcategory.rbi +15 -0
  86. data/lib/moov/models/components/merchantcategoryrestrictions.rb +44 -0
  87. data/lib/moov/models/components/merchantcategoryrestrictions.rbi +19 -0
  88. data/lib/moov/models/components/merchantcategoryrestrictionserror.rb +44 -0
  89. data/lib/moov/models/components/merchantcategoryrestrictionserror.rbi +19 -0
  90. data/lib/moov/models/components/merchantentry.rb +40 -0
  91. data/lib/moov/models/components/merchantentry.rbi +17 -0
  92. data/lib/moov/models/components/merchantentryerror.rb +36 -0
  93. data/lib/moov/models/components/merchantentryerror.rbi +15 -0
  94. data/lib/moov/models/components/merchantrestrictions.rb +36 -0
  95. data/lib/moov/models/components/merchantrestrictions.rbi +15 -0
  96. data/lib/moov/models/components/merchantrestrictionserror.rb +36 -0
  97. data/lib/moov/models/components/merchantrestrictionserror.rbi +15 -0
  98. data/lib/moov/models/components/moovfeedetails.rb +5 -5
  99. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +8 -2
  100. data/lib/moov/models/components/paymentlinkpayoutdetails.rbi +2 -0
  101. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +8 -2
  102. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rbi +2 -0
  103. data/lib/moov/models/components/paymentmethodswallet.rb +1 -0
  104. data/lib/moov/models/components/payoutdetailserror.rb +6 -2
  105. data/lib/moov/models/components/payoutdetailserror.rbi +2 -0
  106. data/lib/moov/models/components/product.rb +6 -2
  107. data/lib/moov/models/components/product.rbi +2 -0
  108. data/lib/moov/models/components/productcategories.rb +32 -0
  109. data/lib/moov/models/components/productcategories.rbi +13 -0
  110. data/lib/moov/models/components/productcategory.rb +48 -0
  111. data/lib/moov/models/components/productcategory.rbi +21 -0
  112. data/lib/moov/models/components/productrequest.rb +6 -2
  113. data/lib/moov/models/components/productrequest.rbi +2 -0
  114. data/lib/moov/models/components/pullfromcardoptions.rb +39 -0
  115. data/lib/moov/models/components/pullfromcardoptions.rbi +15 -0
  116. data/lib/moov/models/components/pullfromcardtransferprocessingdetails.rb +44 -0
  117. data/lib/moov/models/components/pullfromcardtransferprocessingdetails.rbi +19 -0
  118. data/lib/moov/models/components/pushtocardoptions.rb +32 -0
  119. data/lib/moov/models/components/pushtocardoptions.rbi +13 -0
  120. data/lib/moov/models/components/pushtocardtransferprocessingdetails.rb +44 -0
  121. data/lib/moov/models/components/pushtocardtransferprocessingdetails.rbi +19 -0
  122. data/lib/moov/models/components/refundprocessingdetails.rb +32 -0
  123. data/lib/moov/models/components/refundprocessingdetails.rbi +13 -0
  124. data/lib/moov/models/components/schedulewindow.rb +40 -0
  125. data/lib/moov/models/components/schedulewindow.rbi +17 -0
  126. data/lib/moov/models/components/schedulewindowerror.rb +40 -0
  127. data/lib/moov/models/components/schedulewindowerror.rbi +17 -0
  128. data/lib/moov/models/components/schemebasicauth.rb +36 -0
  129. data/lib/moov/models/components/schemebasicauth.rbi +15 -0
  130. data/lib/moov/models/components/schemeoauth2auth.rb +40 -0
  131. data/lib/moov/models/components/schemeoauth2auth.rbi +17 -0
  132. data/lib/moov/models/components/sendfunds.rb +6 -2
  133. data/lib/moov/models/components/sendfunds.rbi +2 -0
  134. data/lib/moov/models/components/sendfundserror.rb +6 -2
  135. data/lib/moov/models/components/sendfundserror.rbi +2 -0
  136. data/lib/moov/models/components/sendfundswire.rb +32 -0
  137. data/lib/moov/models/components/sendfundswire.rbi +13 -0
  138. data/lib/moov/models/components/sendfundswireerror.rb +32 -0
  139. data/lib/moov/models/components/sendfundswireerror.rbi +13 -0
  140. data/lib/moov/models/components/transfer.rb +22 -22
  141. data/lib/moov/models/components/transfer.rbi +8 -8
  142. data/lib/moov/models/components/transferauthorization.rb +52 -0
  143. data/lib/moov/models/components/transferauthorization.rbi +23 -0
  144. data/lib/moov/models/components/transferdestination.rb +5 -17
  145. data/lib/moov/models/components/transferdestination.rbi +0 -6
  146. data/lib/moov/models/components/transferfeepaidby.rb +32 -0
  147. data/lib/moov/models/components/transferfeepaidby.rbi +13 -0
  148. data/lib/moov/models/components/transferpaymentmethodswallet.rb +1 -0
  149. data/lib/moov/models/components/transferprocessingdetails.rb +52 -0
  150. data/lib/moov/models/components/transferprocessingdetails.rbi +23 -0
  151. data/lib/moov/models/components/transferrailoptions.rb +48 -0
  152. data/lib/moov/models/components/transferrailoptions.rbi +21 -0
  153. data/lib/moov/models/components/transfersource.rb +9 -17
  154. data/lib/moov/models/components/transfersource.rbi +2 -6
  155. data/lib/moov/models/components/transferstatus.rb +1 -0
  156. data/lib/moov/models/components/transfertype.rb +25 -0
  157. data/lib/moov/models/components/transfertype.rbi +11 -0
  158. data/lib/moov/models/components/updateissuedcard.rb +6 -2
  159. data/lib/moov/models/components/updateissuedcard.rbi +2 -0
  160. data/lib/moov/models/components/updateissuingcontrols.rb +48 -0
  161. data/lib/moov/models/components/updateissuingcontrols.rbi +21 -0
  162. data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rb +36 -0
  163. data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rbi +15 -0
  164. data/lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rb +44 -0
  165. data/lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rbi +19 -0
  166. data/lib/moov/models/components/updateissuingcontrols_merchantrestrictions.rb +36 -0
  167. data/lib/moov/models/components/updateissuingcontrols_merchantrestrictions.rbi +15 -0
  168. data/lib/moov/models/components/updateissuingcontrolserror.rb +48 -0
  169. data/lib/moov/models/components/updateissuingcontrolserror.rbi +21 -0
  170. data/lib/moov/models/components/wallet.rb +1 -0
  171. data/lib/moov/models/components/wallettype.rb +2 -0
  172. data/lib/moov/models/components/webhookdatatransferstatus.rb +3 -0
  173. data/lib/moov/models/components.rb +55 -9
  174. data/lib/moov/models/errors/capturevalidationerror.rb +68 -0
  175. data/lib/moov/models/errors/capturevalidationerror.rbi +31 -0
  176. data/lib/moov/models/errors/cardacquiringrefund_error.rb +11 -7
  177. data/lib/moov/models/errors/cardacquiringrefund_error.rbi +4 -2
  178. data/lib/moov/models/errors/productrequestvalidationerror.rb +6 -2
  179. data/lib/moov/models/errors/productrequestvalidationerror.rbi +2 -0
  180. data/lib/moov/models/errors/transfer_error.rb +22 -22
  181. data/lib/moov/models/errors/transfer_error.rbi +8 -8
  182. data/lib/moov/models/errors/updateissuedcarderror.rb +6 -2
  183. data/lib/moov/models/errors/updateissuedcarderror.rbi +2 -0
  184. data/lib/moov/models/errors.rb +1 -0
  185. data/lib/moov/models/operations/createcancellation_request.rb +6 -2
  186. data/lib/moov/models/operations/createcancellation_request.rbi +2 -0
  187. data/lib/moov/models/operations/createcapture_request.rb +44 -0
  188. data/lib/moov/models/operations/createcapture_request.rbi +19 -0
  189. data/lib/moov/models/operations/createcapture_response.rb +48 -0
  190. data/lib/moov/models/operations/createcapture_response.rbi +21 -0
  191. data/lib/moov/models/operations/createreversal_request.rb +3 -3
  192. data/lib/moov/models/operations/deleteavatar_request.rb +32 -0
  193. data/lib/moov/models/operations/deleteavatar_request.rbi +13 -0
  194. data/lib/moov/models/operations/deleteavatar_response.rb +44 -0
  195. data/lib/moov/models/operations/deleteavatar_response.rbi +19 -0
  196. data/lib/moov/models/operations/deleteavatar_security.rb +36 -0
  197. data/lib/moov/models/operations/deleteavatar_security.rbi +15 -0
  198. data/lib/moov/models/operations/getcapture_request.rb +40 -0
  199. data/lib/moov/models/operations/getcapture_request.rbi +17 -0
  200. data/lib/moov/models/operations/getcapture_response.rb +48 -0
  201. data/lib/moov/models/operations/getcapture_response.rbi +21 -0
  202. data/lib/moov/models/operations/initiaterefund_request.rb +6 -6
  203. data/lib/moov/models/operations/initiaterefund_request.rbi +2 -2
  204. data/lib/moov/models/operations/listcaptures_request.rb +36 -0
  205. data/lib/moov/models/operations/listcaptures_request.rbi +15 -0
  206. data/lib/moov/models/operations/listcaptures_response.rb +48 -0
  207. data/lib/moov/models/operations/listcaptures_response.rbi +21 -0
  208. data/lib/moov/models/operations/listissuingmerchantcategories_response.rb +48 -0
  209. data/lib/moov/models/operations/listissuingmerchantcategories_response.rbi +21 -0
  210. data/lib/moov/models/operations/listproductcategories_response.rb +48 -0
  211. data/lib/moov/models/operations/listproductcategories_response.rbi +21 -0
  212. data/lib/moov/models/operations/listproducts_request.rb +8 -2
  213. data/lib/moov/models/operations/listproducts_request.rbi +2 -0
  214. data/lib/moov/models/operations/listtransfers_request.rb +14 -2
  215. data/lib/moov/models/operations/listtransfers_request.rbi +6 -0
  216. data/lib/moov/models/operations/uploadavatar_request.rb +36 -0
  217. data/lib/moov/models/operations/uploadavatar_request.rbi +15 -0
  218. data/lib/moov/models/operations/uploadavatar_response.rb +44 -0
  219. data/lib/moov/models/operations/uploadavatar_response.rbi +19 -0
  220. data/lib/moov/models/operations/uploadavatar_security.rb +36 -0
  221. data/lib/moov/models/operations/uploadavatar_security.rbi +15 -0
  222. data/lib/moov/models/operations.rb +14 -0
  223. data/lib/moov/products.rb +113 -8
  224. data/lib/moov/sdk_hooks/clientcredentials.rb +386 -0
  225. data/lib/moov/sdk_hooks/hooks.rb +6 -0
  226. data/lib/moov/sdk_hooks/oauth2scopes.rb +18 -0
  227. data/lib/moov/sdkconfiguration.rb +3 -3
  228. data/lib/moov/transfers.rb +434 -5
  229. data/lib/moov_ruby.rb +1 -1
  230. metadata +144 -20
  231. data/lib/moov/models/components/achtransactiondetails.rb +0 -92
  232. data/lib/moov/models/components/achtransactiondetails.rbi +0 -43
  233. data/lib/moov/models/components/achtransactionstatus.rb +0 -24
  234. data/lib/moov/models/components/cardacquiringdispute.rb +0 -40
  235. data/lib/moov/models/components/cardacquiringdispute.rbi +0 -17
  236. data/lib/moov/models/components/cardtransactiondetails.rb +0 -93
  237. data/lib/moov/models/components/cardtransactiondetails.rbi +0 -41
  238. data/lib/moov/models/components/cardtransactionstatus.rb +0 -24
  239. data/lib/moov/models/components/instantbanktransactiondetails.rb +0 -64
  240. data/lib/moov/models/components/instantbanktransactiondetails.rbi +0 -29
  241. data/lib/moov/models/components/instantbanktransactionstatus.rb +0 -21
  242. data/lib/moov/models/components/instantbanktransactionstatus.rbi +0 -11
  243. data/lib/moov/models/components/refundcarddetails.rb +0 -56
  244. data/lib/moov/models/components/refundcarddetails.rbi +0 -25
@@ -10,6 +10,8 @@ end
10
10
  class Moov::Models::Errors::TransferError
11
11
  def transfer_id(); end
12
12
  def transfer_id=(str_); end
13
+ def transfer_type(); end
14
+ def transfer_type=(str_); end
13
15
  def created_on(); end
14
16
  def created_on=(str_); end
15
17
  def source(); end
@@ -20,6 +22,10 @@ class Moov::Models::Errors::TransferError
20
22
  def status=(str_); end
21
23
  def amount(); end
22
24
  def amount=(str_); end
25
+ def options(); end
26
+ def options=(str_); end
27
+ def processing_details(); end
28
+ def processing_details=(str_); end
23
29
  def completed_on(); end
24
30
  def completed_on=(str_); end
25
31
  def failure_reason(); end
@@ -32,24 +38,16 @@ class Moov::Models::Errors::TransferError
32
38
  def facilitator_fee=(str_); end
33
39
  def moov_fee(); end
34
40
  def moov_fee=(str_); end
35
- def moov_fee_decimal(); end
36
- def moov_fee_decimal=(str_); end
37
41
  def moov_fee_details(); end
38
42
  def moov_fee_details=(str_); end
39
43
  def moov_fees(); end
40
44
  def moov_fees=(str_); end
41
45
  def group_id(); end
42
46
  def group_id=(str_); end
43
- def cancellations(); end
44
- def cancellations=(str_); end
45
47
  def refunded_amount(); end
46
48
  def refunded_amount=(str_); end
47
- def refunds(); end
48
- def refunds=(str_); end
49
49
  def disputed_amount(); end
50
50
  def disputed_amount=(str_); end
51
- def disputes(); end
52
- def disputes=(str_); end
53
51
  def sweep_id(); end
54
52
  def sweep_id=(str_); end
55
53
  def schedule_id(); end
@@ -66,6 +64,8 @@ class Moov::Models::Errors::TransferError
66
64
  def invoice_id=(str_); end
67
65
  def amount_details(); end
68
66
  def amount_details=(str_); end
67
+ def authorization(); end
68
+ def authorization=(str_); end
69
69
  def raw_response(); end
70
70
  def raw_response=(str_); end
71
71
  end
@@ -20,15 +20,18 @@ module Moov
20
20
  field :metadata, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('metadata') } }
21
21
 
22
22
  field :billing_address, Crystalline::Nilable.new(Models::Components::AddressError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('billingAddress') } }
23
+
24
+ field :controls, Crystalline::Nilable.new(Models::Components::UpdateIssuingControlsError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('controls') } }
23
25
  # Raw HTTP response; suitable for custom response parsing
24
26
  field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
25
27
 
26
- sig { params(state: T.nilable(::String), nickname: T.nilable(::String), metadata: T.nilable(::String), billing_address: T.nilable(Models::Components::AddressError), raw_response: T.nilable(::Faraday::Response)).void }
27
- def initialize(state: nil, nickname: nil, metadata: nil, billing_address: nil, raw_response: nil)
28
+ sig { params(state: T.nilable(::String), nickname: T.nilable(::String), metadata: T.nilable(::String), billing_address: T.nilable(Models::Components::AddressError), controls: T.nilable(Models::Components::UpdateIssuingControlsError), raw_response: T.nilable(::Faraday::Response)).void }
29
+ def initialize(state: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil, raw_response: nil)
28
30
  @state = state
29
31
  @nickname = nickname
30
32
  @metadata = metadata
31
33
  @billing_address = billing_address
34
+ @controls = controls
32
35
  @raw_response = raw_response
33
36
  end
34
37
 
@@ -39,6 +42,7 @@ module Moov
39
42
  return false unless @nickname == other.nickname
40
43
  return false unless @metadata == other.metadata
41
44
  return false unless @billing_address == other.billing_address
45
+ return false unless @controls == other.controls
42
46
  return false unless @raw_response == other.raw_response
43
47
  true
44
48
  end
@@ -16,6 +16,8 @@ class Moov::Models::Errors::UpdateIssuedCardError
16
16
  def metadata=(str_); end
17
17
  def billing_address(); end
18
18
  def billing_address=(str_); end
19
+ def controls(); end
20
+ def controls=(str_); end
19
21
  def raw_response(); end
20
22
  def raw_response=(str_); end
21
23
  end
@@ -13,6 +13,7 @@ module Moov
13
13
  autoload :AuthTokenRequestError, 'moov/models/errors/authtokenrequesterror.rb'
14
14
  autoload :BankAccountValidationError, 'moov/models/errors/bankaccountvalidationerror.rb'
15
15
  autoload :BrandValidationError, 'moov/models/errors/brandvalidationerror.rb'
16
+ autoload :CaptureValidationError, 'moov/models/errors/capturevalidationerror.rb'
16
17
  autoload :CardAcquiringRefundError, 'moov/models/errors/cardacquiringrefund_error.rb'
17
18
  autoload :CardMetadataRequestError, 'moov/models/errors/cardmetadatarequesterror.rb'
18
19
  autoload :ConnectAccountRequestValidationError, 'moov/models/errors/connectaccountrequestvalidationerror.rb'
@@ -17,10 +17,13 @@ module Moov
17
17
  # The transfer ID to cancel.
18
18
  field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
19
19
 
20
- sig { params(account_id: ::String, transfer_id: ::String).void }
21
- def initialize(account_id:, transfer_id:)
20
+ field :create_cancellation, Models::Components::CreateCancellation, { 'request': { 'media_type': 'application/json' } }
21
+
22
+ sig { params(account_id: ::String, transfer_id: ::String, create_cancellation: Models::Components::CreateCancellation).void }
23
+ def initialize(account_id:, transfer_id:, create_cancellation:)
22
24
  @account_id = account_id
23
25
  @transfer_id = transfer_id
26
+ @create_cancellation = create_cancellation
24
27
  end
25
28
 
26
29
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -28,6 +31,7 @@ module Moov
28
31
  return false unless other.is_a? self.class
29
32
  return false unless @account_id == other.account_id
30
33
  return false unless @transfer_id == other.transfer_id
34
+ return false unless @create_cancellation == other.create_cancellation
31
35
  true
32
36
  end
33
37
  end
@@ -12,4 +12,6 @@ class Moov::Models::Operations::CreateCancellationRequest
12
12
  def account_id=(str_); end
13
13
  def transfer_id(); end
14
14
  def transfer_id=(str_); end
15
+ def create_cancellation(); end
16
+ def create_cancellation=(str_); end
15
17
  end
@@ -0,0 +1,44 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+ class CreateCaptureRequest
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # Prevents duplicate captures from being created.
16
+ field :x_idempotency_key, ::String, { 'header': { 'field_name': 'x-idempotency-key', 'style': 'simple', 'explode': false } }
17
+ # The merchant's Moov account ID.
18
+ field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
19
+ # Identifier for the transfer.
20
+ field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
21
+
22
+ field :create_capture, Models::Components::CreateCapture, { 'request': { 'media_type': 'application/json' } }
23
+
24
+ sig { params(x_idempotency_key: ::String, account_id: ::String, transfer_id: ::String, create_capture: Models::Components::CreateCapture).void }
25
+ def initialize(x_idempotency_key:, account_id:, transfer_id:, create_capture:)
26
+ @x_idempotency_key = x_idempotency_key
27
+ @account_id = account_id
28
+ @transfer_id = transfer_id
29
+ @create_capture = create_capture
30
+ end
31
+
32
+ sig { params(other: T.untyped).returns(T::Boolean) }
33
+ def ==(other)
34
+ return false unless other.is_a? self.class
35
+ return false unless @x_idempotency_key == other.x_idempotency_key
36
+ return false unless @account_id == other.account_id
37
+ return false unless @transfer_id == other.transfer_id
38
+ return false unless @create_capture == other.create_capture
39
+ true
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::CreateCaptureRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::CreateCaptureRequest
11
+ def x_idempotency_key(); end
12
+ def x_idempotency_key=(str_); end
13
+ def account_id(); end
14
+ def account_id=(str_); end
15
+ def transfer_id(); end
16
+ def transfer_id=(str_); end
17
+ def create_capture(); end
18
+ def create_capture=(str_); end
19
+ end
@@ -0,0 +1,48 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+ class CreateCaptureResponse
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # HTTP response content type for this operation
16
+ field :content_type, ::String
17
+ # HTTP response status code for this operation
18
+ field :status_code, ::Integer
19
+ # Raw HTTP response; suitable for custom response parsing
20
+ field :raw_response, ::Faraday::Response
21
+
22
+ field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
23
+ # The resource was successfully created.
24
+ field :capture, Crystalline::Nilable.new(Models::Components::Capture)
25
+
26
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], capture: T.nilable(Models::Components::Capture)).void }
27
+ def initialize(content_type:, status_code:, raw_response:, headers:, capture: nil)
28
+ @content_type = content_type
29
+ @status_code = status_code
30
+ @raw_response = raw_response
31
+ @headers = headers
32
+ @capture = capture
33
+ end
34
+
35
+ sig { params(other: T.untyped).returns(T::Boolean) }
36
+ def ==(other)
37
+ return false unless other.is_a? self.class
38
+ return false unless @content_type == other.content_type
39
+ return false unless @status_code == other.status_code
40
+ return false unless @raw_response == other.raw_response
41
+ return false unless @headers == other.headers
42
+ return false unless @capture == other.capture
43
+ true
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,21 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::CreateCaptureResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::CreateCaptureResponse
11
+ def content_type(); end
12
+ def content_type=(str_); end
13
+ def status_code(); end
14
+ def status_code=(str_); end
15
+ def raw_response(); end
16
+ def raw_response=(str_); end
17
+ def headers(); end
18
+ def headers=(str_); end
19
+ def capture(); end
20
+ def capture=(str_); end
21
+ end
@@ -19,10 +19,10 @@ module Moov
19
19
  # The transfer ID to reverse.
20
20
  field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
21
21
 
22
- field :create_reversal, Crystalline::Nilable.new(Models::Components::CreateReversal), { 'request': { 'media_type': 'application/json' } }
22
+ field :create_reversal, Models::Components::CreateReversal, { 'request': { 'media_type': 'application/json' } }
23
23
 
24
- sig { params(x_idempotency_key: ::String, account_id: ::String, transfer_id: ::String, create_reversal: T.nilable(Models::Components::CreateReversal)).void }
25
- def initialize(x_idempotency_key:, account_id:, transfer_id:, create_reversal: nil)
24
+ sig { params(x_idempotency_key: ::String, account_id: ::String, transfer_id: ::String, create_reversal: Models::Components::CreateReversal).void }
25
+ def initialize(x_idempotency_key:, account_id:, transfer_id:, create_reversal:)
26
26
  @x_idempotency_key = x_idempotency_key
27
27
  @account_id = account_id
28
28
  @transfer_id = transfer_id
@@ -0,0 +1,32 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+ class DeleteAvatarRequest
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # The accountID to delete the avatar for. Only accountID values are accepted for writes.
16
+ field :unique_id, ::String, { 'path_param': { 'field_name': 'uniqueID', 'style': 'simple', 'explode': false } }
17
+
18
+ sig { params(unique_id: ::String).void }
19
+ def initialize(unique_id:)
20
+ @unique_id = unique_id
21
+ end
22
+
23
+ sig { params(other: T.untyped).returns(T::Boolean) }
24
+ def ==(other)
25
+ return false unless other.is_a? self.class
26
+ return false unless @unique_id == other.unique_id
27
+ true
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,13 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::DeleteAvatarRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::DeleteAvatarRequest
11
+ def unique_id(); end
12
+ def unique_id=(str_); end
13
+ end
@@ -0,0 +1,44 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+ class DeleteAvatarResponse
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # HTTP response content type for this operation
16
+ field :content_type, ::String
17
+ # HTTP response status code for this operation
18
+ field :status_code, ::Integer
19
+ # Raw HTTP response; suitable for custom response parsing
20
+ field :raw_response, ::Faraday::Response
21
+
22
+ field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
23
+
24
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]]).void }
25
+ def initialize(content_type:, status_code:, raw_response:, headers:)
26
+ @content_type = content_type
27
+ @status_code = status_code
28
+ @raw_response = raw_response
29
+ @headers = headers
30
+ end
31
+
32
+ sig { params(other: T.untyped).returns(T::Boolean) }
33
+ def ==(other)
34
+ return false unless other.is_a? self.class
35
+ return false unless @content_type == other.content_type
36
+ return false unless @status_code == other.status_code
37
+ return false unless @raw_response == other.raw_response
38
+ return false unless @headers == other.headers
39
+ true
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::DeleteAvatarResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::DeleteAvatarResponse
11
+ def content_type(); end
12
+ def content_type=(str_); end
13
+ def status_code(); end
14
+ def status_code=(str_); end
15
+ def raw_response(); end
16
+ def raw_response=(str_); end
17
+ def headers(); end
18
+ def headers=(str_); end
19
+ end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+ class DeleteAvatarSecurity
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+
16
+ field :basic_auth, Crystalline::Nilable.new(Models::Components::SchemeBasicAuth), { 'security': { 'scheme': true, 'type': 'http', 'sub_type': 'basic' } }
17
+
18
+ field :o_auth2_auth, Crystalline::Nilable.new(Models::Components::SchemeOAuth2Auth), { 'security': { 'scheme': true, 'type': 'oauth2', 'sub_type': 'client_credentials' } }
19
+
20
+ sig { params(basic_auth: T.nilable(Models::Components::SchemeBasicAuth), o_auth2_auth: T.nilable(Models::Components::SchemeOAuth2Auth)).void }
21
+ def initialize(basic_auth: nil, o_auth2_auth: nil)
22
+ @basic_auth = basic_auth
23
+ @o_auth2_auth = o_auth2_auth
24
+ end
25
+
26
+ sig { params(other: T.untyped).returns(T::Boolean) }
27
+ def ==(other)
28
+ return false unless other.is_a? self.class
29
+ return false unless @basic_auth == other.basic_auth
30
+ return false unless @o_auth2_auth == other.o_auth2_auth
31
+ true
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::DeleteAvatarSecurity
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::DeleteAvatarSecurity
11
+ def basic_auth(); end
12
+ def basic_auth=(str_); end
13
+ def o_auth2_auth(); end
14
+ def o_auth2_auth=(str_); end
15
+ end
@@ -0,0 +1,40 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+ class GetCaptureRequest
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # The merchant's Moov account ID.
16
+ field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
17
+ # Identifier for the transfer.
18
+ field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
19
+ # Identifier for the capture.
20
+ field :capture_id, ::String, { 'path_param': { 'field_name': 'captureID', 'style': 'simple', 'explode': false } }
21
+
22
+ sig { params(account_id: ::String, transfer_id: ::String, capture_id: ::String).void }
23
+ def initialize(account_id:, transfer_id:, capture_id:)
24
+ @account_id = account_id
25
+ @transfer_id = transfer_id
26
+ @capture_id = capture_id
27
+ end
28
+
29
+ sig { params(other: T.untyped).returns(T::Boolean) }
30
+ def ==(other)
31
+ return false unless other.is_a? self.class
32
+ return false unless @account_id == other.account_id
33
+ return false unless @transfer_id == other.transfer_id
34
+ return false unless @capture_id == other.capture_id
35
+ true
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,17 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::GetCaptureRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::GetCaptureRequest
11
+ def account_id(); end
12
+ def account_id=(str_); end
13
+ def transfer_id(); end
14
+ def transfer_id=(str_); end
15
+ def capture_id(); end
16
+ def capture_id=(str_); end
17
+ end
@@ -0,0 +1,48 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+ class GetCaptureResponse
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # HTTP response content type for this operation
16
+ field :content_type, ::String
17
+ # HTTP response status code for this operation
18
+ field :status_code, ::Integer
19
+ # Raw HTTP response; suitable for custom response parsing
20
+ field :raw_response, ::Faraday::Response
21
+
22
+ field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
23
+ # The request completed successfully.
24
+ field :capture, Crystalline::Nilable.new(Models::Components::Capture)
25
+
26
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], capture: T.nilable(Models::Components::Capture)).void }
27
+ def initialize(content_type:, status_code:, raw_response:, headers:, capture: nil)
28
+ @content_type = content_type
29
+ @status_code = status_code
30
+ @raw_response = raw_response
31
+ @headers = headers
32
+ @capture = capture
33
+ end
34
+
35
+ sig { params(other: T.untyped).returns(T::Boolean) }
36
+ def ==(other)
37
+ return false unless other.is_a? self.class
38
+ return false unless @content_type == other.content_type
39
+ return false unless @status_code == other.status_code
40
+ return false unless @raw_response == other.raw_response
41
+ return false unless @headers == other.headers
42
+ return false unless @capture == other.capture
43
+ true
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,21 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::GetCaptureResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::GetCaptureResponse
11
+ def content_type(); end
12
+ def content_type=(str_); end
13
+ def status_code(); end
14
+ def status_code=(str_); end
15
+ def raw_response(); end
16
+ def raw_response=(str_); end
17
+ def headers(); end
18
+ def headers=(str_); end
19
+ def capture(); end
20
+ def capture=(str_); end
21
+ end
@@ -18,19 +18,19 @@ module Moov
18
18
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
19
19
  # Identifier for the transfer.
20
20
  field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
21
+
22
+ field :create_refund, Models::Components::CreateRefund, { 'request': { 'media_type': 'application/json' } }
21
23
  # Optional header that indicates whether to return a synchronous response that includes full transfer and rail-specific details or an
22
24
  # asynchronous response indicating the transfer was created (this is the default response if the header is omitted). A timeout will occur after 15 seconds.
23
25
  field :x_wait_for, Crystalline::Nilable.new(Models::Components::TransferWaitFor), { 'header': { 'field_name': 'x-wait-for', 'style': 'simple', 'explode': false } }
24
26
 
25
- field :create_refund, Crystalline::Nilable.new(Models::Components::CreateRefund), { 'request': { 'media_type': 'application/json' } }
26
-
27
- sig { params(x_idempotency_key: ::String, account_id: ::String, transfer_id: ::String, x_wait_for: T.nilable(Models::Components::TransferWaitFor), create_refund: T.nilable(Models::Components::CreateRefund)).void }
28
- def initialize(x_idempotency_key:, account_id:, transfer_id:, x_wait_for: nil, create_refund: nil)
27
+ sig { params(x_idempotency_key: ::String, account_id: ::String, transfer_id: ::String, create_refund: Models::Components::CreateRefund, x_wait_for: T.nilable(Models::Components::TransferWaitFor)).void }
28
+ def initialize(x_idempotency_key:, account_id:, transfer_id:, create_refund:, x_wait_for: nil)
29
29
  @x_idempotency_key = x_idempotency_key
30
30
  @account_id = account_id
31
31
  @transfer_id = transfer_id
32
- @x_wait_for = x_wait_for
33
32
  @create_refund = create_refund
33
+ @x_wait_for = x_wait_for
34
34
  end
35
35
 
36
36
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -39,8 +39,8 @@ module Moov
39
39
  return false unless @x_idempotency_key == other.x_idempotency_key
40
40
  return false unless @account_id == other.account_id
41
41
  return false unless @transfer_id == other.transfer_id
42
- return false unless @x_wait_for == other.x_wait_for
43
42
  return false unless @create_refund == other.create_refund
43
+ return false unless @x_wait_for == other.x_wait_for
44
44
  true
45
45
  end
46
46
  end
@@ -14,8 +14,8 @@ class Moov::Models::Operations::InitiateRefundRequest
14
14
  def account_id=(str_); end
15
15
  def transfer_id(); end
16
16
  def transfer_id=(str_); end
17
- def x_wait_for(); end
18
- def x_wait_for=(str_); end
19
17
  def create_refund(); end
20
18
  def create_refund=(str_); end
19
+ def x_wait_for(); end
20
+ def x_wait_for=(str_); end
21
21
  end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+ class ListCapturesRequest
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # The merchant's Moov account ID.
16
+ field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
17
+ # Identifier for the transfer.
18
+ field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
19
+
20
+ sig { params(account_id: ::String, transfer_id: ::String).void }
21
+ def initialize(account_id:, transfer_id:)
22
+ @account_id = account_id
23
+ @transfer_id = transfer_id
24
+ end
25
+
26
+ sig { params(other: T.untyped).returns(T::Boolean) }
27
+ def ==(other)
28
+ return false unless other.is_a? self.class
29
+ return false unless @account_id == other.account_id
30
+ return false unless @transfer_id == other.transfer_id
31
+ true
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end