Sha256: 7eb07fad79798d24201c2aa3e7179e9add7596312731763edffa06f3ba477257
Contents?: true
Size: 1.07 KB
Versions: 19
Compression:
Stored size: 1.07 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe class BalanceTransactionService < StripeService # Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. # # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. def list(params = {}, opts = {}) request( method: :get, path: "/v1/balance_transactions", params: params, opts: opts, base_address: :api ) end # Retrieves the balance transaction with the given ID. # # Note that this endpoint previously used the path /v1/balance/history/:id. def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v1/balance_transactions/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end end end
Version data entries
19 entries across 19 versions & 1 rubygems