Sha256: e7cbafd91d09d594a29ed113fb8e5105a5b62845e31cc0bb9af88a67d8acd0fa
Contents?: true
Size: 1.4 KB
Versions: 17
Compression:
Stored size: 1.4 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe class AccountCapabilityService < StripeService # Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first. def list(account, params = {}, opts = {}) request( method: :get, path: format("/v1/accounts/%<account>s/capabilities", { account: CGI.escape(account) }), params: params, opts: opts, base_address: :api ) end # Retrieves information about the specified Account Capability. def retrieve(account, capability, params = {}, opts = {}) request( method: :get, path: format("/v1/accounts/%<account>s/capabilities/%<capability>s", { account: CGI.escape(account), capability: CGI.escape(capability) }), params: params, opts: opts, base_address: :api ) end # Updates an existing Account Capability. Request or remove a capability by updating its requested parameter. def update(account, capability, params = {}, opts = {}) request( method: :post, path: format("/v1/accounts/%<account>s/capabilities/%<capability>s", { account: CGI.escape(account), capability: CGI.escape(capability) }), params: params, opts: opts, base_address: :api ) end end end
Version data entries
17 entries across 17 versions & 1 rubygems