Class: Stripe::V2::MoneyManagement::OutboundPaymentQuoteService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb

Defined Under Namespace

Classes: CreateParams, RetrieveParams

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

#create(params = {}, opts = {}) ⇒ Object

Creates an OutboundPaymentQuote usable in an OutboundPayment.

** raises FeatureNotEnabledError



73
74
75
76
77
78
79
80
81
# File 'lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb', line 73

def create(params = {}, opts = {})
  request(
    method: :post,
    path: "/v2/money_management/outbound_payment_quotes",
    params: params,
    opts: opts,
    base_address: :api
  )
end

#retrieve(id, params = {}, opts = {}) ⇒ Object

Retrieves the details of an existing OutboundPaymentQuote by passing the unique OutboundPaymentQuote ID.



84
85
86
87
88
89
90
91
92
# File 'lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb', line 84

def retrieve(id, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v2/money_management/outbound_payment_quotes/%<id>s", { id: CGI.escape(id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end