mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-06 00:02:18 -04:00
* Update generated code for v1399 * Update generated code for v1409 * Update generated code for v1412 * Update generated code for v1412 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: jar-stripe <jar@stripe.com>
30 lines
1.1 KiB
Ruby
30 lines
1.1 KiB
Ruby
# File generated from our OpenAPI spec
|
|
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
# Balance transactions represent funds moving through your Stripe account.
|
|
# Stripe creates them for every type of transaction that enters or leaves your Stripe account balance.
|
|
#
|
|
# Related guide: [Balance transaction types](https://stripe.com/docs/reports/balance-transaction-types)
|
|
class BalanceTransaction < APIResource
|
|
extend Stripe::APIOperations::List
|
|
|
|
OBJECT_NAME = "balance_transaction"
|
|
def self.object_name
|
|
"balance_transaction"
|
|
end
|
|
|
|
# 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 self.list(params = {}, opts = {})
|
|
request_stripe_object(
|
|
method: :get,
|
|
path: "/v1/balance_transactions",
|
|
params: params,
|
|
opts: opts
|
|
)
|
|
end
|
|
end
|
|
end
|