Class: Stripe::PaymentMethodConfigurationService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::PaymentMethodConfigurationService
- Defined in:
- lib/stripe/services/payment_method_configuration_service.rb
Defined Under Namespace
Classes: CreateParams, ListParams, RetrieveParams, UpdateParams
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Creates a payment method configuration.
-
#list(params = {}, opts = {}) ⇒ Object
List payment method configurations.
-
#retrieve(configuration, params = {}, opts = {}) ⇒ Object
Retrieve payment method configuration.
-
#update(configuration, params = {}, opts = {}) ⇒ Object
Update payment method configuration.
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 a payment method configuration
2263 2264 2265 2266 2267 2268 2269 2270 2271 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2263 def create(params = {}, opts = {}) request( method: :post, path: "/v1/payment_method_configurations", params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
List payment method configurations
2274 2275 2276 2277 2278 2279 2280 2281 2282 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2274 def list(params = {}, opts = {}) request( method: :get, path: "/v1/payment_method_configurations", params: params, opts: opts, base_address: :api ) end |
#retrieve(configuration, params = {}, opts = {}) ⇒ Object
Retrieve payment method configuration
2285 2286 2287 2288 2289 2290 2291 2292 2293 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2285 def retrieve(configuration, params = {}, opts = {}) request( method: :get, path: format("/v1/payment_method_configurations/%<configuration>s", { configuration: CGI.escape(configuration) }), params: params, opts: opts, base_address: :api ) end |
#update(configuration, params = {}, opts = {}) ⇒ Object
Update payment method configuration
2296 2297 2298 2299 2300 2301 2302 2303 2304 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2296 def update(configuration, params = {}, opts = {}) request( method: :post, path: format("/v1/payment_method_configurations/%<configuration>s", { configuration: CGI.escape(configuration) }), params: params, opts: opts, base_address: :api ) end |