FinancialRecord
¶
Source code in docs_src/capo_payments/types/financial_record.py
amount
instance-attribute
¶
amount: CurrencyAmount
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
¶
details: FinancialRecordDetails
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. ThestatusisOUTSTANDINGorPROCESSING. -
CLOSED– The whole amount is settled or canceled. ThestatusisSETTLEDorCANCELED.
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
¶
status: FinancialRecordStatus
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,dueStatusshows whether it's due or past due. ThesettlementStatusisOPEN. -
PROCESSING– A settlement of part or all of the amount is in progress, for example a payment that's submitted but not yet confirmed.PROCESSINGtakes precedence overOUTSTANDING: while any part of the amount is processing, the status isPROCESSING, even if another part is still outstanding. ThesettlementStatusisOPEN. -
SETTLED– The whole amount is settled. ThesettlementStatusisCLOSED. -
CANCELED– The record is canceled. The part of the amount that wasn't settled isn't collected or applied. ThesettlementStatusisCLOSED.
type
instance-attribute
¶
type: FinancialRecordType
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.