moov_ruby 26.10.0.pre.dev.8 → 26.10.0.pre.dev.10
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.
- checksums.yaml +4 -4
- data/lib/moov/card_issuing.rb +540 -8
- data/lib/moov/invoices.rb +180 -0
- data/lib/moov/issuing_transactions.rb +123 -0
- data/lib/moov/models/components/authorizationsimulationasyncresponse.rb +32 -0
- data/lib/moov/models/components/authorizationsimulationasyncresponse.rbi +13 -0
- data/lib/moov/models/components/capability.rb +2 -0
- data/lib/moov/models/components/capabilityid.rb +3 -0
- data/lib/moov/models/components/capture.rb +2 -6
- data/lib/moov/models/components/capture.rbi +0 -2
- data/lib/moov/models/components/capturestatus.rb +1 -0
- data/lib/moov/models/components/createauthorizationsimulation.rb +40 -0
- data/lib/moov/models/components/createauthorizationsimulation.rbi +17 -0
- data/lib/moov/models/components/createcapture.rb +2 -6
- data/lib/moov/models/components/createcapture.rbi +0 -2
- data/lib/moov/models/components/{createcancellation.rb → createclearingsimulation.rb} +5 -7
- data/lib/moov/models/components/{createcancellation.rbi → createclearingsimulation.rbi} +2 -2
- data/lib/moov/models/components/createinvoice.rb +10 -2
- data/lib/moov/models/components/createinvoice.rbi +4 -0
- data/lib/moov/models/components/createinvoicenotification.rb +32 -0
- data/lib/moov/models/components/createinvoicenotification.rbi +13 -0
- data/lib/moov/models/components/createsweepconfig.rb +6 -2
- data/lib/moov/models/components/createsweepconfig.rbi +2 -0
- data/lib/moov/models/components/createtransfer.rb +6 -2
- data/lib/moov/models/components/createtransfer.rbi +2 -0
- data/lib/moov/models/components/createtransferdestination.rb +2 -10
- data/lib/moov/models/components/createtransferdestination.rbi +0 -4
- data/lib/moov/models/components/createtransferrailoptions.rb +48 -0
- data/lib/moov/models/components/createtransferrailoptions.rbi +21 -0
- data/lib/moov/models/components/createtransferresponse.rb +27 -0
- data/lib/moov/models/components/createtransferresponse.rbi +11 -0
- data/lib/moov/models/components/createtransfersource.rb +2 -10
- data/lib/moov/models/components/createtransfersource.rbi +0 -4
- data/lib/moov/models/components/fullissuedcard.rb +6 -4
- data/lib/moov/models/components/invoice.rb +6 -2
- data/lib/moov/models/components/invoice.rbi +2 -0
- data/lib/moov/models/components/invoicenotificationlimitedchannel.rb +36 -0
- data/lib/moov/models/components/invoicenotificationlimitedchannel.rbi +15 -0
- data/lib/moov/models/components/invoicepaymentoptions.rb +40 -0
- data/lib/moov/models/components/invoicepaymentoptions.rbi +17 -0
- data/lib/moov/models/components/invoicepaymentoptionserror.rb +40 -0
- data/lib/moov/models/components/invoicepaymentoptionserror.rbi +17 -0
- data/lib/moov/models/components/invoicepaymentoptionsupdate.rb +40 -0
- data/lib/moov/models/components/invoicepaymentoptionsupdate.rbi +17 -0
- data/lib/moov/models/components/issuedcard.rb +6 -4
- data/lib/moov/models/components/issuedcardauthorization.rb +6 -2
- data/lib/moov/models/components/issuedcardauthorization.rbi +2 -0
- data/lib/moov/models/components/issuedcardstate.rb +6 -4
- data/lib/moov/models/components/issuedcardtransaction.rb +6 -2
- data/lib/moov/models/components/issuedcardtransaction.rbi +2 -0
- data/lib/moov/models/components/issuedcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/issuingcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/notificationchannel.rb +18 -0
- data/lib/moov/models/components/notificationchannel.rbi +11 -0
- data/lib/moov/models/components/patchsweepconfig.rb +6 -2
- data/lib/moov/models/components/patchsweepconfig.rbi +2 -0
- data/lib/moov/models/components/pushtocardoptions.rb +6 -2
- data/lib/moov/models/components/pushtocardoptions.rbi +2 -0
- data/lib/moov/models/components/schedule.rb +40 -0
- data/lib/moov/models/components/schedule.rbi +17 -0
- data/lib/moov/models/components/schedulewindow.rb +1 -1
- data/lib/moov/models/components/simulationissuingmerchantdata.rb +56 -0
- data/lib/moov/models/components/simulationissuingmerchantdata.rbi +25 -0
- data/lib/moov/models/components/simulationissuingmerchantdatavalidationerror.rb +56 -0
- data/lib/moov/models/components/simulationissuingmerchantdatavalidationerror.rbi +25 -0
- data/lib/moov/models/components/sweepconfig.rb +6 -2
- data/lib/moov/models/components/sweepconfig.rbi +2 -0
- data/lib/moov/models/components/sweepconfigschedule.rb +40 -0
- data/lib/moov/models/components/sweepconfigschedule.rbi +17 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rb +40 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rbi +17 -0
- data/lib/moov/models/components/sweepschedulefrequency.rb +18 -0
- data/lib/moov/models/components/sweepschedulefrequency.rbi +11 -0
- data/lib/moov/models/components/updateinvoice.rb +6 -2
- data/lib/moov/models/components/updateinvoice.rbi +2 -0
- data/lib/moov/models/components/updateissuedcard.rb +3 -3
- data/lib/moov/models/components/updateissuedcardstate.rb +3 -3
- data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/upsertunderwriting.rb +1 -1
- data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -0
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +2 -0
- data/lib/moov/models/components.rb +17 -1
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rb +44 -0
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rbi +19 -0
- data/lib/moov/models/errors/capturevalidationerror.rb +2 -6
- data/lib/moov/models/errors/capturevalidationerror.rbi +0 -2
- data/lib/moov/models/errors/clearingsimulationvalidationerror.rb +36 -0
- data/lib/moov/models/errors/clearingsimulationvalidationerror.rbi +15 -0
- data/lib/moov/models/errors/createinvoiceerror.rb +10 -2
- data/lib/moov/models/errors/createinvoiceerror.rbi +4 -0
- data/lib/moov/models/errors/createsweepconfigerror.rb +6 -2
- data/lib/moov/models/errors/createsweepconfigerror.rbi +2 -0
- data/lib/moov/models/errors/invoicenotificationerror.rb +36 -0
- data/lib/moov/models/errors/invoicenotificationerror.rbi +15 -0
- data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +44 -0
- data/lib/moov/models/errors/invoicenotificationratelimitederror.rbi +19 -0
- data/lib/moov/models/errors/listtransfersvalidationerror.rb +6 -2
- data/lib/moov/models/errors/listtransfersvalidationerror.rbi +2 -0
- data/lib/moov/models/errors/patchsweepconfigerror.rb +6 -2
- data/lib/moov/models/errors/patchsweepconfigerror.rbi +2 -0
- data/lib/moov/models/errors/updateinvoiceerror.rb +6 -2
- data/lib/moov/models/errors/updateinvoiceerror.rbi +2 -0
- data/lib/moov/models/errors.rb +4 -0
- data/lib/moov/models/operations/createauthorizationsimulation_request.rb +36 -0
- data/lib/moov/models/operations/createauthorizationsimulation_request.rbi +15 -0
- data/lib/moov/models/operations/createauthorizationsimulation_response.rb +52 -0
- data/lib/moov/models/operations/createauthorizationsimulation_response.rbi +23 -0
- data/lib/moov/models/operations/createclearingsimulation_request.rb +40 -0
- data/lib/moov/models/operations/createclearingsimulation_request.rbi +17 -0
- data/lib/moov/models/operations/createclearingsimulation_response.rb +52 -0
- data/lib/moov/models/operations/createclearingsimulation_response.rbi +23 -0
- data/lib/moov/models/operations/createinvoicenotification_request.rb +40 -0
- data/lib/moov/models/operations/createinvoicenotification_request.rbi +17 -0
- data/lib/moov/models/operations/{createcancellation_response.rb → createinvoicenotification_response.rb} +3 -7
- data/lib/moov/models/operations/{createcancellation_response.rbi → createinvoicenotification_response.rbi} +2 -4
- data/lib/moov/models/operations/createreversalsimulation_request.rb +36 -0
- data/lib/moov/models/operations/createreversalsimulation_request.rbi +15 -0
- data/lib/moov/models/operations/createreversalsimulation_response.rb +52 -0
- data/lib/moov/models/operations/createreversalsimulation_response.rbi +23 -0
- data/lib/moov/models/operations/createtransfer_response.rb +5 -5
- data/lib/moov/models/operations/createtransfer_response.rbi +2 -2
- data/lib/moov/models/operations/disablecapability_request.rb +2 -0
- data/lib/moov/models/operations/getcapability_request.rb +2 -0
- data/lib/moov/models/operations/getissuedcardactivity_request.rb +36 -0
- data/lib/moov/models/operations/getissuedcardactivity_request.rbi +15 -0
- data/lib/moov/models/operations/getissuedcardactivity_response.rb +48 -0
- data/lib/moov/models/operations/getissuedcardactivity_response.rbi +21 -0
- data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcards_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcards_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcardtransactions_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +2 -0
- data/lib/moov/models/operations/listtransfers_request.rb +7 -2
- data/lib/moov/models/operations/listtransfers_request.rbi +2 -0
- data/lib/moov/models/operations/listtransfers_response.rb +1 -1
- data/lib/moov/models/operations.rb +10 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/transfers.rb +9 -157
- metadata +64 -8
- data/lib/moov/models/operations/createcancellation_request.rb +0 -40
- data/lib/moov/models/operations/createcancellation_request.rbi +0 -17
data/lib/moov/transfers.rb
CHANGED
|
@@ -322,13 +322,13 @@ module Moov
|
|
|
322
322
|
response: http_response
|
|
323
323
|
)
|
|
324
324
|
response_data = http_response.env.response_body
|
|
325
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::CreatedTransfer)
|
|
325
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Union.new(Models::Components::CreatedTransfer, Models::Components::AsyncTransfer))
|
|
326
326
|
response = Models::Operations::CreateTransferResponse.new(
|
|
327
327
|
status_code: http_response.status,
|
|
328
328
|
content_type: content_type,
|
|
329
329
|
raw_response: http_response,
|
|
330
330
|
headers: http_response.headers,
|
|
331
|
-
|
|
331
|
+
create_transfer_response: T.unsafe(obj)
|
|
332
332
|
)
|
|
333
333
|
|
|
334
334
|
return response
|
|
@@ -448,7 +448,12 @@ module Moov
|
|
|
448
448
|
# When you run this request, you retrieve 200 transfers at a time. You can advance past a results set of 200 transfers by using the `skip` parameter (for example,
|
|
449
449
|
# if you set `skip`= 10, you will see a results set of 200 transfers after the first 10). If you are searching a high volume of transfers, the request will likely
|
|
450
450
|
# process very slowly. To achieve faster performance, restrict the data as much as you can by using the `StartDateTime` and `EndDateTime` parameters for a limited
|
|
451
|
-
# period of time. You can run multiple requests in smaller time window increments until you've retrieved all the transfers you need.
|
|
451
|
+
# period of time. You can run multiple requests in smaller time window increments until you've retrieved all the transfers you need. The maximum allowed value for
|
|
452
|
+
# `skip` is `200 000`.
|
|
453
|
+
#
|
|
454
|
+
# For large result sets, use cursor pagination instead of `skip`. When more transfers are available, the response includes an
|
|
455
|
+
# `X-Next-Cursor` header. Pass its value as the `cursor` query parameter, with the same filters and `count`, to retrieve the next page.
|
|
456
|
+
# `cursor` cannot be combined with a nonzero `skip`.
|
|
452
457
|
#
|
|
453
458
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
454
459
|
# you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
@@ -1000,160 +1005,6 @@ module Moov
|
|
|
1000
1005
|
end
|
|
1001
1006
|
|
|
1002
1007
|
|
|
1003
|
-
sig { params(create_cancellation: Models::Components::CreateCancellation, account_id: ::String, transfer_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateCancellationResponse) }
|
|
1004
|
-
def create_cancellation(create_cancellation:, account_id:, transfer_id:, timeout_ms: nil, http_headers: nil)
|
|
1005
|
-
# create_cancellation - Initiate a cancellation for a card, ACH, or queued transfer.
|
|
1006
|
-
#
|
|
1007
|
-
# In v2026.10 and later, an auth-capture `card-payment` transfer can be canceled before any captures exist.
|
|
1008
|
-
# For these transfers, a successful cancellation reduces `capturableAmount` without changing `authorizedAmount`.
|
|
1009
|
-
# For these transfers, a partial cancellation leaves the remaining `capturableAmount` available for capture.
|
|
1010
|
-
# To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
1011
|
-
# to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
1012
|
-
request = Models::Operations::CreateCancellationRequest.new(
|
|
1013
|
-
account_id: account_id,
|
|
1014
|
-
transfer_id: transfer_id,
|
|
1015
|
-
create_cancellation: create_cancellation
|
|
1016
|
-
)
|
|
1017
|
-
url, params = @sdk_configuration.get_server_details
|
|
1018
|
-
base_url = Utils.template_url(url, params)
|
|
1019
|
-
url = Utils.generate_url(
|
|
1020
|
-
Models::Operations::CreateCancellationRequest,
|
|
1021
|
-
base_url,
|
|
1022
|
-
'/accounts/{accountID}/transfers/{transferID}/cancellations',
|
|
1023
|
-
request
|
|
1024
|
-
)
|
|
1025
|
-
headers = {}
|
|
1026
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
1027
|
-
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_cancellation, :json)
|
|
1028
|
-
headers['content-type'] = req_content_type
|
|
1029
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
1030
|
-
|
|
1031
|
-
if form && !form.empty?
|
|
1032
|
-
body = Utils.encode_form(form)
|
|
1033
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
1034
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
1035
|
-
else
|
|
1036
|
-
body = data
|
|
1037
|
-
end
|
|
1038
|
-
headers['Accept'] = 'application/json'
|
|
1039
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1040
|
-
|
|
1041
|
-
security = @sdk_configuration.security_source&.call
|
|
1042
|
-
|
|
1043
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1044
|
-
timeout ||= @sdk_configuration.timeout
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
connection = @sdk_configuration.client
|
|
1048
|
-
|
|
1049
|
-
hook_ctx = SDKHooks::HookContext.new(
|
|
1050
|
-
config: @sdk_configuration,
|
|
1051
|
-
base_url: base_url,
|
|
1052
|
-
oauth2_scopes: nil,
|
|
1053
|
-
operation_id: 'createCancellation',
|
|
1054
|
-
security_source: @sdk_configuration.security_source
|
|
1055
|
-
)
|
|
1056
|
-
|
|
1057
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
1058
|
-
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
begin
|
|
1062
|
-
http_response = T.must(connection).post(url) do |req|
|
|
1063
|
-
req.body = body
|
|
1064
|
-
req.headers.merge!(headers)
|
|
1065
|
-
req.options.timeout = timeout unless timeout.nil?
|
|
1066
|
-
Utils.configure_request_security(req, security)
|
|
1067
|
-
http_headers&.each do |key, value|
|
|
1068
|
-
req.headers[key.to_s] = value
|
|
1069
|
-
end
|
|
1070
|
-
|
|
1071
|
-
@sdk_configuration.hooks.before_request(
|
|
1072
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
1073
|
-
hook_ctx: hook_ctx
|
|
1074
|
-
),
|
|
1075
|
-
request: req
|
|
1076
|
-
)
|
|
1077
|
-
end
|
|
1078
|
-
rescue StandardError => e
|
|
1079
|
-
error = e
|
|
1080
|
-
ensure
|
|
1081
|
-
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
1082
|
-
http_response = @sdk_configuration.hooks.after_error(
|
|
1083
|
-
error: error,
|
|
1084
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
1085
|
-
hook_ctx: hook_ctx
|
|
1086
|
-
),
|
|
1087
|
-
response: http_response
|
|
1088
|
-
)
|
|
1089
|
-
else
|
|
1090
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
1091
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1092
|
-
hook_ctx: hook_ctx
|
|
1093
|
-
),
|
|
1094
|
-
response: http_response
|
|
1095
|
-
)
|
|
1096
|
-
end
|
|
1097
|
-
|
|
1098
|
-
if http_response.nil?
|
|
1099
|
-
raise error if !error.nil?
|
|
1100
|
-
raise 'no response'
|
|
1101
|
-
end
|
|
1102
|
-
end
|
|
1103
|
-
|
|
1104
|
-
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1105
|
-
if Utils.match_status_code(http_response.status, ['200', '202'])
|
|
1106
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
1107
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
1108
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1109
|
-
hook_ctx: hook_ctx
|
|
1110
|
-
),
|
|
1111
|
-
response: http_response
|
|
1112
|
-
)
|
|
1113
|
-
response_data = http_response.env.response_body
|
|
1114
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Cancellation)
|
|
1115
|
-
response = Models::Operations::CreateCancellationResponse.new(
|
|
1116
|
-
status_code: http_response.status,
|
|
1117
|
-
content_type: content_type,
|
|
1118
|
-
raw_response: http_response,
|
|
1119
|
-
headers: http_response.headers,
|
|
1120
|
-
cancellation: T.unsafe(obj)
|
|
1121
|
-
)
|
|
1122
|
-
|
|
1123
|
-
return response
|
|
1124
|
-
else
|
|
1125
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
1126
|
-
end
|
|
1127
|
-
elsif Utils.match_status_code(http_response.status, ['400', '409', '422'])
|
|
1128
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
1129
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
1130
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1131
|
-
hook_ctx: hook_ctx
|
|
1132
|
-
),
|
|
1133
|
-
response: http_response
|
|
1134
|
-
)
|
|
1135
|
-
response_data = http_response.env.response_body
|
|
1136
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
1137
|
-
obj.raw_response = http_response
|
|
1138
|
-
raise obj
|
|
1139
|
-
else
|
|
1140
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
1141
|
-
end
|
|
1142
|
-
elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
|
|
1143
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1144
|
-
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
1145
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1146
|
-
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
1147
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1148
|
-
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
1149
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1150
|
-
else
|
|
1151
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
1152
|
-
|
|
1153
|
-
end
|
|
1154
|
-
end
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
1008
|
sig { params(account_id: ::String, transfer_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListCancellationsResponse) }
|
|
1158
1009
|
def list_cancellations(account_id:, transfer_id:, timeout_ms: nil, http_headers: nil)
|
|
1159
1010
|
# list_cancellations - Get a list of cancellations for a transfer.
|
|
@@ -1819,6 +1670,7 @@ module Moov
|
|
|
1819
1670
|
sig { params(request: Models::Operations::InitiateRefundRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::InitiateRefundResponse) }
|
|
1820
1671
|
def initiate_refund(request:, timeout_ms: nil, http_headers: nil)
|
|
1821
1672
|
# initiate_refund - Initiate a refund for a card transfer.
|
|
1673
|
+
# The `accountID` must identify the partner account for the transfer.
|
|
1822
1674
|
#
|
|
1823
1675
|
# **Use the [Cancel or refund a card transfer](https://docs.moov.io/api/money-movement/refunds/cancel/) endpoint for more comprehensive cancel and refund options.**
|
|
1824
1676
|
# See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/) guide for more information.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moov_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 26.10.0.pre.dev.
|
|
4
|
+
version: 26.10.0.pre.dev.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Speakeasy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -411,6 +411,8 @@ files:
|
|
|
411
411
|
- lib/moov/models/components/asynctransfer.rbi
|
|
412
412
|
- lib/moov/models/components/authmethod.rb
|
|
413
413
|
- lib/moov/models/components/authmethod.rbi
|
|
414
|
+
- lib/moov/models/components/authorizationsimulationasyncresponse.rb
|
|
415
|
+
- lib/moov/models/components/authorizationsimulationasyncresponse.rbi
|
|
414
416
|
- lib/moov/models/components/authtoken.rb
|
|
415
417
|
- lib/moov/models/components/authtoken.rbi
|
|
416
418
|
- lib/moov/models/components/authtokenrequest.rb
|
|
@@ -643,6 +645,8 @@ files:
|
|
|
643
645
|
- lib/moov/models/components/createaccounttype.rbi
|
|
644
646
|
- lib/moov/models/components/createapplepaysession.rb
|
|
645
647
|
- lib/moov/models/components/createapplepaysession.rbi
|
|
648
|
+
- lib/moov/models/components/createauthorizationsimulation.rb
|
|
649
|
+
- lib/moov/models/components/createauthorizationsimulation.rbi
|
|
646
650
|
- lib/moov/models/components/createbankaccountattestation.rb
|
|
647
651
|
- lib/moov/models/components/createbankaccountattestation.rbi
|
|
648
652
|
- lib/moov/models/components/createbusinesserror.rb
|
|
@@ -655,10 +659,10 @@ files:
|
|
|
655
659
|
- lib/moov/models/components/createbusinesserror_taxid.rbi
|
|
656
660
|
- lib/moov/models/components/createbusinessprofile.rb
|
|
657
661
|
- lib/moov/models/components/createbusinessprofile.rbi
|
|
658
|
-
- lib/moov/models/components/createcancellation.rb
|
|
659
|
-
- lib/moov/models/components/createcancellation.rbi
|
|
660
662
|
- lib/moov/models/components/createcapture.rb
|
|
661
663
|
- lib/moov/models/components/createcapture.rbi
|
|
664
|
+
- lib/moov/models/components/createclearingsimulation.rb
|
|
665
|
+
- lib/moov/models/components/createclearingsimulation.rbi
|
|
662
666
|
- lib/moov/models/components/createdtransfer.rb
|
|
663
667
|
- lib/moov/models/components/createdtransfer.rbi
|
|
664
668
|
- lib/moov/models/components/createevidencefilemultipart.rb
|
|
@@ -695,6 +699,8 @@ files:
|
|
|
695
699
|
- lib/moov/models/components/createinvoicelineitemsvalidationerror.rbi
|
|
696
700
|
- lib/moov/models/components/createinvoicelineitemvalidationerror.rb
|
|
697
701
|
- lib/moov/models/components/createinvoicelineitemvalidationerror.rbi
|
|
702
|
+
- lib/moov/models/components/createinvoicenotification.rb
|
|
703
|
+
- lib/moov/models/components/createinvoicenotification.rbi
|
|
698
704
|
- lib/moov/models/components/createinvoicepayment.rb
|
|
699
705
|
- lib/moov/models/components/createinvoicepayment.rbi
|
|
700
706
|
- lib/moov/models/components/createpaymentlink.rb
|
|
@@ -785,6 +791,10 @@ files:
|
|
|
785
791
|
- lib/moov/models/components/createtransferlineitemvalidationerror.rbi
|
|
786
792
|
- lib/moov/models/components/createtransferoptions.rb
|
|
787
793
|
- lib/moov/models/components/createtransferoptions.rbi
|
|
794
|
+
- lib/moov/models/components/createtransferrailoptions.rb
|
|
795
|
+
- lib/moov/models/components/createtransferrailoptions.rbi
|
|
796
|
+
- lib/moov/models/components/createtransferresponse.rb
|
|
797
|
+
- lib/moov/models/components/createtransferresponse.rbi
|
|
788
798
|
- lib/moov/models/components/createtransfersource.rb
|
|
789
799
|
- lib/moov/models/components/createtransfersource.rbi
|
|
790
800
|
- lib/moov/models/components/createtransfersourceach.rb
|
|
@@ -1013,8 +1023,16 @@ files:
|
|
|
1013
1023
|
- lib/moov/models/components/invoicelineitemsvalidationerror.rbi
|
|
1014
1024
|
- lib/moov/models/components/invoicelineitemvalidationerror.rb
|
|
1015
1025
|
- lib/moov/models/components/invoicelineitemvalidationerror.rbi
|
|
1026
|
+
- lib/moov/models/components/invoicenotificationlimitedchannel.rb
|
|
1027
|
+
- lib/moov/models/components/invoicenotificationlimitedchannel.rbi
|
|
1016
1028
|
- lib/moov/models/components/invoicepayment.rb
|
|
1017
1029
|
- lib/moov/models/components/invoicepayment.rbi
|
|
1030
|
+
- lib/moov/models/components/invoicepaymentoptions.rb
|
|
1031
|
+
- lib/moov/models/components/invoicepaymentoptions.rbi
|
|
1032
|
+
- lib/moov/models/components/invoicepaymentoptionserror.rb
|
|
1033
|
+
- lib/moov/models/components/invoicepaymentoptionserror.rbi
|
|
1034
|
+
- lib/moov/models/components/invoicepaymentoptionsupdate.rb
|
|
1035
|
+
- lib/moov/models/components/invoicepaymentoptionsupdate.rbi
|
|
1018
1036
|
- lib/moov/models/components/invoicepaymenttype.rb
|
|
1019
1037
|
- lib/moov/models/components/invoicepaymenttype.rbi
|
|
1020
1038
|
- lib/moov/models/components/invoicestatus.rb
|
|
@@ -1161,6 +1179,8 @@ files:
|
|
|
1161
1179
|
- lib/moov/models/components/mxauthorizationcode.rbi
|
|
1162
1180
|
- lib/moov/models/components/mxpayload.rb
|
|
1163
1181
|
- lib/moov/models/components/mxpayload.rbi
|
|
1182
|
+
- lib/moov/models/components/notificationchannel.rb
|
|
1183
|
+
- lib/moov/models/components/notificationchannel.rbi
|
|
1164
1184
|
- lib/moov/models/components/oauth2clienttype.rb
|
|
1165
1185
|
- lib/moov/models/components/oauth2clienttype.rbi
|
|
1166
1186
|
- lib/moov/models/components/occurrence.rb
|
|
@@ -1453,6 +1473,8 @@ files:
|
|
|
1453
1473
|
- lib/moov/models/components/rtpservices.rbi
|
|
1454
1474
|
- lib/moov/models/components/runtransfer.rb
|
|
1455
1475
|
- lib/moov/models/components/runtransfer.rbi
|
|
1476
|
+
- lib/moov/models/components/schedule.rb
|
|
1477
|
+
- lib/moov/models/components/schedule.rbi
|
|
1456
1478
|
- lib/moov/models/components/scheduledtransferimagemetadata.rb
|
|
1457
1479
|
- lib/moov/models/components/scheduledtransferimagemetadata.rbi
|
|
1458
1480
|
- lib/moov/models/components/scheduledtransferlineitem.rb
|
|
@@ -1509,6 +1531,10 @@ files:
|
|
|
1509
1531
|
- lib/moov/models/components/settings.rbi
|
|
1510
1532
|
- lib/moov/models/components/sharescopes.rb
|
|
1511
1533
|
- lib/moov/models/components/sharescopes.rbi
|
|
1534
|
+
- lib/moov/models/components/simulationissuingmerchantdata.rb
|
|
1535
|
+
- lib/moov/models/components/simulationissuingmerchantdata.rbi
|
|
1536
|
+
- lib/moov/models/components/simulationissuingmerchantdatavalidationerror.rb
|
|
1537
|
+
- lib/moov/models/components/simulationissuingmerchantdatavalidationerror.rbi
|
|
1512
1538
|
- lib/moov/models/components/sourcedestinationoptions.rb
|
|
1513
1539
|
- lib/moov/models/components/sourcedestinationoptions.rbi
|
|
1514
1540
|
- lib/moov/models/components/sourcesystem.rb
|
|
@@ -1527,8 +1553,14 @@ files:
|
|
|
1527
1553
|
- lib/moov/models/components/sweepconfig.rbi
|
|
1528
1554
|
- lib/moov/models/components/sweepconfigpaymentmethod.rb
|
|
1529
1555
|
- lib/moov/models/components/sweepconfigpaymentmethod.rbi
|
|
1556
|
+
- lib/moov/models/components/sweepconfigschedule.rb
|
|
1557
|
+
- lib/moov/models/components/sweepconfigschedule.rbi
|
|
1558
|
+
- lib/moov/models/components/sweepconfigscheduleerror.rb
|
|
1559
|
+
- lib/moov/models/components/sweepconfigscheduleerror.rbi
|
|
1530
1560
|
- lib/moov/models/components/sweepconfigstatus.rb
|
|
1531
1561
|
- lib/moov/models/components/sweepconfigstatus.rbi
|
|
1562
|
+
- lib/moov/models/components/sweepschedulefrequency.rb
|
|
1563
|
+
- lib/moov/models/components/sweepschedulefrequency.rbi
|
|
1532
1564
|
- lib/moov/models/components/sweepstatus.rb
|
|
1533
1565
|
- lib/moov/models/components/sweepstatus.rbi
|
|
1534
1566
|
- lib/moov/models/components/sweepsubtotal.rb
|
|
@@ -1846,6 +1878,8 @@ files:
|
|
|
1846
1878
|
- lib/moov/models/errors/apierror.rbi
|
|
1847
1879
|
- lib/moov/models/errors/assigncountrieserror.rb
|
|
1848
1880
|
- lib/moov/models/errors/assigncountrieserror.rbi
|
|
1881
|
+
- lib/moov/models/errors/authorizationsimulationvalidationerror.rb
|
|
1882
|
+
- lib/moov/models/errors/authorizationsimulationvalidationerror.rbi
|
|
1849
1883
|
- lib/moov/models/errors/authtokenrequesterror.rb
|
|
1850
1884
|
- lib/moov/models/errors/authtokenrequesterror.rbi
|
|
1851
1885
|
- lib/moov/models/errors/bankaccountattestationvalidationerror.rb
|
|
@@ -1860,6 +1894,8 @@ files:
|
|
|
1860
1894
|
- lib/moov/models/errors/cardacquiringrefund_error.rbi
|
|
1861
1895
|
- lib/moov/models/errors/cardmetadatarequesterror.rb
|
|
1862
1896
|
- lib/moov/models/errors/cardmetadatarequesterror.rbi
|
|
1897
|
+
- lib/moov/models/errors/clearingsimulationvalidationerror.rb
|
|
1898
|
+
- lib/moov/models/errors/clearingsimulationvalidationerror.rbi
|
|
1863
1899
|
- lib/moov/models/errors/connectaccountrequestvalidationerror.rb
|
|
1864
1900
|
- lib/moov/models/errors/connectaccountrequestvalidationerror.rbi
|
|
1865
1901
|
- lib/moov/models/errors/createaccounterror.rb
|
|
@@ -1898,6 +1934,10 @@ files:
|
|
|
1898
1934
|
- lib/moov/models/errors/imagemetadatavalidationerror.rbi
|
|
1899
1935
|
- lib/moov/models/errors/imagerequestvalidationerror.rb
|
|
1900
1936
|
- lib/moov/models/errors/imagerequestvalidationerror.rbi
|
|
1937
|
+
- lib/moov/models/errors/invoicenotificationerror.rb
|
|
1938
|
+
- lib/moov/models/errors/invoicenotificationerror.rbi
|
|
1939
|
+
- lib/moov/models/errors/invoicenotificationratelimitederror.rb
|
|
1940
|
+
- lib/moov/models/errors/invoicenotificationratelimitederror.rbi
|
|
1901
1941
|
- lib/moov/models/errors/linkapplepayerror.rb
|
|
1902
1942
|
- lib/moov/models/errors/linkapplepayerror.rbi
|
|
1903
1943
|
- lib/moov/models/errors/linkcarderror.rb
|
|
@@ -2001,6 +2041,10 @@ files:
|
|
|
2001
2041
|
- lib/moov/models/operations/createapplepaysession_request.rbi
|
|
2002
2042
|
- lib/moov/models/operations/createapplepaysession_response.rb
|
|
2003
2043
|
- lib/moov/models/operations/createapplepaysession_response.rbi
|
|
2044
|
+
- lib/moov/models/operations/createauthorizationsimulation_request.rb
|
|
2045
|
+
- lib/moov/models/operations/createauthorizationsimulation_request.rbi
|
|
2046
|
+
- lib/moov/models/operations/createauthorizationsimulation_response.rb
|
|
2047
|
+
- lib/moov/models/operations/createauthorizationsimulation_response.rbi
|
|
2004
2048
|
- lib/moov/models/operations/createbankaccountattestation_request.rb
|
|
2005
2049
|
- lib/moov/models/operations/createbankaccountattestation_request.rbi
|
|
2006
2050
|
- lib/moov/models/operations/createbankaccountattestation_response.rb
|
|
@@ -2009,14 +2053,14 @@ files:
|
|
|
2009
2053
|
- lib/moov/models/operations/createbrand_request.rbi
|
|
2010
2054
|
- lib/moov/models/operations/createbrand_response.rb
|
|
2011
2055
|
- lib/moov/models/operations/createbrand_response.rbi
|
|
2012
|
-
- lib/moov/models/operations/createcancellation_request.rb
|
|
2013
|
-
- lib/moov/models/operations/createcancellation_request.rbi
|
|
2014
|
-
- lib/moov/models/operations/createcancellation_response.rb
|
|
2015
|
-
- lib/moov/models/operations/createcancellation_response.rbi
|
|
2016
2056
|
- lib/moov/models/operations/createcapture_request.rb
|
|
2017
2057
|
- lib/moov/models/operations/createcapture_request.rbi
|
|
2018
2058
|
- lib/moov/models/operations/createcapture_response.rb
|
|
2019
2059
|
- lib/moov/models/operations/createcapture_response.rbi
|
|
2060
|
+
- lib/moov/models/operations/createclearingsimulation_request.rb
|
|
2061
|
+
- lib/moov/models/operations/createclearingsimulation_request.rbi
|
|
2062
|
+
- lib/moov/models/operations/createclearingsimulation_response.rb
|
|
2063
|
+
- lib/moov/models/operations/createclearingsimulation_response.rbi
|
|
2020
2064
|
- lib/moov/models/operations/createdepositaccount_request.rb
|
|
2021
2065
|
- lib/moov/models/operations/createdepositaccount_request.rbi
|
|
2022
2066
|
- lib/moov/models/operations/createdepositaccount_response.rb
|
|
@@ -2029,6 +2073,10 @@ files:
|
|
|
2029
2073
|
- lib/moov/models/operations/createinvoice_request.rbi
|
|
2030
2074
|
- lib/moov/models/operations/createinvoice_response.rb
|
|
2031
2075
|
- lib/moov/models/operations/createinvoice_response.rbi
|
|
2076
|
+
- lib/moov/models/operations/createinvoicenotification_request.rb
|
|
2077
|
+
- lib/moov/models/operations/createinvoicenotification_request.rbi
|
|
2078
|
+
- lib/moov/models/operations/createinvoicenotification_response.rb
|
|
2079
|
+
- lib/moov/models/operations/createinvoicenotification_response.rbi
|
|
2032
2080
|
- lib/moov/models/operations/createinvoicepayment_request.rb
|
|
2033
2081
|
- lib/moov/models/operations/createinvoicepayment_request.rbi
|
|
2034
2082
|
- lib/moov/models/operations/createinvoicepayment_response.rb
|
|
@@ -2057,6 +2105,10 @@ files:
|
|
|
2057
2105
|
- lib/moov/models/operations/createreversal_request.rbi
|
|
2058
2106
|
- lib/moov/models/operations/createreversal_response.rb
|
|
2059
2107
|
- lib/moov/models/operations/createreversal_response.rbi
|
|
2108
|
+
- lib/moov/models/operations/createreversalsimulation_request.rb
|
|
2109
|
+
- lib/moov/models/operations/createreversalsimulation_request.rbi
|
|
2110
|
+
- lib/moov/models/operations/createreversalsimulation_response.rb
|
|
2111
|
+
- lib/moov/models/operations/createreversalsimulation_response.rbi
|
|
2060
2112
|
- lib/moov/models/operations/createschedule_request.rb
|
|
2061
2113
|
- lib/moov/models/operations/createschedule_request.rbi
|
|
2062
2114
|
- lib/moov/models/operations/createschedule_response.rb
|
|
@@ -2255,6 +2307,10 @@ files:
|
|
|
2255
2307
|
- lib/moov/models/operations/getissuedcard_request.rbi
|
|
2256
2308
|
- lib/moov/models/operations/getissuedcard_response.rb
|
|
2257
2309
|
- lib/moov/models/operations/getissuedcard_response.rbi
|
|
2310
|
+
- lib/moov/models/operations/getissuedcardactivity_request.rb
|
|
2311
|
+
- lib/moov/models/operations/getissuedcardactivity_request.rbi
|
|
2312
|
+
- lib/moov/models/operations/getissuedcardactivity_response.rb
|
|
2313
|
+
- lib/moov/models/operations/getissuedcardactivity_response.rbi
|
|
2258
2314
|
- lib/moov/models/operations/getissuedcardauthorization_request.rb
|
|
2259
2315
|
- lib/moov/models/operations/getissuedcardauthorization_request.rbi
|
|
2260
2316
|
- lib/moov/models/operations/getissuedcardauthorization_response.rb
|
|
@@ -1,40 +0,0 @@
|
|
|
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 CreateCancellationRequest
|
|
12
|
-
extend T::Sig
|
|
13
|
-
include Crystalline::MetadataFields
|
|
14
|
-
|
|
15
|
-
# The partner's Moov account ID.
|
|
16
|
-
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
17
|
-
# The transfer ID to cancel.
|
|
18
|
-
field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
|
|
19
|
-
|
|
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:)
|
|
24
|
-
@account_id = account_id
|
|
25
|
-
@transfer_id = transfer_id
|
|
26
|
-
@create_cancellation = create_cancellation
|
|
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 @create_cancellation == other.create_cancellation
|
|
35
|
-
true
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Moov::Models::Operations::CreateCancellationRequest
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Moov::Models::Operations::CreateCancellationRequest
|
|
11
|
-
def account_id(); end
|
|
12
|
-
def account_id=(str_); end
|
|
13
|
-
def transfer_id(); end
|
|
14
|
-
def transfer_id=(str_); end
|
|
15
|
-
def create_cancellation(); end
|
|
16
|
-
def create_cancellation=(str_); end
|
|
17
|
-
end
|