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
2095 2096 2097 2098 2099 2100 2101 2102 2103 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2095 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
2106 2107 2108 2109 2110 2111 2112 2113 2114 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2106 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
2117 2118 2119 2120 2121 2122 2123 2124 2125 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2117 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
2128 2129 2130 2131 2132 2133 2134 2135 2136 |
# File 'lib/stripe/services/payment_method_configuration_service.rb', line 2128 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 |