Class: Stripe::V2::MoneyManagement::OutboundTransferService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::MoneyManagement::OutboundTransferService
- Defined in:
- lib/stripe/services/v2/money_management/outbound_transfer_service.rb
Defined Under Namespace
Classes: CancelParams, CreateParams, ListParams, RetrieveParams
Instance Method Summary collapse
-
#cancel(id, params = {}, opts = {}) ⇒ Object
Cancels an OutboundTransfer.
-
#create(params = {}, opts = {}) ⇒ Object
Creates an OutboundTransfer.
-
#list(params = {}, opts = {}) ⇒ Object
Returns a list of OutboundTransfers that match the provided filters.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundPayment create or list response.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#cancel(id, params = {}, opts = {}) ⇒ Object
Cancels an OutboundTransfer. Only processing OutboundTransfers can be canceled.
** raises AlreadyCanceledError ** raises NotCancelableError
125 126 127 128 129 130 131 132 133 |
# File 'lib/stripe/services/v2/money_management/outbound_transfer_service.rb', line 125 def cancel(id, params = {}, opts = {}) request( method: :post, path: format("/v2/money_management/outbound_transfers/%<id>s/cancel", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#create(params = {}, opts = {}) ⇒ Object
Creates an OutboundTransfer.
** raises InsufficientFundsError
138 139 140 141 142 143 144 145 146 |
# File 'lib/stripe/services/v2/money_management/outbound_transfer_service.rb', line 138 def create(params = {}, opts = {}) request( method: :post, path: "/v2/money_management/outbound_transfers", params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
Returns a list of OutboundTransfers that match the provided filters.
149 150 151 152 153 154 155 156 157 |
# File 'lib/stripe/services/v2/money_management/outbound_transfer_service.rb', line 149 def list(params = {}, opts = {}) request( method: :get, path: "/v2/money_management/outbound_transfers", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundPayment create or list response.
160 161 162 163 164 165 166 167 168 |
# File 'lib/stripe/services/v2/money_management/outbound_transfer_service.rb', line 160 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v2/money_management/outbound_transfers/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |