Class: Stripe::V2::Billing::CadenceService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::Billing::CadenceService
- Defined in:
- lib/stripe/services/v2/billing/cadence_service.rb
Defined Under Namespace
Classes: CancelParams, CreateParams, ListParams, RetrieveParams, UpdateParams
Instance Method Summary collapse
-
#cancel(id, params = {}, opts = {}) ⇒ Object
Cancel the Billing Cadence.
-
#create(params = {}, opts = {}) ⇒ Object
Create a Billing Cadence object.
-
#list(params = {}, opts = {}) ⇒ Object
List Billing Cadences.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve a Billing Cadence object.
-
#update(id, params = {}, opts = {}) ⇒ Object
Update a Billing Cadence object.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#cancel(id, params = {}, opts = {}) ⇒ Object
Cancel the Billing Cadence.
378 379 380 381 382 383 384 385 386 |
# File 'lib/stripe/services/v2/billing/cadence_service.rb', line 378 def cancel(id, params = {}, opts = {}) request( method: :post, path: format("/v2/billing/cadences/%<id>s/cancel", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#create(params = {}, opts = {}) ⇒ Object
Create a Billing Cadence object.
389 390 391 392 393 394 395 396 397 |
# File 'lib/stripe/services/v2/billing/cadence_service.rb', line 389 def create(params = {}, opts = {}) request( method: :post, path: "/v2/billing/cadences", params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
List Billing Cadences.
400 401 402 403 404 405 406 407 408 |
# File 'lib/stripe/services/v2/billing/cadence_service.rb', line 400 def list(params = {}, opts = {}) request( method: :get, path: "/v2/billing/cadences", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve a Billing Cadence object.
411 412 413 414 415 416 417 418 419 |
# File 'lib/stripe/services/v2/billing/cadence_service.rb', line 411 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v2/billing/cadences/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#update(id, params = {}, opts = {}) ⇒ Object
Update a Billing Cadence object.
422 423 424 425 426 427 428 429 430 |
# File 'lib/stripe/services/v2/billing/cadence_service.rb', line 422 def update(id, params = {}, opts = {}) request( method: :post, path: format("/v2/billing/cadences/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |