moov_ruby 26.10.0.pre.dev.7 → 26.10.0.pre.dev.9
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 +538 -0
- data/lib/moov/files.rb +186 -0
- data/lib/moov/invoices.rb +180 -0
- data/lib/moov/issuing_transactions.rb +246 -0
- data/lib/moov/models/components/applicationscope.rb +1 -0
- data/lib/moov/models/components/authorizationsimulationasyncresponse.rb +32 -0
- data/lib/moov/models/components/authorizationsimulationasyncresponse.rbi +13 -0
- data/lib/moov/models/components/bankaccount.rb +7 -2
- data/lib/moov/models/components/bankaccount.rbi +2 -0
- data/lib/moov/models/components/bankaccountpayload.rb +7 -2
- data/lib/moov/models/components/bankaccountpayload.rbi +2 -0
- data/lib/moov/models/components/capturestatus.rb +1 -0
- data/lib/moov/models/components/cardpaymentrefundprocessingdetails.rb +6 -2
- data/lib/moov/models/components/cardpaymentrefundprocessingdetails.rbi +2 -0
- data/lib/moov/models/components/createauthorizationsimulation.rb +40 -0
- data/lib/moov/models/components/createauthorizationsimulation.rbi +17 -0
- 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/createdtransfer.rb +2 -1
- data/lib/moov/models/components/createinvoice.rb +14 -2
- data/lib/moov/models/components/createinvoice.rbi +6 -0
- data/lib/moov/models/components/createinvoicenotification.rb +32 -0
- data/lib/moov/models/components/createinvoicenotification.rbi +13 -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 -14
- data/lib/moov/models/components/createtransferdestination.rbi +0 -6
- 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/disbursementpaymentmethodtype.rb +1 -0
- data/lib/moov/models/components/incurredfee.rb +6 -2
- data/lib/moov/models/components/incurredfee.rbi +2 -0
- 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/issuedcardactivity.rb +78 -0
- data/lib/moov/models/components/issuedcardactivity.rbi +33 -0
- data/lib/moov/models/components/{wirecreditpaymentmethod_paymentmethodtype.rb → notificationchannel.rb} +2 -2
- data/lib/moov/models/components/{wirefailurecode.rbi → notificationchannel.rbi} +2 -2
- data/lib/moov/models/components/paymentmethodsbankaccount.rb +7 -2
- data/lib/moov/models/components/paymentmethodsbankaccount.rbi +2 -0
- data/lib/moov/models/components/paymentmethodtype.rb +0 -1
- data/lib/moov/models/components/product.rb +1 -1
- data/lib/moov/models/components/productrequest.rb +1 -1
- data/lib/moov/models/components/pushtocardoptions.rb +6 -2
- data/lib/moov/models/components/pushtocardoptions.rbi +2 -0
- data/lib/moov/models/components/riskverificationoutcome.rb +23 -0
- data/lib/moov/models/components/riskverificationoutcome.rbi +11 -0
- 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/transfer.rb +2 -1
- data/lib/moov/models/components/transferauthorization.rb +9 -2
- data/lib/moov/models/components/transferauthorization.rbi +2 -0
- data/lib/moov/models/components/transferoptions.rb +3 -3
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +7 -2
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rbi +2 -0
- data/lib/moov/models/components/transferpaymentmethodtype.rb +0 -1
- data/lib/moov/models/components/transferprocessingdetails.rb +2 -6
- data/lib/moov/models/components/transferprocessingdetails.rbi +0 -2
- data/lib/moov/models/components/transferrailoptions.rb +2 -6
- data/lib/moov/models/components/transferrailoptions.rbi +0 -2
- data/lib/moov/models/components/transfertype.rb +0 -1
- data/lib/moov/models/components/updateinvoice.rb +6 -2
- data/lib/moov/models/components/updateinvoice.rbi +2 -0
- data/lib/moov/models/components/wallettransactiontype.rb +0 -1
- data/lib/moov/models/components/webhookdatatransferstatus.rb +1 -0
- data/lib/moov/models/components.rb +15 -10
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rb +44 -0
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rbi +19 -0
- 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 +14 -2
- data/lib/moov/models/errors/createinvoiceerror.rbi +6 -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/transfer_error.rb +2 -1
- 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/downloadfile_request.rb +36 -0
- data/lib/moov/models/operations/downloadfile_request.rbi +15 -0
- data/lib/moov/models/operations/downloadfile_response.rb +64 -0
- data/lib/moov/models/operations/downloadfile_response.rbi +29 -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/getpaymentmethod_response.rb +2 -2
- data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcardactivity_request.rb +60 -0
- data/lib/moov/models/operations/listissuedcardactivity_request.rbi +27 -0
- data/lib/moov/models/operations/listissuedcardactivity_response.rb +48 -0
- data/lib/moov/models/operations/listissuedcardactivity_response.rbi +21 -0
- data/lib/moov/models/operations/listpaymentmethods_response.rb +2 -2
- data/lib/moov/models/operations/listtransfers_request.rb +6 -2
- data/lib/moov/models/operations/listtransfers_request.rbi +2 -0
- data/lib/moov/models/operations.rb +14 -2
- data/lib/moov/payment_methods.rb +2 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/transfers.rb +3 -156
- metadata +68 -26
- data/lib/moov/models/components/createtransferdestinationwire.rb +0 -32
- data/lib/moov/models/components/createtransferdestinationwire.rbi +0 -13
- data/lib/moov/models/components/wirecreditpaymentmethod.rb +0 -40
- data/lib/moov/models/components/wirecreditpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/wirecreditpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/wirecredittransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/wirecredittransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/wirecredittransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/wirecredittransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/wirefailurecode.rb +0 -28
- data/lib/moov/models/components/wireoptions.rb +0 -32
- data/lib/moov/models/components/wireoptions.rbi +0 -13
- data/lib/moov/models/components/wiretransactionstatus.rb +0 -23
- data/lib/moov/models/components/wiretransactionstatus.rbi +0 -11
- data/lib/moov/models/components/wiretransferprocessingdetails.rb +0 -40
- data/lib/moov/models/components/wiretransferprocessingdetails.rbi +0 -17
- data/lib/moov/models/operations/createcancellation_request.rb +0 -40
- data/lib/moov/models/operations/createcancellation_request.rbi +0 -17
|
@@ -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 ListIssuedCardActivityResponse
|
|
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 :issued_card_activities, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::IssuedCardActivity))
|
|
25
|
+
|
|
26
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], issued_card_activities: T.nilable(T::Array[Models::Components::IssuedCardActivity])).void }
|
|
27
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, issued_card_activities: nil)
|
|
28
|
+
@content_type = content_type
|
|
29
|
+
@status_code = status_code
|
|
30
|
+
@raw_response = raw_response
|
|
31
|
+
@headers = headers
|
|
32
|
+
@issued_card_activities = issued_card_activities
|
|
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 @issued_card_activities == other.issued_card_activities
|
|
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::ListIssuedCardActivityResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListIssuedCardActivityResponse
|
|
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 issued_card_activities(); end
|
|
20
|
+
def issued_card_activities=(str_); end
|
|
21
|
+
end
|
|
@@ -21,9 +21,9 @@ module Moov
|
|
|
21
21
|
|
|
22
22
|
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
23
23
|
# The request completed successfully.
|
|
24
|
-
field :payment_methods, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod, Models::Components::PushToApplePayPaymentMethod, Models::Components::PullFromApplePayPaymentMethod, Models::Components::GooglePayPaymentMethod, Models::Components::PushToGooglePayPaymentMethod, Models::Components::PullFromGooglePayPaymentMethod
|
|
24
|
+
field :payment_methods, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod, Models::Components::PushToApplePayPaymentMethod, Models::Components::PullFromApplePayPaymentMethod, Models::Components::GooglePayPaymentMethod, Models::Components::PushToGooglePayPaymentMethod, Models::Components::PullFromGooglePayPaymentMethod)))
|
|
25
25
|
|
|
26
|
-
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], payment_methods: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod, Models::Components::PushToApplePayPaymentMethod, Models::Components::PullFromApplePayPaymentMethod, Models::Components::GooglePayPaymentMethod, Models::Components::PushToGooglePayPaymentMethod, Models::Components::PullFromGooglePayPaymentMethod
|
|
26
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], payment_methods: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod, Models::Components::PushToApplePayPaymentMethod, Models::Components::PullFromApplePayPaymentMethod, Models::Components::GooglePayPaymentMethod, Models::Components::PushToGooglePayPaymentMethod, Models::Components::PullFromGooglePayPaymentMethod)])).void }
|
|
27
27
|
def initialize(content_type:, status_code:, raw_response:, headers:, payment_methods: nil)
|
|
28
28
|
@content_type = content_type
|
|
29
29
|
@status_code = status_code
|
|
@@ -36,6 +36,8 @@ module Moov
|
|
|
36
36
|
field :foreign_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'foreignID', 'style': 'form', 'explode': false } }
|
|
37
37
|
# Optional comma-separated authorization IDs.
|
|
38
38
|
field :authorization_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'query_param': { 'field_name': 'authorizationIDs', 'style': 'form', 'explode': false } }
|
|
39
|
+
# Optional comma-separated invoice IDs.
|
|
40
|
+
field :invoice_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'query_param': { 'field_name': 'invoiceIDs', 'style': 'form', 'explode': false } }
|
|
39
41
|
# Optional, comma-separated transfer types by which the response is filtered.
|
|
40
42
|
field :transfer_types, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::TransferType)), { 'query_param': { 'field_name': 'transferTypes', 'style': 'form', 'explode': false } }
|
|
41
43
|
|
|
@@ -43,8 +45,8 @@ module Moov
|
|
|
43
45
|
# Page size. When omitted, the server defaults to `200`.
|
|
44
46
|
field :count, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'count', 'style': 'form', 'explode': false } }
|
|
45
47
|
|
|
46
|
-
sig { params(account_id: ::String, account_i_ds: T.nilable(T::Array[::String]), status: T.nilable(Models::Components::TransferStatus), start_date_time: T.nilable(::DateTime), end_date_time: T.nilable(::DateTime), group_id: T.nilable(::String), schedule_id: T.nilable(::String), payment_link_code: T.nilable(::String), refunded: T.nilable(T::Boolean), disputed: T.nilable(T::Boolean), foreign_id: T.nilable(::String), authorization_i_ds: T.nilable(T::Array[::String]), transfer_types: T.nilable(T::Array[Models::Components::TransferType]), skip: T.nilable(::Integer), count: T.nilable(::Integer)).void }
|
|
47
|
-
def initialize(account_id:, account_i_ds: nil, status: nil, start_date_time: nil, end_date_time: nil, group_id: nil, schedule_id: nil, payment_link_code: nil, refunded: nil, disputed: nil, foreign_id: nil, authorization_i_ds: nil, transfer_types: nil, skip: nil, count: nil)
|
|
48
|
+
sig { params(account_id: ::String, account_i_ds: T.nilable(T::Array[::String]), status: T.nilable(Models::Components::TransferStatus), start_date_time: T.nilable(::DateTime), end_date_time: T.nilable(::DateTime), group_id: T.nilable(::String), schedule_id: T.nilable(::String), payment_link_code: T.nilable(::String), refunded: T.nilable(T::Boolean), disputed: T.nilable(T::Boolean), foreign_id: T.nilable(::String), authorization_i_ds: T.nilable(T::Array[::String]), invoice_i_ds: T.nilable(T::Array[::String]), transfer_types: T.nilable(T::Array[Models::Components::TransferType]), skip: T.nilable(::Integer), count: T.nilable(::Integer)).void }
|
|
49
|
+
def initialize(account_id:, account_i_ds: nil, status: nil, start_date_time: nil, end_date_time: nil, group_id: nil, schedule_id: nil, payment_link_code: nil, refunded: nil, disputed: nil, foreign_id: nil, authorization_i_ds: nil, invoice_i_ds: nil, transfer_types: nil, skip: nil, count: nil)
|
|
48
50
|
@account_id = account_id
|
|
49
51
|
@account_i_ds = account_i_ds
|
|
50
52
|
@status = status
|
|
@@ -57,6 +59,7 @@ module Moov
|
|
|
57
59
|
@disputed = disputed
|
|
58
60
|
@foreign_id = foreign_id
|
|
59
61
|
@authorization_i_ds = authorization_i_ds
|
|
62
|
+
@invoice_i_ds = invoice_i_ds
|
|
60
63
|
@transfer_types = transfer_types
|
|
61
64
|
@skip = skip
|
|
62
65
|
@count = count
|
|
@@ -77,6 +80,7 @@ module Moov
|
|
|
77
80
|
return false unless @disputed == other.disputed
|
|
78
81
|
return false unless @foreign_id == other.foreign_id
|
|
79
82
|
return false unless @authorization_i_ds == other.authorization_i_ds
|
|
83
|
+
return false unless @invoice_i_ds == other.invoice_i_ds
|
|
80
84
|
return false unless @transfer_types == other.transfer_types
|
|
81
85
|
return false unless @skip == other.skip
|
|
82
86
|
return false unless @count == other.count
|
|
@@ -32,6 +32,8 @@ class Moov::Models::Operations::ListTransfersRequest
|
|
|
32
32
|
def foreign_id=(str_); end
|
|
33
33
|
def authorization_i_ds(); end
|
|
34
34
|
def authorization_i_ds=(str_); end
|
|
35
|
+
def invoice_i_ds(); end
|
|
36
|
+
def invoice_i_ds=(str_); end
|
|
35
37
|
def transfer_types(); end
|
|
36
38
|
def transfer_types=(str_); end
|
|
37
39
|
def skip(); end
|
|
@@ -24,18 +24,22 @@ module Moov
|
|
|
24
24
|
autoload :CreateAccountResponse, 'moov/models/operations/createaccount_response.rb'
|
|
25
25
|
autoload :CreateApplePaySessionRequest, 'moov/models/operations/createapplepaysession_request.rb'
|
|
26
26
|
autoload :CreateApplePaySessionResponse, 'moov/models/operations/createapplepaysession_response.rb'
|
|
27
|
+
autoload :CreateAuthorizationSimulationRequest, 'moov/models/operations/createauthorizationsimulation_request.rb'
|
|
28
|
+
autoload :CreateAuthorizationSimulationResponse, 'moov/models/operations/createauthorizationsimulation_response.rb'
|
|
27
29
|
autoload :CreateBankAccountAttestationRequest, 'moov/models/operations/createbankaccountattestation_request.rb'
|
|
28
30
|
autoload :CreateBankAccountAttestationResponse, 'moov/models/operations/createbankaccountattestation_response.rb'
|
|
29
31
|
autoload :CreateBrandRequest, 'moov/models/operations/createbrand_request.rb'
|
|
30
32
|
autoload :CreateBrandResponse, 'moov/models/operations/createbrand_response.rb'
|
|
31
|
-
autoload :CreateCancellationRequest, 'moov/models/operations/createcancellation_request.rb'
|
|
32
|
-
autoload :CreateCancellationResponse, 'moov/models/operations/createcancellation_response.rb'
|
|
33
33
|
autoload :CreateCaptureRequest, 'moov/models/operations/createcapture_request.rb'
|
|
34
34
|
autoload :CreateCaptureResponse, 'moov/models/operations/createcapture_response.rb'
|
|
35
|
+
autoload :CreateClearingSimulationRequest, 'moov/models/operations/createclearingsimulation_request.rb'
|
|
36
|
+
autoload :CreateClearingSimulationResponse, 'moov/models/operations/createclearingsimulation_response.rb'
|
|
35
37
|
autoload :CreateDepositAccountRequest, 'moov/models/operations/createdepositaccount_request.rb'
|
|
36
38
|
autoload :CreateDepositAccountResponse, 'moov/models/operations/createdepositaccount_response.rb'
|
|
37
39
|
autoload :CreateFeePlanAgreementsRequest, 'moov/models/operations/createfeeplanagreements_request.rb'
|
|
38
40
|
autoload :CreateFeePlanAgreementsResponse, 'moov/models/operations/createfeeplanagreements_response.rb'
|
|
41
|
+
autoload :CreateInvoiceNotificationRequest, 'moov/models/operations/createinvoicenotification_request.rb'
|
|
42
|
+
autoload :CreateInvoiceNotificationResponse, 'moov/models/operations/createinvoicenotification_response.rb'
|
|
39
43
|
autoload :CreateInvoicePaymentRequest, 'moov/models/operations/createinvoicepayment_request.rb'
|
|
40
44
|
autoload :CreateInvoicePaymentResponse, 'moov/models/operations/createinvoicepayment_response.rb'
|
|
41
45
|
autoload :CreateInvoiceRequest, 'moov/models/operations/createinvoice_request.rb'
|
|
@@ -50,6 +54,8 @@ module Moov
|
|
|
50
54
|
autoload :CreateRepresentativeResponse, 'moov/models/operations/createrepresentative_response.rb'
|
|
51
55
|
autoload :CreateResolutionLinkRequest, 'moov/models/operations/createresolutionlink_request.rb'
|
|
52
56
|
autoload :CreateResolutionLinkResponse, 'moov/models/operations/createresolutionlink_response.rb'
|
|
57
|
+
autoload :CreateReversalSimulationRequest, 'moov/models/operations/createreversalsimulation_request.rb'
|
|
58
|
+
autoload :CreateReversalSimulationResponse, 'moov/models/operations/createreversalsimulation_response.rb'
|
|
53
59
|
autoload :CreateReversalRequest, 'moov/models/operations/createreversal_request.rb'
|
|
54
60
|
autoload :CreateReversalResponse, 'moov/models/operations/createreversal_response.rb'
|
|
55
61
|
autoload :CreateScheduleRequest, 'moov/models/operations/createschedule_request.rb'
|
|
@@ -99,6 +105,8 @@ module Moov
|
|
|
99
105
|
autoload :DisableWebhookResponse, 'moov/models/operations/disablewebhook_response.rb'
|
|
100
106
|
autoload :DisconnectAccountRequest, 'moov/models/operations/disconnectaccount_request.rb'
|
|
101
107
|
autoload :DisconnectAccountResponse, 'moov/models/operations/disconnectaccount_response.rb'
|
|
108
|
+
autoload :DownloadFileRequest, 'moov/models/operations/downloadfile_request.rb'
|
|
109
|
+
autoload :DownloadFileResponse, 'moov/models/operations/downloadfile_response.rb'
|
|
102
110
|
autoload :GenerateEndToEndKeyResponse, 'moov/models/operations/generateendtoendkey_response.rb'
|
|
103
111
|
autoload :GetAccountCountriesRequest, 'moov/models/operations/getaccountcountries_request.rb'
|
|
104
112
|
autoload :GetAccountCountriesResponse, 'moov/models/operations/getaccountcountries_response.rb'
|
|
@@ -147,6 +155,8 @@ module Moov
|
|
|
147
155
|
autoload :GetImageMetadataResponse, 'moov/models/operations/getimagemetadata_response.rb'
|
|
148
156
|
autoload :GetInvoiceRequest, 'moov/models/operations/getinvoice_request.rb'
|
|
149
157
|
autoload :GetInvoiceResponse, 'moov/models/operations/getinvoice_response.rb'
|
|
158
|
+
autoload :GetIssuedCardActivityRequest, 'moov/models/operations/getissuedcardactivity_request.rb'
|
|
159
|
+
autoload :GetIssuedCardActivityResponse, 'moov/models/operations/getissuedcardactivity_response.rb'
|
|
150
160
|
autoload :GetIssuedCardAuthorizationRequest, 'moov/models/operations/getissuedcardauthorization_request.rb'
|
|
151
161
|
autoload :GetIssuedCardAuthorizationResponse, 'moov/models/operations/getissuedcardauthorization_response.rb'
|
|
152
162
|
autoload :GetIssuedCardTransactionRequest, 'moov/models/operations/getissuedcardtransaction_request.rb'
|
|
@@ -270,6 +280,8 @@ module Moov
|
|
|
270
280
|
autoload :ListInvoicePaymentsResponse, 'moov/models/operations/listinvoicepayments_response.rb'
|
|
271
281
|
autoload :ListInvoicesRequest, 'moov/models/operations/listinvoices_request.rb'
|
|
272
282
|
autoload :ListInvoicesResponse, 'moov/models/operations/listinvoices_response.rb'
|
|
283
|
+
autoload :ListIssuedCardActivityRequest, 'moov/models/operations/listissuedcardactivity_request.rb'
|
|
284
|
+
autoload :ListIssuedCardActivityResponse, 'moov/models/operations/listissuedcardactivity_response.rb'
|
|
273
285
|
autoload :ListIssuedCardAuthorizationEventsRequest, 'moov/models/operations/listissuedcardauthorizationevents_request.rb'
|
|
274
286
|
autoload :ListIssuedCardAuthorizationEventsResponse, 'moov/models/operations/listissuedcardauthorizationevents_response.rb'
|
|
275
287
|
autoload :ListIssuedCardAuthorizationsRequest, 'moov/models/operations/listissuedcardauthorizations_request.rb'
|
data/lib/moov/payment_methods.rb
CHANGED
|
@@ -140,7 +140,7 @@ module Moov
|
|
|
140
140
|
response: http_response
|
|
141
141
|
)
|
|
142
142
|
response_data = http_response.env.response_body
|
|
143
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod, Models::Components::PushToApplePayPaymentMethod, Models::Components::PullFromApplePayPaymentMethod, Models::Components::GooglePayPaymentMethod, Models::Components::PushToGooglePayPaymentMethod, Models::Components::PullFromGooglePayPaymentMethod
|
|
143
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod, Models::Components::PushToApplePayPaymentMethod, Models::Components::PullFromApplePayPaymentMethod, Models::Components::GooglePayPaymentMethod, Models::Components::PushToGooglePayPaymentMethod, Models::Components::PullFromGooglePayPaymentMethod)))
|
|
144
144
|
response = Models::Operations::ListPaymentMethodsResponse.new(
|
|
145
145
|
status_code: http_response.status,
|
|
146
146
|
content_type: content_type,
|
|
@@ -263,7 +263,7 @@ module Moov
|
|
|
263
263
|
response: http_response
|
|
264
264
|
)
|
|
265
265
|
response_data = http_response.env.response_body
|
|
266
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod, Models::Components::PushToApplePayPaymentMethod, Models::Components::PullFromApplePayPaymentMethod, Models::Components::GooglePayPaymentMethod, Models::Components::PushToGooglePayPaymentMethod, Models::Components::PullFromGooglePayPaymentMethod
|
|
266
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod, Models::Components::PushToApplePayPaymentMethod, Models::Components::PullFromApplePayPaymentMethod, Models::Components::GooglePayPaymentMethod, Models::Components::PushToGooglePayPaymentMethod, Models::Components::PullFromGooglePayPaymentMethod))
|
|
267
267
|
response = Models::Operations::GetPaymentMethodResponse.new(
|
|
268
268
|
status_code: http_response.status,
|
|
269
269
|
content_type: content_type,
|
|
@@ -88,9 +88,9 @@ module Moov
|
|
|
88
88
|
end
|
|
89
89
|
@language = 'ruby'
|
|
90
90
|
@openapi_doc_version = 'v2026.10.00'
|
|
91
|
-
@sdk_version = '26.10.0-dev.
|
|
92
|
-
@gen_version = '2.
|
|
93
|
-
@user_agent = 'speakeasy-sdk/ruby 26.10.0-dev.
|
|
91
|
+
@sdk_version = '26.10.0-dev.9'
|
|
92
|
+
@gen_version = '2.950.2'
|
|
93
|
+
@user_agent = 'speakeasy-sdk/ruby 26.10.0-dev.9 2.950.2 v2026.10.00 moov_ruby'
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
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
|
|
@@ -1000,160 +1000,6 @@ module Moov
|
|
|
1000
1000
|
end
|
|
1001
1001
|
|
|
1002
1002
|
|
|
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
1003
|
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
1004
|
def list_cancellations(account_id:, transfer_id:, timeout_ms: nil, http_headers: nil)
|
|
1159
1005
|
# list_cancellations - Get a list of cancellations for a transfer.
|
|
@@ -1819,6 +1665,7 @@ module Moov
|
|
|
1819
1665
|
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
1666
|
def initiate_refund(request:, timeout_ms: nil, http_headers: nil)
|
|
1821
1667
|
# initiate_refund - Initiate a refund for a card transfer.
|
|
1668
|
+
# The `accountID` must identify the partner account for the transfer.
|
|
1822
1669
|
#
|
|
1823
1670
|
# **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
1671
|
# See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/) guide for more information.
|