Skip to content

FinancialRecord

Source code in docs_src/capo_payments/types/financial_record.py
class FinancialRecord(TypedDict, closed=True):
    id: "capo_payments.types.financial_record_id.FinancialRecordId"
    """<p>The ID that Amazon Web Services Payments issued for the record, such as <code>INV-5364-6253-7364-1342</code>. To retrieve the record again, pass this value to <code>GetFinancialRecord</code> or <code>BatchGetFinancialRecord</code> as <code>identifier</code>.</p>"""
    type: "capo_payments.types.financial_record_type.FinancialRecordType"
    """<p>The type of the financial record. The populated member of <code>details</code> matches this type. The following values are valid:</p> <ul> <li> <p> <code>INVOICE</code> – An invoice: a bill from Amazon Web Services. Payments and credit memos applied to the invoice settle it.</p> </li> <li> <p> <code>CREDIT_MEMO</code> – A credit memo: a credit issued to your account, for example for a billing correction or a service credit. Applying it to one or more invoices settles it.</p> </li> </ul>"""
    business_unit: "capo_payments.types.business_unit.BusinessUnit"
    """<p>The Amazon Web Services business unit that issued the record: its merchant of record and its line of business.</p>"""
    amount: "capo_payments.types.currency_amount.CurrencyAmount"
    """<p>The total amount of the financial record, in the currency that the record was issued in. The amount doesn't change as the record is settled. <code>balances</code> shows how much of it is in each settlement state.</p>"""
    balances: "capo_payments.types.balances.Balances"
    """<p>How much of <code>amount</code> is outstanding, processing, settled, and canceled.</p>"""
    settlement_status: "capo_payments.types.settlement_status.SettlementStatus"
    """<p>Whether the record is open or closed. If you receive a <code>status</code> value that you don't recognize, use this member to tell open records from closed ones. The following values are valid:</p> <ul> <li> <p> <code>OPEN</code> – Part of the amount is outstanding or processing. The <code>status</code> is <code>OUTSTANDING</code> or <code>PROCESSING</code>.</p> </li> <li> <p> <code>CLOSED</code> – The whole amount is settled or canceled. The <code>status</code> is <code>SETTLED</code> or <code>CANCELED</code>.</p> </li> </ul> <p>A <code>CLOSED</code> record becomes <code>OPEN</code> again if a payment or credit applied to it is reversed. Its <code>closedAt</code> is then absent until the record closes again.</p>"""
    status: "capo_payments.types.financial_record_status.FinancialRecordStatus"
    """<p>The settlement stage of the record. The following values are valid:</p> <ul> <li> <p> <code>OUTSTANDING</code> – Part of the amount isn't settled, and no settlement is in progress on the record. For an invoice, <code>dueStatus</code> shows whether it's due or past due. The <code>settlementStatus</code> is <code>OPEN</code>.</p> </li> <li> <p> <code>PROCESSING</code> – A settlement of part or all of the amount is in progress, for example a payment that's submitted but not yet confirmed. <code>PROCESSING</code> takes precedence over <code>OUTSTANDING</code>: while any part of the amount is processing, the status is <code>PROCESSING</code>, even if another part is still outstanding. The <code>settlementStatus</code> is <code>OPEN</code>.</p> </li> <li> <p> <code>SETTLED</code> – The whole amount is settled. The <code>settlementStatus</code> is <code>CLOSED</code>.</p> </li> <li> <p> <code>CANCELED</code> – The record is canceled. The part of the amount that wasn't settled isn't collected or applied. The <code>settlementStatus</code> is <code>CLOSED</code>.</p> </li> </ul>"""
    issued_at: "datetime.datetime"
    """<p>The date and time, in UTC, when this record was issued.</p>"""
    closed_at: NotRequired["datetime.datetime"]
    """<p>The date and time, in UTC, when the record was last closed, that is, when its <code>status</code> last became <code>SETTLED</code> or <code>CANCELED</code>. This member is absent while the <code>settlementStatus</code> is <code>OPEN</code>, including after a closed record reopens.</p>"""
    details: "capo_payments.types.financial_record_details.FinancialRecordDetails"
    """<p>The attributes that exist only for the record's type. The populated member matches <code>type</code>: <code>invoiceDetails</code> for an <code>INVOICE</code>, <code>creditMemoDetails</code> for a <code>CREDIT_MEMO</code>.</p>"""

amount instance-attribute

The total amount of the financial record, in the currency that the record was issued in. The amount doesn't change as the record is settled. balances shows how much of it is in each settlement state.

balances instance-attribute

balances: Balances

How much of amount is outstanding, processing, settled, and canceled.

business_unit instance-attribute

business_unit: BusinessUnit

The Amazon Web Services business unit that issued the record: its merchant of record and its line of business.

closed_at instance-attribute

closed_at: NotRequired[datetime]

The date and time, in UTC, when the record was last closed, that is, when its status last became SETTLED or CANCELED. This member is absent while the settlementStatus is OPEN, including after a closed record reopens.

details instance-attribute

The attributes that exist only for the record's type. The populated member matches type: invoiceDetails for an INVOICE, creditMemoDetails for a CREDIT_MEMO.

id instance-attribute

The ID that Amazon Web Services Payments issued for the record, such as INV-5364-6253-7364-1342. To retrieve the record again, pass this value to GetFinancialRecord or BatchGetFinancialRecord as identifier.

issued_at instance-attribute

issued_at: datetime

The date and time, in UTC, when this record was issued.

settlement_status instance-attribute

settlement_status: SettlementStatus

Whether the record is open or closed. If you receive a status value that you don't recognize, use this member to tell open records from closed ones. The following values are valid:

  • OPEN – Part of the amount is outstanding or processing. The status is OUTSTANDING or PROCESSING.

  • CLOSED – The whole amount is settled or canceled. The status is SETTLED or CANCELED.

A CLOSED record becomes OPEN again if a payment or credit applied to it is reversed. Its closedAt is then absent until the record closes again.

status instance-attribute

The settlement stage of the record. The following values are valid:

  • OUTSTANDING – Part of the amount isn't settled, and no settlement is in progress on the record. For an invoice, dueStatus shows whether it's due or past due. The settlementStatus is OPEN.

  • PROCESSING – A settlement of part or all of the amount is in progress, for example a payment that's submitted but not yet confirmed. PROCESSING takes precedence over OUTSTANDING: while any part of the amount is processing, the status is PROCESSING, even if another part is still outstanding. The settlementStatus is OPEN.

  • SETTLED – The whole amount is settled. The settlementStatus is CLOSED.

  • CANCELED – The record is canceled. The part of the amount that wasn't settled isn't collected or applied. The settlementStatus is CLOSED.

type instance-attribute

The type of the financial record. The populated member of details matches this type. The following values are valid:

  • INVOICE – An invoice: a bill from Amazon Web Services. Payments and credit memos applied to the invoice settle it.

  • CREDIT_MEMO – A credit memo: a credit issued to your account, for example for a billing correction or a service credit. Applying it to one or more invoices settles it.