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
2011 2012 2013 2014 2015 2016 2017 2018 2019 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2011 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
2022 2023 2024 2025 2026 2027 2028 2029 2030 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2022 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
2033 2034 2035 2036 2037 2038 2039 2040 2041 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2033 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
2044 2045 2046 2047 2048 2049 2050 2051 2052 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2044 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 |