Class: Stripe::V2::Billing::ServiceActionService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::Billing::ServiceActionService
- Defined in:
- lib/stripe/services/v2/billing/service_action_service.rb
Defined Under Namespace
Classes: CreateParams, RetrieveParams
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Create a Service Action object.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve a Service Action object.
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
Create a Service Action object.
257 258 259 260 261 262 263 264 265 |
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 257 def create(params = {}, opts = {}) request( method: :post, path: "/v2/billing/service_actions", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve a Service Action object.
268 269 270 271 272 273 274 275 276 |
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 268 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v2/billing/service_actions/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |