Sha256: a0b9326b8714b0559d3fddd6ae642f4032db2a1f57dd8ce9aef5e2b4aeb5d167

Contents?: true

Size: 738 Bytes

Versions: 1

Compression:

Stored size: 738 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module FinancialConnections
    class Account < APIResource
      OBJECT_NAME = "financial_connections.account"

      custom_method :disconnect, http_verb: :post
      custom_method :refresh, http_verb: :post

      def disconnect(params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: resource_url + "/disconnect",
          params: params,
          opts: opts
        )
      end

      def refresh(params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: resource_url + "/refresh",
          params: params,
          opts: opts
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stripe-5.55.0 lib/stripe/resources/financial_connections/account.rb