Skip to content

Balances

Source code in docs_src/capo_payments/types/balances.py
class Balances(TypedDict, closed=True):
    outstanding: "capo_payments.types.currency_amount.CurrencyAmount"
    """<p>The part of the amount that isn't settled and has no settlement in progress. For an invoice, this is what remains to pay. For a credit memo, this is the credit that isn't yet applied. This balance doesn't include <code>processing</code>.</p>"""
    processing: "capo_payments.types.currency_amount.CurrencyAmount"
    """<p>The part of the amount with a settlement in progress, for example a payment that's submitted but not yet confirmed. It moves to <code>settled</code> when the settlement completes, and back to <code>outstanding</code> when the settlement fails. This balance is more than 0 only when the <code>status</code> is <code>PROCESSING</code>.</p>"""
    settled: "capo_payments.types.currency_amount.CurrencyAmount"
    """<p>The part of the amount that is settled. For an invoice, this is the amount paid or covered by credit memos. For a credit memo, this is the amount applied to invoices. This balance is 0 when nothing is settled yet.</p>"""
    canceled: "capo_payments.types.currency_amount.CurrencyAmount"
    """<p>The part of the amount that was canceled and isn't settled, for example when an invoice is voided. When a partly settled record is canceled, it keeps its <code>settled</code> balance, and the rest of the amount moves to <code>canceled</code>. This balance is more than 0 only when the <code>status</code> is <code>CANCELED</code>.</p>"""

canceled instance-attribute

canceled: CurrencyAmount

The part of the amount that was canceled and isn't settled, for example when an invoice is voided. When a partly settled record is canceled, it keeps its settled balance, and the rest of the amount moves to canceled. This balance is more than 0 only when the status is CANCELED.

outstanding instance-attribute

outstanding: CurrencyAmount

The part of the amount that isn't settled and has no settlement in progress. For an invoice, this is what remains to pay. For a credit memo, this is the credit that isn't yet applied. This balance doesn't include processing.

processing instance-attribute

processing: CurrencyAmount

The part of the amount with a settlement in progress, for example a payment that's submitted but not yet confirmed. It moves to settled when the settlement completes, and back to outstanding when the settlement fails. This balance is more than 0 only when the status is PROCESSING.

settled instance-attribute

settled: CurrencyAmount

The part of the amount that is settled. For an invoice, this is the amount paid or covered by credit memos. For a credit memo, this is the amount applied to invoices. This balance is 0 when nothing is settled yet.