ReceiptCard Class

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

public class ReceiptCard

A receipt card.

Field Summary

Modifier and Type Field and Description
static final java.lang.String CONTENTTYPE

Constructor Summary

Constructor Description
ReceiptCard()

Method Summary

Modifier and Type Method and Description
java.lang.String geTax()

Get the tax value.

java.util.List<CardAction> getButtons()

Get the buttons value.

java.util.List<Fact> getFacts()

Get the facts value.

java.util.List<ReceiptItem> getItems()

Get the items value.

CardAction getTap()

Get the tap value.

java.lang.String getTitle()

Get the title value.

java.lang.String getTotal()

Get the total value.

java.lang.String getVat()

Get the vat value.

void setButtons(CardAction[] withButtons)

Set the buttons value.

void setButtons(List<CardAction> withButtons)

Set the buttons value.

void setFacts(Fact[] withFacts)

Set the facts value.

void setFacts(List<Fact> withFacts)

Set the facts value.

void setItems(ReceiptItem[] withItems)

Set the items value.

void setItems(List<ReceiptItem> withItems)

Set the items value.

void setTap(CardAction withTap)

Set the tap value.

void setTax(String withTax)

Set the tax value.

void setTitle(String withTitle)

Set the title value.

void setTotal(String withTotal)

Set the total value.

void setVat(String withVat)

Set the vat value.

Attachment toAttachment()

Creates an @{link Attachment} for this card.

Methods inherited from 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

Field Details

CONTENTTYPE

public static final String CONTENTTYPE

Constructor Details

ReceiptCard

public ReceiptCard()

Method Details

geTax

public String geTax()

Get the tax value.

Returns:

the tax value

getButtons

public List getButtons()

Get the buttons value.

Returns:

the buttons value

getFacts

public List getFacts()

Get the facts value.

Returns:

the facts value

getItems

public List getItems()

Get the items value.

Returns:

the items value

getTap

public CardAction getTap()

Get the tap value.

Returns:

the tap value

getTitle

public String getTitle()

Get the title value.

Returns:

the title value

getTotal

public String getTotal()

Get the total value.

Returns:

the total value

getVat

public String getVat()

Get the vat value.

Returns:

the vat value

setButtons

public void setButtons(CardAction[] withButtons)

Set the buttons value.

Parameters:

withButtons - the buttons value to set

setButtons

public void setButtons(List withButtons)

Set the buttons value.

Parameters:

withButtons - the buttons value to set

setFacts

public void setFacts(Fact[] withFacts)

Set the facts value.

Parameters:

withFacts - the facts value to set

setFacts

public void setFacts(List withFacts)

Set the facts value.

Parameters:

withFacts - the facts value to set

setItems

public void setItems(ReceiptItem[] withItems)

Set the items value.

Parameters:

withItems - the items value to set

setItems

public void setItems(List withItems)

Set the items value.

Parameters:

withItems - the items value to set

setTap

public void setTap(CardAction withTap)

Set the tap value.

Parameters:

withTap - the tap value to set

setTax

public void setTax(String withTax)

Set the tax value.

Parameters:

withTax - the tax value to set

setTitle

public void setTitle(String withTitle)

Set the title value.

Parameters:

withTitle - the title value to set

setTotal

public void setTotal(String withTotal)

Set the total value.

Parameters:

withTotal - the total value to set

setVat

public void setVat(String withVat)

Set the vat value.

Parameters:

withVat - the vat value to set

toAttachment

public Attachment toAttachment()

Creates an @{link Attachment} for this card.

Returns:

An Attachment object containing the card.

Applies to