Class: Stripe::V2::MoneyManagement::OutboundSetupIntentService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::MoneyManagement::OutboundSetupIntentService
- Defined in:
- lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb
Defined Under Namespace
Classes: CancelParams, CreateParams, ListParams, RetrieveParams, UpdateParams
Instance Method Summary collapse
-
#cancel(id, params = {}, opts = {}) ⇒ Object
Cancel an OutboundSetupIntent object.
-
#create(params = {}, opts = {}) ⇒ Object
Create an OutboundSetupIntent object.
-
#list(params = {}, opts = {}) ⇒ Object
List the OutboundSetupIntent objects.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve an OutboundSetupIntent object.
-
#update(id, params = {}, opts = {}) ⇒ Object
Update an OutboundSetupIntent object.
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
Cancel an OutboundSetupIntent object.
173 174 175 176 177 178 179 180 181 |
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 173 def cancel(id, params = {}, opts = {}) request( method: :post, path: format("/v2/money_management/outbound_setup_intents/%<id>s/cancel", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#create(params = {}, opts = {}) ⇒ Object
Create an OutboundSetupIntent object.
** raises BlockedByStripeError ** raises InvalidPayoutMethodError ** raises QuotaExceededError
188 189 190 191 192 193 194 195 196 |
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 188 def create(params = {}, opts = {}) request( method: :post, path: "/v2/money_management/outbound_setup_intents", params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
List the OutboundSetupIntent objects.
199 200 201 202 203 204 205 206 207 |
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 199 def list(params = {}, opts = {}) request( method: :get, path: "/v2/money_management/outbound_setup_intents", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve an OutboundSetupIntent object.
210 211 212 213 214 215 216 217 218 |
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 210 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v2/money_management/outbound_setup_intents/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#update(id, params = {}, opts = {}) ⇒ Object
Update an OutboundSetupIntent object.
** raises QuotaExceededError ** raises BlockedByStripeError ** raises InvalidPayoutMethodError
225 226 227 228 229 230 231 232 233 |
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 225 def update(id, params = {}, opts = {}) request( method: :post, path: format("/v2/money_management/outbound_setup_intents/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |