Lingua

ReceiptCard Class

Definition

A receipt card.

public class ReceiptCard : Microsoft.Agents.Core.Models.Card
type ReceiptCard = class
    inherit Card
Public Class ReceiptCard
Inherits Card
Inheritance
ReceiptCard

Constructors

Name Description
ReceiptCard()

Initializes a new instance of ReceiptCard.

ReceiptCard(String, IList<Fact>, IList<ReceiptItem>, CardAction, String, String, String, IList<CardAction>)

Initializes a new instance of ReceiptCard.

Fields

Name Description
ContentType

The content type value of a ReceiptCard.

Properties

Name Description
Buttons

Set of actions applicable to the current card.

Facts

Array of Fact objects.

Items

Array of Receipt Items.

Tap

A clickable action.

Tax

Total amount of tax paid (or to be paid).

Title

Title of the card.

Total

Total amount of money paid (or to be paid).

Vat

Total amount of VAT paid (or to be paid).

Methods

Name Description
AddButton(CardAction)

Adds a button and returns this card.

AddFact(Fact)

Adds a fact and returns this card.

AddItem(ReceiptItem)

Adds a receipt item and returns this card.

ToAttachment()

Creates a new attachment from ReceiptCard.

ToMessage()

Creates a new message activity that includes this card as an attachment.

(Inherited from Card)

Applies to