Class: Stripe::V2::MoneyManagement::OutboundSetupIntentService

Inherits:
StripeService
  • Object
show all
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

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.



171
172
173
174
175
176
177
178
179
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 171

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



186
187
188
189
190
191
192
193
194
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 186

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.



197
198
199
200
201
202
203
204
205
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 197

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.



208
209
210
211
212
213
214
215
216
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 208

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



223
224
225
226
227
228
229
230
231
# File 'lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb', line 223

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