Sha256: 869369661f8e3227d962dd10c11b070c32ba73c96a1983b3cd0c4413f698295e

Contents?: true

Size: 764 Bytes

Versions: 19

Compression:

Stored size: 764 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Treasury
    class TransactionService < StripeService
      # Retrieves a list of Transaction objects.
      def list(params = {}, opts = {})
        request(
          method: :get,
          path: "/v1/treasury/transactions",
          params: params,
          opts: opts,
          base_address: :api
        )
      end

      # Retrieves the details of an existing Transaction.
      def retrieve(id, params = {}, opts = {})
        request(
          method: :get,
          path: format("/v1/treasury/transactions/%<id>s", { id: CGI.escape(id) }),
          params: params,
          opts: opts,
          base_address: :api
        )
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
stripe-13.4.1 lib/stripe/services/treasury/transaction_service.rb
stripe-13.4.0 lib/stripe/services/treasury/transaction_service.rb
stripe-13.3.1 lib/stripe/services/treasury/transaction_service.rb
stripe-13.3.0 lib/stripe/services/treasury/transaction_service.rb
stripe-13.3.0.pre.beta.3 lib/stripe/services/treasury/transaction_service.rb
stripe-13.3.0.pre.beta.2 lib/stripe/services/treasury/transaction_service.rb
stripe-13.3.0.pre.beta.1 lib/stripe/services/treasury/transaction_service.rb
stripe-13.2.0 lib/stripe/services/treasury/transaction_service.rb
stripe-13.1.2 lib/stripe/services/treasury/transaction_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/treasury/transaction_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/treasury/transaction_service.rb
stripe-13.1.1 lib/stripe/services/treasury/transaction_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/treasury/transaction_service.rb
stripe-13.1.0 lib/stripe/services/treasury/transaction_service.rb
stripe-13.0.2 lib/stripe/services/treasury/transaction_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/treasury/transaction_service.rb
stripe-13.0.1 lib/stripe/services/treasury/transaction_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/treasury/transaction_service.rb
stripe-13.0.0 lib/stripe/services/treasury/transaction_service.rb