Share via


ReceiptCard Class

A receipt card.

Constructor

pydantic model ReceiptCard

Parameters

Name Description
title
Required
str

Title of the card

facts
Required

Array of Fact objects

items
Required

Array of Receipt Items

tap
Required

This action will be activated when user taps on the card

total
Required
str

Total amount of money paid (or to be paid)

tax
Required
str

Total amount of tax paid (or to be paid)

vat
Required
str

Total amount of VAT paid (or to be paid)

buttons
Required

Set of actions applicable to the current card

Keyword-Only Parameters

Name Description
title
Default value: None
facts
Default value: None
items
Default value: None
tap
Default value: None
total
Default value: None
tax
Default value: None
vat
Default value: None
buttons
Default value: None

Attributes

buttons

field buttons: list[CardAction] = None

facts

field facts: list[Fact] = None

items

field items: list[ReceiptItem] = None

tap

field tap: CardAction = None

tax

field tax: str = None

title

field title: str = None

total

field total: str = None

vat

field vat: str = None