@microsoft/agents-hosting
Version:
Microsoft 365 Agents SDK for JavaScript
40 lines (39 loc) • 760 B
TypeScript
/**
* Copyright(c) Microsoft Corporation.All rights reserved.
* Licensed under the MIT License.
*/
import { CardAction } from '@microsoft/agents-activity';
import { CardImage } from './cardImage';
/**
* Represents an item in a receipt card.
*/
export interface ReceiptItem {
/**
* The title of the item.
*/
title: string;
/**
* The subtitle of the item.
*/
subtitle?: string;
/**
* The text of the item.
*/
text?: string;
/**
* The image of the item.
*/
image: CardImage;
/**
* The price of the item.
*/
price: string;
/**
* The quantity of the item.
*/
quantity: number;
/**
* The tap action of the item.
*/
tap?: CardAction;
}