ReceiptCard 类

  • java.lang.Object
    • com.microsoft.bot.schema.ReceiptCard

public class ReceiptCard

收据卡。

字段摘要

修饰符和类型 字段和描述
static final java.lang.String CONTENTTYPE

构造函数摘要

构造函数 说明
ReceiptCard()

方法摘要

修饰符和类型 方法和描述
java.lang.String geTax()

获取税值。

java.util.List<CardAction> getButtons()

获取按钮值。

java.util.List<Fact> getFacts()

获取事实值。

java.util.List<ReceiptItem> getItems()

获取项值。

CardAction getTap()

获取点击值。

java.lang.String getTitle()

获取标题值。

java.lang.String getTotal()

获取总值。

java.lang.String getVat()

获取增值税值。

void setButtons(CardAction[] withButtons)

设置按钮值。

void setButtons(List<CardAction> withButtons)

设置按钮值。

void setFacts(Fact[] withFacts)

设置事实值。

void setFacts(List<Fact> withFacts)

设置事实值。

void setItems(ReceiptItem[] withItems)

设置项值。

void setItems(List<ReceiptItem> withItems)

设置项值。

void setTap(CardAction withTap)

设置点击值。

void setTax(String withTax)

设置税值。

void setTitle(String withTitle)

设置标题值。

void setTotal(String withTotal)

设置总值。

void setVat(String withVat)

设置增值税值。

Attachment toAttachment()

为此卡创建 @{link Attachment} 。

方法继承自 java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

字段详细信息

CONTENTTYPE

public static final String CONTENTTYPE

构造函数详细信息

ReceiptCard

public ReceiptCard()

方法详细信息

geTax

public String geTax()

获取税值。

返回:

税值

getButtons

public List getButtons()

获取按钮值。

返回:

按钮值

getFacts

public List getFacts()

获取事实值。

返回:

事实值

getItems

public List getItems()

获取项值。

返回:

项值

getTap

public CardAction getTap()

获取点击值。

返回:

点击值

getTitle

public String getTitle()

获取标题值。

返回:

标题值

getTotal

public String getTotal()

获取总值。

返回:

总值

getVat

public String getVat()

获取增值税值。

返回:

增值税值

setButtons

public void setButtons(CardAction[] withButtons)

设置按钮值。

参数:

withButtons - 要设置的按钮值

setButtons

public void setButtons(List withButtons)

设置按钮值。

参数:

withButtons - 要设置的按钮值

setFacts

public void setFacts(Fact[] withFacts)

设置事实值。

参数:

withFacts - 要设置的事实值

setFacts

public void setFacts(List withFacts)

设置事实值。

参数:

withFacts - 要设置的事实值

setItems

public void setItems(ReceiptItem[] withItems)

设置项值。

参数:

withItems - 要设置的项值

setItems

public void setItems(List withItems)

设置项值。

参数:

withItems - 要设置的项值

setTap

public void setTap(CardAction withTap)

设置点击值。

参数:

withTap - 要设置的点击值

setTax

public void setTax(String withTax)

设置税值。

参数:

withTax - 要设置的税值

setTitle

public void setTitle(String withTitle)

设置标题值。

参数:

withTitle - 要设置的标题值

setTotal

public void setTotal(String withTotal)

设置总值。

参数:

withTotal - 要设置的总值

setVat

public void setVat(String withVat)

设置增值税值。

参数:

withVat - 要设置的增值税值

toAttachment

public Attachment toAttachment()

为此卡创建 @{link Attachment} 。

返回:

包含卡片的 Attachment 对象。

适用于