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
2473 2474 2475 2476 2477 2478 2479 2480 2481 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2473 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
2484 2485 2486 2487 2488 2489 2490 2491 2492 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2484 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
2495 2496 2497 2498 2499 2500 2501 2502 2503 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2495 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
2506 2507 2508 2509 2510 2511 2512 2513 2514 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2506 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 |