View Source Stripe.Billing.CreditBalanceTransaction (stripity_stripe v3.3.1)
A credit balance transaction is a resource representing a transaction (either a credit or a debit) against an existing credit grant.
Summary
Types
@type t() :: %Stripe.Billing.CreditBalanceTransaction{ created: integer(), credit: term() | nil, credit_grant: binary() | Stripe.Billing.CreditGrant.t(), debit: term() | nil, effective_at: integer(), id: binary(), livemode: boolean(), object: binary(), test_clock: (binary() | Stripe.TestHelpers.TestClock.t()) | nil, type: binary() | nil }
The billing.credit_balance_transaction type.
createdTime at which the object was created. Measured in seconds since the Unix epoch.creditCredit details for this credit balance transaction. Only present if type iscredit.credit_grantThe credit grant associated with this credit balance transaction.debitDebit details for this credit balance transaction. Only present if type isdebit.effective_atThe effective time of this credit balance transaction.idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.objectString representing the object's type. Objects of the same type share the same value.test_clockID of the test clock this credit balance transaction belongs to.typeThe type of credit balance transaction (credit or debit).
Functions
@spec list( params :: %{ optional(:credit_grant) => binary(), optional(:customer) => binary(), optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:limit) => integer(), optional(:starting_after) => binary() }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieve a list of credit balance transactions.
Details
- Method:
get - Path:
/v1/billing/credit_balance_transactions
@spec retrieve( id :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves a credit balance transaction.
Details
- Method:
get - Path:
/v1/billing/credit_balance_transactions/{id}