stripe-ruby/lib/stripe/resources/v2/transaction_entry.rb
2025-03-26 18:24:46 +00:00

65 lines
2.9 KiB
Ruby

# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module V2
# TransactionEntries represent individual money movements across different states within a Transaction.
class TransactionEntry < APIResource
OBJECT_NAME = "v2.money_management.transaction_entry"
def self.object_name
"v2.money_management.transaction_entry"
end
class BalanceImpact < Stripe::StripeObject
# Impact to the available balance.
attr_reader :available
# Impact to the inbound_pending balance.
attr_reader :inbound_pending
# Impact to the outbound_pending balance.
attr_reader :outbound_pending
end
class TransactionDetails < Stripe::StripeObject
class Flow < Stripe::StripeObject
# Open Enum. Type of the flow that created the Transaction. The field matching this value will contain the ID of the flow.
attr_reader :type
# If applicable, the ID of the Adjustment that created this Transaction.
attr_reader :adjustment
# If applicable, the ID of the FeeTransaction that created this Transaction.
attr_reader :fee_transaction
# If applicable, the ID of the InboundTransfer that created this Transaction.
attr_reader :inbound_transfer
# If applicable, the ID of the OutboundPayment that created this Transaction.
attr_reader :outbound_payment
# If applicable, the ID of the OutboundTransfer that created this Transaction.
attr_reader :outbound_transfer
# If applicable, the ID of the ReceivedCredit that created this Transaction.
attr_reader :received_credit
# If applicable, the ID of the ReceivedDebit that created this Transaction.
attr_reader :received_debit
end
# Closed Enum for now, and will be turned into an Open Enum soon. A descriptive category used to classify the Transaction.
attr_reader :category
# Indicates the FinancialAccount affected by this Transaction.
attr_reader :financial_account
# Details about the Flow object that created the Transaction.
attr_reader :flow
end
# The delta to the FinancialAccount's balance.
attr_reader :balance_impact
# Time at which the object was created.
attr_reader :created
# Time at which the entry impacted (or will impact if it's in the future) the FinancialAccount balance.
attr_reader :effective_at
# Unique identifier for the object.
attr_reader :id
# String representing the object's type. Objects of the same type share the same value of the object field.
attr_reader :object
# The Transaction that this TransactionEntry belongs to.
attr_reader :transaction
# Details copied from the transaction that this TransactionEntry belongs to.
attr_reader :transaction_details
end
end
end